Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / fold-vec-unpack-int.c
blob621c4eb250de399f5cdc002c92be3662eda107fd
1 /* Verify that overloaded built-ins for vec_unpackh and vec_unpackl with int
2 inputs produce the right code. */
4 /* { dg-do compile } */
5 /* { dg-require-effective-target powerpc_p8vector_ok } */
6 /* { dg-options "-mpower8-vector -O2" } */
8 #include <altivec.h>
10 vector bool long long
11 testbi_l (vector bool int vbi2)
13 return vec_unpackl (vbi2);
16 vector signed long long
17 testsi_l (vector signed int vsi2)
19 return vec_unpackl (vsi2);
22 vector bool long long
23 testbi_h (vector bool int vbi2)
25 return vec_unpackh (vbi2);
28 vector signed long long
29 testsi_h (vector signed int vsi2)
31 return vec_unpackh (vsi2);
34 /* { dg-final { scan-assembler-times "vupkhsw" 2 } } */
35 /* { dg-final { scan-assembler-times "vupklsw" 2 } } */