remove -floop-* flags
[official-gcc.git] / gcc / testsuite / gcc.dg / graphite / interchange-5.c
blob339e3b75f94767f306efe1f3afc55a9358056809
1 /* { dg-require-effective-target size32plus } */
3 /* Formerly known as ltrans-5.c */
5 #define DEBUG 0
6 #if DEBUG
7 #include <stdio.h>
8 #endif
10 #define N 100
11 #define M 1111
12 int A[N][M];
14 static int __attribute__((noinline))
15 foo (void)
17 int i, j;
19 for( i = 0; i < M; i++)
20 for( j = 0; j < N; j++)
21 A[j][i] = 5 * A[j][i];
23 return A[0][0] + A[N-1][M-1];
26 extern void abort ();
28 int
29 main (void)
31 int i, j, res;
33 for (i = 0; i < N; i++)
34 for (j = 0; j < M; j++)
35 A[i][j] = 2;
37 res = foo ();
39 #if DEBUG
40 fprintf (stderr, "res = %d \n", res);
41 #endif
43 if (res != 20)
44 abort ();
46 return 0;
49 /* { dg-final { scan-tree-dump-times "tiled by" 2 "graphite" } } */