[RS6000] Tests that use int128_t and -m32
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / fold-vec-cntlz-char.c
blob61dfbccd672f3b0962066f5380187762570f3dbe
1 /* Verify that overloaded built-ins for vec_cntlz with char
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 char
11 testsc_h (vector signed char vsc2)
13 return vec_cntlz (vsc2);
16 vector unsigned char
17 testuc_h (vector unsigned char vuc2)
19 return vec_cntlz (vuc2);
22 /* { dg-final { scan-assembler-times "vclzb" 2 } } */