[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / float128-hw9.c
blobac6cf686e830c00438fb0ab90b7d0db8c5637347
1 /* { dg-do compile { target lp64 } } */
2 /* { dg-require-effective-target powerpc_vsx_ok } */
3 /* { dg-require-effective-target float128 } */
4 /* { dg-options "-mvsx -O2 -ffast-math" } */
5 /* { dg-additional-options "-mdejagnu-cpu=power9" { target { ! has_arch_pwr9 } } } */
7 extern _Float128 sqrtf128 (_Float128);
9 /* Check sqrt optimizations that are done for double are also done for
10 _Float128. */
12 _Float128
13 sqrt_x_times_sqrt_x (_Float128 x)
15 return sqrtf128 (x) * sqrtf128 (x);
18 /* { dg-final { scan-assembler-not {\mxssqrtqp\M} } } */
19 /* { dg-final { scan-assembler-not {\mbl\M} } } */