OSDN Git Service

f277f05fb06699bfd63bcb7cd252c5d6b08982b4
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / graphite / block-0.c
1 /* { dg-options "-O -floop-block -fdump-tree-graphite-all" } */
2
3 #define N 1000
4
5 int toto()
6 {
7   int j;
8   int i;
9   int a[N];
10   int b[N];
11
12   for (i = 0; i < N; i++)
13     for (j = 0; j < N; j++)
14       a[j] = a[i] + 1;
15
16   return a[0];
17 }
18
19 main()
20 {
21   return toto();
22 }
23
24 /* { dg-final { scan-tree-dump-times "Loop blocked" 1 "graphite"} } */ 
25 /* { dg-final { cleanup-tree-dump "graphite" } } */