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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [libgomp/] [testsuite/] [libgomp.graphite/] [force-parallel-8.c] - Blame information for rev 273

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 273 jeremybenn
#define N 1500
2
 
3
int foo(void)
4
{
5
  int i, j;
6
  int x[N][N], y[N];
7
 
8
  for (i = 0; i < N; i++)
9
    {
10
      y[i] = i;
11
 
12
      for (j = 0; j < N; j++)
13
        {
14
          if (j > 500)
15
            {
16
              x[i][j] = i + j + 3;
17
              y[j] = i*j + 10;
18
            }
19
          else
20
            x[i][j] = x[i][j]*3;
21
        }
22
    }
23
 
24
  return x[2][5]*y[8];
25
}
26
 
27
int main(void)
28
{
29
  foo();
30
 
31
  return 0;
32
}
33
 
34
/* Check that parallel code generation part make the right answer.  */
35
/* { dg-final { scan-tree-dump-times "2 loops carried no dependency" 1 "graphite" } } */
36
/* { dg-final { cleanup-tree-dump "graphite" } } */
37
/* { dg-final { scan-tree-dump-times "loopfn.0" 5 "optimized" } } */
38
/* { dg-final { scan-tree-dump-times "loopfn.1" 5 "optimized" } } */
39
/* { dg-final { cleanup-tree-dump "parloops" } } */
40
/* { dg-final { cleanup-tree-dump "optimized" } } */

powered by: WebSVN 2.1.0

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