No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gcc4 / gcc / testsuite / gcc.dg / tree-ssa / ltrans-1.c
blob3583f349ed29a119bb39f4a068e9ea8a6d6f1158
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -ftree-loop-linear -fdump-tree-ltrans-all" } */
4 double u[1782225];
5 int foo(int N, int *res)
7 int i, j;
8 double sum = 0.0;
9 /* This loop should be converted to a perfect nest and
10 interchanged. */
11 for (i = 0; i < N; i++)
13 for (j = 0; j < N; j++)
14 sum = sum + u[i + 1335 * j];
16 u[1336 * i] *= 2;
18 *res = sum + N;
20 /* { dg-final { scan-tree-dump-times "converted loop nest to perfect loop nest" 1 "ltrans"} } */
21 /* { dg-final { scan-tree-dump-times "transformed loop" 1 "ltrans"} } */
22 /* { dg-final { cleanup-tree-dump "ltrans" } } */