[RS6000] Tests that use int128_t and -m32
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / fold-vec-cntlz-short.c
blob0f05cace2e65cbfa9274ca88968d3ef3558e1434
1 /* Verify that overloaded built-ins for vec_cntlz with int
2 inputs produce the right results. */
4 /* { dg-do compile } */
5 /* { dg-require-effective-target powerpc_p8vector_ok } */
6 /* { dg-options "-maltivec -mpower8-vector -O2" } */
8 #include <altivec.h>
10 vector signed short
11 testsi (vector signed short vss2)
13 return vec_cntlz (vss2);
16 vector unsigned short
17 testui (vector unsigned short vus2)
19 return vec_cntlz (vus2);
22 /* { dg-final { scan-assembler-times "vclzh" 2 } } */