Merged with trunk at revision 155767
[official-gcc.git] / gcc / testsuite / gcc.dg / graphite / block-6.c
blob6905e3635f76fb20f3561c2c065c51004d925a4d
1 /* { dg-require-effective-target size32plus } */
3 #define N 10000
4 void foo (int);
5 int test ()
7 int a[N][N];
8 unsigned i, j;
10 for (i = 0; i < N; i++)
11 for (j = 0; j < N; j++)
12 a[i][j] = i*j;
14 /* Interchange is not legal for loops 0 and 1. */
15 for (i = 1; i < N; i++)
16 for (j = 1; j < (N-1) ; j++)
17 a[i][j] = a[i-1][j+1] * a[i-1][j+1]/2;
19 for (i = 0; i < N; i++)
20 for (j = 0; j < N; j++)
21 foo (a[i][j]);
24 /* { dg-final { scan-tree-dump-times "will be loop blocked" 0 "graphite" } } */
25 /* { dg-final { cleanup-tree-dump "graphite" } } */