Debian Codegraph @

gcc/testsuite/gcc.target/powerpc/float128-hw8.c

raw
1 /* { dg-do compile { target lp64 } } */
2 /* { dg-options "-mvsx -O2" } */
3 /* { dg-additional-options "-mdejagnu-cpu=power9" { target { ! has_arch_pwr9 } } } */
4 /* { dg-require-effective-target powerpc_vsx } */
5 /* { dg-require-effective-target float128 } */
6
7 extern _Float128 fminf128 (_Float128, _Float128);
8 extern _Float128 fmaxf128 (_Float128, _Float128);
9
10 /* Check min/max optimizations that are done for double are also done for
11 _Float128. */
12
13 _Float128
14 min_x_x (_Float128 x)
15 {
16 return fminf128 (x, x);
17 }
18
19 _Float128
20 max_x_x (_Float128 x)
21 {
22 return fmaxf128 (x, x);
23 }
24
25 /* { dg-final { scan-assembler-not {\mxscmpuqp\M} } } */
26 /* { dg-final { scan-assembler-not {\mbl\M} } } */