blob: f8b025d66fe5da88e68df910b6bcb2c47c6813d8 [file] [log] [blame]
/* { dg-do compile { target { powerpc*-*-* && lp64 } } } */
/* { dg-require-effective-target powerpc_p9vector_ok } */
/* { dg-options "-mpower9-vector -O2 -ffast-math" } */
#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 __builtin_fminf128 (a, b); }
TYPE f128_max (TYPE a, TYPE b) { return __builtin_fmaxf128 (a, b); }
/* { dg-final { scan-assembler {\mxscmpuqp\M} } } */
/* { dg-final { scan-assembler-not {\mbl\M} } } */