[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / fold-vec-sub-float.c
blob8a29def8cc26e4e0c9017c227162816b2f20d8ee
1 /* Verify that overloaded built-ins for vec_sub with float
2 inputs produce the right results. */
4 /* { dg-do compile } */
5 /* { dg-require-effective-target powerpc_altivec_ok } */
6 /* { dg-options "-maltivec -mno-vsx" } */
8 #include <altivec.h>
10 vector float
11 test1 (vector float x, vector float y)
13 return vec_sub (x, y);
16 /* { dg-final { scan-assembler-times "vsubfp" 1 } } */