Remove the lambda framework and make -ftree-loop-linear an alias of -floop-interchange.
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.dg / graphite / pr29581-1.c
blobe540073552544039bc19ef0805d919a76b9cbbd6
1 /* PR tree-optimization/29581 */
2 /* Origin: gcc.dg/vect/vect-85.c */
3 /* { dg-do run } */
4 /* { dg-options "-O2 -ftree-loop-linear" } */
6 extern void abort (void);
8 #define N 16
10 int main1 (int *a)
12 int i, j, k;
13 int b[N];
15 for (i = 0; i < N; i++)
17 for (j = 0; j < N; j++)
19 k = i + N;
20 a[j] = k;
22 b[i] = k;
26 for (j = 0; j < N; j++)
27 if (a[j] != i + N - 1)
28 abort();
30 for (j = 0; j < N; j++)
31 if (b[j] != j + N)
32 abort();
34 return 0;
37 int main (void)
39 int a[N] __attribute__ ((__aligned__(16)));
41 main1 (a);
43 return 0;