Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.target/powerpc/float128-minmax.c @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
/* { 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} } } */