gcc/testsuite/gcc.dg/torture/pr26222.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-fno-tree-pre -fno-tree-loop-im" } */ |
| 3 | |
| 4 | void putShort (int, int); |
| 5 | |
| 6 | int t2; |
| 7 | void f(int t1) |
| 8 | { |
| 9 | int clutOffset = 52 + 256 * 3 * 2; |
| 10 | int x, y, z; |
| 11 | for (x = 0; x < 16; x++) |
| 12 | for (y = 0; y < 16; y++) |
| 13 | for (z = 0; z < 16; z++) |
| 14 | { |
| 15 | int offset = clutOffset + z * 6 + y * 16 * 6 + x * 16 * 16 * 6; |
| 16 | double xf = ((double) x) / ((double) 16 - 1.0); |
| 17 | double tt = xf; |
| 18 | putShort(offset, tt); |
| 19 | } |
| 20 | } |
| 21 |