[RS6000] Tests that use int128_t and -m32
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / float128-hw8.c
blob23f9ec23577b0c74531f8ae24a74176ccecd7d34
1 /* { dg-do compile { target lp64 } } */
2 /* { dg-require-effective-target powerpc_p9vector_ok } */
3 /* { dg-require-effective-target float128 } */
4 /* { dg-options "-mpower9-vector -O2" } */
6 extern _Float128 fminf128 (_Float128, _Float128);
7 extern _Float128 fmaxf128 (_Float128, _Float128);
9 /* Check min/max optimizations that are done for double are also done for
10 _Float128. */
12 _Float128
13 min_x_x (_Float128 x)
15 return fminf128 (x, x);
18 _Float128
19 max_x_x (_Float128 x)
21 return fmaxf128 (x, x);
24 /* { dg-final { scan-assembler-not {\mxscmpuqp\M} } } */
25 /* { dg-final { scan-assembler-not {\mbl\M} } } */