* gcc.dg/torture/stackalign/builtin-apply-2.c: Fix skip-if syntax.
[official-gcc.git] / gcc / testsuite / gcc.dg / graphite / interchange-12.c
blob482bea46c03455f16f2f75674abba5b11d127187
1 /* { dg-require-effective-target size32plus } */
3 #define DEBUG 0
4 #if DEBUG
5 #include <stdio.h>
6 #endif
8 #define N 200
10 int A[N][N], B[N][N], C[N][N];
12 static int __attribute__((noinline))
13 matmult (void)
15 int i, j, k;
17 /* Loops J and K should be interchanged. */
18 for (i = 0; i < N; i++)
19 for (j = 0; j < N; j++)
21 A[i][j] = 0;
22 for (k = 0; k < N; k++)
23 A[i][j] += B[i][k] * C[k][j];
26 return A[0][0] + A[N-1][N-1];
29 extern void abort ();
31 int
32 main (void)
34 int i, j, res;
36 for (i = 0; i < N; i++)
37 for (j = 0; j < N; j++)
39 A[i][j] = 0;
40 B[i][j] = i - j;
41 C[i][j] = i + j;
44 res = matmult ();
46 #if DEBUG
47 fprintf (stderr, "res = %d \n", res);
48 #endif
50 if (res != 2626800)
51 abort ();
53 return 0;
56 /* { dg-final { scan-tree-dump "tiled by" "graphite" } } */