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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [autopar/] [pr39500-2.c] - Blame information for rev 298

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
int main (void)
7
{
8
  int i;
9
  int x[1000];
10
 
11
  for (i = 0; i < 101; i++)
12
    x[i] = x[i+100];
13
 
14
  return x[12];
15
}
16
 
17
/* This loop cannot be parallelized due to a dependence.  */
18
 
19
/* { dg-final { scan-tree-dump-times "SUCCESS: may be parallelized" 0 "parloops" } } */
20
/* { 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.