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-1.c] - Blame information for rev 280

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

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