OSDN Git Service

Fix PR42334: correct the update of the LST on loop interchange and distribution.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / graphite / interchange-6.c
1 /* { dg-require-effective-target size32plus } */
2
3 /* Formerly known as ltrans-6.c */
4
5 int medium_loop_interchange(int A[100][200])
6 {
7   int i,j;
8
9   /* This loop should be interchanged. */
10
11   for(j = 0; j < 200; j++)
12     for(i = 0; i < 100; i++)
13       A[i][j] = A[i][j] + A[i][j];
14
15   return A[1][1];
16 }
17
18 /* { dg-final { scan-tree-dump-times "will be interchanged" 1 "graphite" } } */
19 /* { dg-final { cleanup-tree-dump "graphite" } } */