OSDN Git Service

Modify the testsuite for the new Graphite.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / graphite / scop-17.c
1 #define N 10000
2 void foo (int);
3 int test ()
4 {
5   int a[N][N];
6   unsigned i, j;
7
8   for (i = 0; i < N; i++) 
9     for (j = 0; j < N; j++)
10         a[i][j] = i*j;
11
12   for (i = 1; i < N; i++) 
13     for (j = 1; j < (N-1) ; j++)
14         a[i][j] = a[i-1][j+1] * a[i-1][j+1]/2;
15
16   for (i = 0; i < N; i++) 
17     for (j = 0; j < N; j++)
18       foo (a[i][j]); 
19 }
20
21 /* { dg-final { scan-tree-dump-times "number of SCoPs: 2" 1 "graphite"} } */
22 /* { dg-final { cleanup-tree-dump "graphite" } } */