[testsuite] require sqrt_insn effective target where needed
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / float128-hw8.c
blob6555fed923bd6792fead9988236d08df627f0142
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" } */
5 /* { dg-additional-options "-mdejagnu-cpu=power9" { target { ! has_arch_pwr9 } } } */
7 extern _Float128 fminf128 (_Float128, _Float128);
8 extern _Float128 fmaxf128 (_Float128, _Float128);
10 /* Check min/max optimizations that are done for double are also done for
11 _Float128. */
13 _Float128
14 min_x_x (_Float128 x)
16 return fminf128 (x, x);
19 _Float128
20 max_x_x (_Float128 x)
22 return fmaxf128 (x, x);
25 /* { dg-final { scan-assembler-not {\mxscmpuqp\M} } } */
26 /* { dg-final { scan-assembler-not {\mbl\M} } } */