OSDN Git Service

* tree-loop-linear.c (try_interchange_loops): Compare memory access
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / tree-ssa / ltrans-8.c
1 /* { dg-do compile } */ 
2 /* { dg-options "-O2 -ftree-loop-linear -fdump-tree-ltrans-all" } */
3 double foo(double *a)
4 {
5        int i,j;
6        double r = 0.0;
7       for (i=0; i<100; ++i)
8                for (j=0; j<1000; ++j)
9                       r += a[j*100+i];
10        return r;
11 }
12
13 /* { dg-final { scan-tree-dump-times "transformed loop" 1 "ltrans"} } */ 
14 /* { dg-final { cleanup-tree-dump "ltrans" } } */