gcc/testsuite/gcc.target/powerpc/pr109566.c
raw| 1 | /* PR target/109566 */ |
| 2 | /* Skip this on aix, otherwise it emits the error message like "64-bit |
| 3 | computation with 32-bit addressing not yet supported" on aix. */ |
| 4 | /* { dg-do compile } */ |
| 5 | /* { dg-skip-if "" { powerpc*-ibm-aix* } } */ |
| 6 | /* { dg-options "-O2 -mpowerpc64" } */ |
| 7 | |
| 8 | void |
| 9 | foo (double x) |
| 10 | { |
| 11 | union { double d; unsigned i; } u; |
| 12 | u.d = x; |
| 13 | if (u.i & 0x7ff00000) |
| 14 | return; |
| 15 | else |
| 16 | for (;;) |
| 17 | ; |
| 18 | } |