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
16 return fminf128 (x
, x
);
22 return fmaxf128 (x
, x
);
25 /* { dg-final { scan-assembler-not {\mxscmpuqp\M} } } */
26 /* { dg-final { scan-assembler-not {\mbl\M} } } */