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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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