OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.dg/] [graphite/] [scop-matmult.c] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { 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" } } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.