gcc/testsuite/gcc.dg/graphite/pr82451.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O -floop-parallelize-all" } */ |
| 3 | |
| 4 | extern int a[]; |
| 5 | int b[1]; |
| 6 | int c; |
| 7 | static void |
| 8 | d (int *f, int *g) |
| 9 | { |
| 10 | int e; |
| 11 | for (e = 0; e < 2; e++) |
| 12 | g[e] = 1; |
| 13 | for (e = 0; e < 2; e++) |
| 14 | g[e] = f[e] + f[e + 1]; |
| 15 | } |
| 16 | void |
| 17 | h () |
| 18 | { |
| 19 | for (;; c += 8) |
| 20 | d (&a[c], b); |
| 21 | } |