blob: 6f7627c0f2a1b50fde1d51ea8c020bff633f629a [file] [log] [blame]
/* { dg-require-effective-target ppc_float128_hw } */
/* { dg-require-effective-target power10_ok } */
/* { dg-options "-mdejagnu-cpu=power10 -O2" } */
#ifndef TYPE
#define TYPE _Float128
#endif
/* Test that the fminf128/fmaxf128 functions generate if/then/else and not a
call. */
TYPE f128_min (TYPE a, TYPE b) { return (a < b) ? a : b; }
TYPE f128_max (TYPE a, TYPE b) { return (b > a) ? b : a; }
/* { dg-final { scan-assembler {\mxsmaxcqp\M} } } */
/* { dg-final { scan-assembler {\mxsmincqp\M} } } */