Use conditional internal functions in if-conversion
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / fold-vec-splats-char.c
blob8f211537d2891dce27e25cde17f74b0f96bd4420
1 /* Verify that overloaded built-ins for vec_splats() with char
2 inputs produce the right code. */
4 /* { dg-do compile } */
5 /* { dg-require-effective-target powerpc_altivec_ok } */
6 /* { dg-options "-maltivec -O2 " } */
8 #include <altivec.h>
10 vector signed char
11 test1s (signed char x)
13 return vec_splats (x);
16 vector unsigned char
17 test1u (unsigned char x)
19 return vec_splats (x);
22 /* { dg-final { scan-assembler-times "vspltb" 2 } } */