c++: normalizing ttp constraints [PR115656]
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / fold-vec-cntlz-char.c
blob4f9ac9445aba66b498ded1a2b285470c036afa6b
1 /* Verify that overloaded built-ins for vec_cntlz with char
2 inputs produce the right results. */
4 /* { dg-do compile } */
5 /* { dg-options "-maltivec -mvsx -O2" } */
6 /* { dg-additional-options "-mdejagnu-cpu=power8" { target { ! has_arch_pwr8 } } } */
7 /* { dg-require-effective-target powerpc_vsx } */
9 #include <altivec.h>
11 vector signed char
12 testsc_h (vector signed char vsc2)
14 return vec_cntlz (vsc2);
17 vector unsigned char
18 testuc_h (vector unsigned char vuc2)
20 return vec_cntlz (vuc2);
23 /* { dg-final { scan-assembler-times "vclzb" 2 } } */