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/] [pr39500-1.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
/* pr39500: autopar fails to parallel */
2
/* origin: nemokingdom@gmail.com(LiFeng) */
3
/* { dg-do compile } */
4
/* { dg-options "-O2 -ftree-parallelize-loops=4 -fdump-tree-parloops-details" } */
5
 
6
void abort (void);
7
 
8
int main (void)
9
{
10
  int i;
11
  int x[100000];
12
 
13
  for (i = 0; i < 10000; i++)
14
    x[i] = x[i+10000];
15
 
16
  for (i = 0; i < 10000; i++)
17
    {
18
      if (x[i] != x[i+10000])
19
       abort ();
20
    }
21
 
22
  return 0;
23
}
24
 
25
/* Check that the first loop in parloop got parallelized.  */
26
 
27
/* { dg-final { scan-tree-dump-times "SUCCESS: may be parallelized" 1 "parloops" } } */
28
/* { dg-final { cleanup-tree-dump "parloops" } } */

powered by: WebSVN 2.1.0

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