aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/powerpc/ppc-fsel-3.c
blob: 1d07c528eb11b4e1c0080aa7d66e70e8853ac8ac (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-options "-O -mpowerpc-gfxopt" } */
/* { dg-final { scan-assembler-not "fsub" } } */

/* Check that an fsub isn't generated when no arithmetic was requested;
   such an fsub might incorrectly set floating-point exception flags.  */

double foo(double a, double b, double c, double d)
{
  return a < b ? c : d;
}