aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.apple/apple-altivec-14.c
blob: 0bb1dcd1d3a5d34ffebac67549cae08984ebe7ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* APPLE LOCAL file AltiVec */
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-options "-faltivec" } */
/* Existing AltiVec PIM implementations allow numeric literals with
   any number of bits, so long as the value is within allowed range.  */
int foo(void)
{
        vector unsigned char amask = vec_splat_u8 ( 0xFFFFFFF3L );
        vector signed short bmask = vec_splat_s16 ( 0xFFFFFFFFFFFFFFF1LL );
}


/* { dg-final { scan-assembler "vspltisb.+\\-13" } } */
/* { dg-final { scan-assembler "vspltish.+\\-15" } } */