Use conditional internal functions in if-conversion
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / fold-vec-splats-short.c
blob18102ac12547b03fa0e0e08a05f191fe28cb96b7
1 /* Verify that overloaded built-ins for vec_splat with short
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 short
11 test3s (signed short x)
13 return vec_splats (x);
16 vector unsigned short
17 test3u (unsigned short x)
19 return vec_splats (x);
22 /* { dg-final { scan-assembler-times "vsplth" 2 } } */