[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / fold-vec-mergehl-double.c
blob14f944817bf5407b30b032da67ba19e6609b5a06
1 /* Verify that overloaded built-ins for vec_splat with float and
2 double inputs produce the right code. */
4 /* { dg-do compile } */
5 /* { dg-require-effective-target powerpc_vsx_ok } */
6 /* { dg-options "-mvsx -O2" } */
8 #include <altivec.h>
10 vector double
11 testd_l (vector double vd2, vector double vd3)
13 return vec_mergel (vd2, vd3);
16 vector double
17 testd_h (vector double vd2, vector double vd3)
19 return vec_mergeh (vd2, vd3);
22 /* { dg-final { scan-assembler-times "xxpermdi" 2 } } */