[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / fold-vec-splats-int.c
blobdff0f55959958086449a9ead2695e3620047683e
1 /* Verify that overloaded built-ins for vec_splat with int
2 inputs produce the right code. */
4 /* { dg-do compile { target lp64 } } */
5 /* { dg-require-effective-target powerpc_altivec_ok } */
6 /* { dg-options "-maltivec -O2 " } */
8 #include <altivec.h>
10 vector signed int
11 test3s (signed int x)
13 return vec_splats (x);
16 vector unsigned int
17 test3u (unsigned int x)
19 return vec_splats (x);
22 /* { dg-final { scan-assembler-times {\mvspltw\M|\mxxspltw\M|\mmtvsrws\M} 2 } } */