gcc/testsuite/gcc.target/i386/pr97510.c
raw| 1 | /* PR target/97510 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-Os -fexcess-precision=standard -mfpmath=387 -funsafe-math-optimizations" } */ |
| 4 | |
| 5 | float compute_rsqrt_ref_r_0; |
| 6 | |
| 7 | __attribute__((optimize(1))) |
| 8 | void compute_rsqrt_ref() { |
| 9 | compute_rsqrt_ref_r_0 = 1.0 / 0.0; |
| 10 | } |
| 11 | |
| 12 | int icompute_rsqrt_ref(float *); |
| 13 | |
| 14 | void test_512() { |
| 15 | float in[0]; |
| 16 | for (int i;;) |
| 17 | in[i] = 8.6756 * icompute_rsqrt_ref(in); |
| 18 | } |