aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.apple/darwin-fsel-3.c
blob: 3c7b19e04534ec9ce7ddd9dbcd2c36b2c0dc5b32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { 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;
}