gcc/testsuite/gcc.c-torture/compile/20030604-1.c
raw| 1 | /* PR optimization/10876 */ |
| 2 | /* Contributed by Christian Ehrhardt */ |
| 3 | |
| 4 | /* Verify that the SPARC port doesn't emit |
| 5 | (minus) (reg) (const_int) insns. */ |
| 6 | |
| 7 | void f(void) |
| 8 | { |
| 9 | unsigned int butterfly, block, offset; |
| 10 | double *Z; |
| 11 | |
| 12 | for (block = 0; block < 512; block += 512) { |
| 13 | double T1re, T2re; |
| 14 | offset = butterfly + block; |
| 15 | T1re += T2re; |
| 16 | T2re = Z[offset] + T1re; |
| 17 | } |
| 18 | } |