gcc/testsuite/gcc.target/powerpc/pr93073.c
raw| 1 | /* PR target/93073 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-mvsx -O1 -ffinite-math-only -fno-trapping-math" } */ |
| 4 | /* { dg-require-effective-target powerpc_vsx } */ |
| 5 | |
| 6 | void bar (void); |
| 7 | |
| 8 | void |
| 9 | foo (long double x, double y, double z) |
| 10 | { |
| 11 | for (;;) |
| 12 | { |
| 13 | double a = x > 0.0 ? y : z; |
| 14 | if (a == 0.0) |
| 15 | bar (); |
| 16 | } |
| 17 | } |