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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [graphite/] [scop-dsyrk.c] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
#define NMAX 3000
2
#define MEASURE_TIME 1
3
 
4
static double a[NMAX][NMAX], c[NMAX][NMAX];
5
 
6
void dsyrk(long N)
7
{
8
  int i,j,k;
9
 
10
#pragma scop
11
  for (i=0; i<N; i++) {
12
    for (j=0; j<N; j++) {
13
      for (k=j; k<N; k++) {
14
        c[j][k] += a[i][j] * a[i][k];
15
      }
16
    }
17
  }
18
#pragma endscop
19
}
20
 
21
/* { dg-final { scan-tree-dump-times "number of SCoPs: 1" 1 "graphite" } } */
22
/* { 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.