* tree-loop-distribution.c (struct partition): New field recording
[official-gcc.git] / gcc / testsuite / gcc.dg / graphite / uns-interchange-9.c
blobcc108c2bbc302b91a396cb9730291302094b3100
1 /* { dg-require-effective-target size32plus } */
3 #define DEBUG 0
4 #if DEBUG
5 #include <stdio.h>
6 #endif
8 #define N 111
9 #define M 111
11 static unsigned int __attribute__((noinline))
12 foo (unsigned int *x)
14 int i, j;
15 unsigned int sum = 0;
17 for (j = 0; j < M; ++j)
18 for (i = 0; i < N; ++i)
19 sum += x[M * i + j];
21 return sum;
24 extern void abort ();
26 int
27 main (void)
29 unsigned int A[N*M];
30 int i;
31 unsigned int res;
33 for (i = 0; i < N*M; i++)
34 A[i] = 2;
36 res = foo (A);
38 #if DEBUG
39 fprintf (stderr, "res = %d \n", res);
40 #endif
42 if (res != 24642)
43 abort ();
45 return 0;
48 /* { dg-final { scan-tree-dump "tiled" "graphite" } } */