* gcc.dg/torture/stackalign/builtin-apply-2.c: Fix skip-if syntax.
[official-gcc.git] / gcc / testsuite / gcc.dg / graphite / interchange-5.c
blobe5aaa642d8ebafae5e84b0ba5c12f6a23434e9cc
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 "tiled by" "graphite" } } */