gcc/testsuite/gcc.target/powerpc/ppc-fsel-1.c
raw| 1 | /* { dg-do compile { target powerpc*-*-* } } */ |
| 2 | /* { dg-options "-O -mpowerpc-gfxopt -fno-trapping-math" } */ |
| 3 | /* { dg-final { scan-assembler "fsel" } } */ |
| 4 | |
| 5 | /* If the user doesn't care about signals, fsel can be used in many cases. */ |
| 6 | |
| 7 | double foo(double a, double b, double c, double d) |
| 8 | { |
| 9 | return a < b ? c : d; |
| 10 | } |