[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / fold-vec-perm-int.c
bloba6dd59524cb8b346202de6f865bcc9bdecb18449
1 /* Verify that overloaded built-ins for vec_perm with int
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 bool int
11 testbi (vector bool int vbi2, vector bool int vbi3,
12 vector unsigned char vuc)
14 return vec_perm (vbi2, vbi3, vuc);
17 vector signed int
18 testsi (vector signed int vsi2, vector signed int vsi3,
19 vector unsigned char vuc)
21 return vec_perm (vsi2, vsi3, vuc);
24 vector unsigned int
25 testui (vector unsigned int vui2, vector unsigned int vui3,
26 vector unsigned char vuc)
28 return vec_perm (vui2, vui3, vuc);
31 /* { dg-final { scan-assembler-times {\m(?:v|xx)permr?\M} 3 } } */