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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [autopar/] [outer-3.c] - Blame information for rev 298

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

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -ftree-parallelize-loops=4 -fdump-tree-parloops-details -fdump-tree-optimized" } */
3
 
4
void abort (void);
5
 
6
void parloop (int N)
7
{
8
  int i, j;
9
  int x[500][500];
10
 
11
  for (i = 0; i < N; i++)
12
    for (j = 0; j < i; j++)
13
      x[i][j] = i + j + 3;
14
 
15
  for (i = 0; i < N; i++)
16
    for (j = 0; j < i; j++)
17
      if (x[i][j] != i + j + 3)
18
        abort ();
19
}
20
 
21
int main(void)
22
{
23
  parloop(500);
24
 
25
  return 0;
26
}
27
 
28
 
29
/* Check that outer loop is parallelized.  */
30
/* { dg-final { scan-tree-dump-times "parallelizing outer loop" 1 "parloops" } } */
31
/* { dg-final { scan-tree-dump-times "loopfn" 5 "optimized" } } */
32
/* { dg-final { cleanup-tree-dump "parloops" } } */
33
/* { 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.