OSDN Git Service

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