Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.dg / graphite / scop-matmult.c
blob018de2c4e0d2c7ca14138562f6ebf64423272a52
1 /* { dg-require-effective-target size32plus } */
3 float A[1000][1000], B[1000][1000], C[1000][1000];
5 /* Multiply two n x n matrices A and B and store the result in C. */
7 void matmult (int n)
9 int i,j,k;
11 for (i = 0; i < n; i++)
12 for (j = 0; j < n; j++)
13 for (k = 0; k < n; k++)
14 A[i][j] += B[i][k] * C[k][j];
17 /* This one fails because the number of iterations cannot be
18 determined anymore for the outermost loop. */
19 /* { dg-final { scan-tree-dump-times "number of SCoPs: 1" 1 "graphite" } } */
20 /* { dg-final { cleanup-tree-dump "graphite" } } */