OSDN Git Service

2008-09-02 Sebastian Pop <sebastian.pop@amd.com>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / graphite / scop-3.c
1 /* { dg-options "-O2 -fgraphite -fdump-tree-graphite-all" } */
2
3 int toto()
4 {
5   int i, j, k;
6   int a[100][100];
7   int b[100];
8
9   for (i = 1; i < 100; i++)
10     {
11       for (j = 1; j < 80; j++)
12         a[j][i] = a[j+1][2*i-1*j] + 12;
13
14       b[i] = b[i-1] + 10;
15
16       for (j = 1; j < 60; j++)
17         a[j][i] = a[j+1][i-1] + 8;
18
19       if (i == 23)
20         b[i] = a[i-1][i] + 6;
21
22       for (j = 1; j < 40; j++)
23         a[j][i] = a[j+1][i-1] + 4;
24     }
25
26   return a[3][5] + b[1];
27 }
28
29 /* { dg-final { scan-tree-dump-times "number of SCoPs: 3" 1 "graphite"} } */ 
30 /* { dg-final { cleanup-tree-dump "graphite" } } */