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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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