[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / fold-vec-div-floatdouble.c
blob569467e61f946f70b4dcc2147b701d5b0b70a000
1 /* Verify that overloaded built-ins for vec_div with float and
2 double inputs for VSX produce the right results. */
4 /* { dg-do compile } */
5 /* { dg-require-effective-target powerpc_vsx_ok } */
6 /* { dg-options "-mvsx" } */
8 #include <altivec.h>
10 vector double
11 test2 (vector double x, vector double y)
13 return vec_div (x, y);
16 /* { dg-final { scan-assembler-times {\mxvdivdp\M} 1 } } */