OSDN Git Service

* testsuite/gcc.dg/graphite/id-15.c: Adjusted.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / graphite / scop-matmult.c
1 /* { dg-require-effective-target size32plus } */
2
3 float A[1000][1000], B[1000][1000], C[1000][1000];
4
5 /* Multiply two n x n matrices A and B and store the result in C.  */
6
7 void matmult (int n)
8 {
9   int i,j,k;
10
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];
15 }
16
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" } } */