Debian Codegraph @

gcc/testsuite/gcc.target/powerpc/float128-minmax-2.c

raw
1 /* { dg-require-effective-target ppc_float128_hw } */
2 /* { dg-require-effective-target power10_ok } */
3 /* { dg-options "-mdejagnu-cpu=power10 -O2 -ffast-math" } */
4
5 #ifndef TYPE
6 #define TYPE _Float128
7 #endif
8
9 /* Test that the fminf128/fmaxf128 functions generate if/then/else and not a
10 call. */
11 TYPE f128_min (TYPE a, TYPE b) { return __builtin_fminf128 (a, b); }
12 TYPE f128_max (TYPE a, TYPE b) { return __builtin_fmaxf128 (a, b); }
13
14 /* { dg-final { scan-assembler {\mxsmaxcqp\M} } } */
15 /* { dg-final { scan-assembler {\mxsmincqp\M} } } */