blob: 3c7b19e04534ec9ce7ddd9dbcd2c36b2c0dc5b32 [file] [log] [blame]
/* { dg-do compile { target powerpc*-*-darwin* } } */
/* { dg-options "-O -mpowerpc-gfxopt" } */
/* { dg-final { scan-assembler "fsub" } } */
/* This is the same as gcc.dg/ppc-fsel-3.c, which is checking to see
that this optimization is *not* done, that is, that
-fno-trapping-math is the default. They can't both pass. */
double foo(double a, double b, double c, double d)
{
return a < b ? c : d;
}