gcc/testsuite/gcc.dg/graphite/run-id-pr47654.c
raw| 1 | /* { dg-options "-O -floop-strip-mine" } */ |
| 2 | |
| 3 | int a[128][40]; |
| 4 | |
| 5 | void __attribute__ ((noinline, noclone)) |
| 6 | foo (void) |
| 7 | { |
| 8 | int i, j; |
| 9 | for (i = 0; i < 40; i++) |
| 10 | for (j = 0; j < 128; j++) |
| 11 | a[j][i] = 4; |
| 12 | } |
| 13 | |
| 14 | int |
| 15 | main () |
| 16 | { |
| 17 | int i, j; |
| 18 | foo (); |
| 19 | for (i = 0; i < 40; i++) |
| 20 | for (j = 0; j < 128; j++) |
| 21 | if (a[j][i] != 4) |
| 22 | __builtin_abort (); |
| 23 | return 0; |
| 24 | } |