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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [graphite/] [scop-16.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
/* { dg-require-effective-target size32plus } */
2
 
3
#define N 10000
4
void foo (int);
5
int test ()
6
{
7
  int a[N][N];
8
  int b[N][N];
9
  int i, j;
10
 
11
  for (i = 0; i < N; i++)
12
    for (j = 0; j < N; j++)
13
      a[i][j] = i*j;
14
 
15
  for (j = 1; j < N; j++)
16
    for (i = 0; i < N; i++)
17
      a[i][j] = a[i][j-1] + b[i][j];
18
 
19
  for (i = 0; i < N; i++)
20
    for (j = 0; j < N; j++)
21
      foo (a[i][j]);
22
}
23
 
24
/* { dg-final { scan-tree-dump-times "number of SCoPs: 2" 1 "graphite"} } */
25
/* { 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.