Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / gcc.dg / tree-ssa / ltrans-2.c
blob9cfa60d2d9967426552ceeef630c7d6a629d8868
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 unsigned int i, j;
8 double sum = 0;
10 /* This loop should be converted to a perfect nest and
11 interchanged. */
12 for (i = 0; i < N; i++)
14 for (j = 0; j < N; j++)
16 sum = sum + u[i + 1335 * j];
17 if (j == N - 1)
18 u[1336 * i] *= 2;
21 *res = sum + N;
23 /* { dg-final { scan-tree-dump-times "transformed loop" 1 "ltrans"} {
24 xfail *-*-*} } */
25 /* { dg-final { cleanup-tree-dump "ltrans" } } */