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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgomp/] [testsuite/] [libgomp.graphite/] [force-parallel-1.c] - Blame information for rev 766

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

Line No. Rev Author Line
1 735 jeremybenn
void abort (void);
2
 
3
int x[10000000];
4
 
5
void parloop (int N)
6
{
7
  int i;
8
 
9
  for (i = 0; i < N; i++)
10
    x[i] = i + 3;
11
 
12
  for (i = 0; i < N; i++)
13
    {
14
      if (x[i] != i + 3)
15
        abort ();
16
    }
17
}
18
 
19
int main(void)
20
{
21
  parloop(10000000);
22
 
23
  return 0;
24
}
25
 
26
/* Check that parallel code generation part make the right answer.  */
27
/* { dg-final { scan-tree-dump-times "1 loops carried no dependency" 2 "graphite" } } */
28
/* { dg-final { cleanup-tree-dump "graphite" } } */
29
/* { dg-final { scan-tree-dump-times "loopfn" 5 "optimized" } } */
30
/* { dg-final { cleanup-tree-dump "parloops" } } */
31
/* { 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.