OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [ext/] [altivec-8.C] - Blame information for rev 717

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
/* { dg-do compile { target powerpc*-*-* } } */
2
/* { dg-require-effective-target powerpc_altivec_ok } */
3
/* { dg-options "-maltivec" } */
4
/* Author: Ziemowit Laski    */
5
 
6
/* This test case exercises intrinsic/argument combinations that,
7
   while not in the Motorola AltiVec PIM, have nevertheless crept
8
   into the AltiVec vernacular over the years.  */
9
 
10
#include 
11
 
12
void foo (void)
13
{
14
  vector bool int boolVec1 = (vector bool int) vec_splat_u32(3);
15
  vector bool short boolVec2 = (vector bool short) vec_splat_u16(3);
16
  vector bool char boolVec3 = (vector bool char) vec_splat_u8(3);
17
 
18
  boolVec1 = vec_sld( boolVec1, boolVec1, 4 );
19
  boolVec2 = vec_sld( boolVec2, boolVec2, 2 );
20
  boolVec3 = vec_sld( boolVec3, boolVec3, 1 );
21
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.