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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [autopar/] [pr39500-1.c] - Rev 689

Compare with Previous | Blame | View Log

/* pr39500: autopar fails to parallel */
/* origin: nemokingdom@gmail.com(LiFeng) */
/* { dg-do compile } */
/* { dg-options "-O2 -ftree-parallelize-loops=4 -fdump-tree-parloops-details" } */
 
void abort (void);
 
int main (void)
{
  int i;
  int x[100000];
 
  for (i = 0; i < 10000; i++)
    x[i] = x[i+10000];
 
  for (i = 0; i < 10000; i++)
    {
      if (x[i] != x[i+10000])
       abort ();
    }
 
  return 0;
}
 
/* Check that the first loop in parloop got parallelized.  */
 
/* { dg-final { scan-tree-dump-times "SUCCESS: may be parallelized" 1 "parloops" } } */
/* { dg-final { cleanup-tree-dump "parloops" } } */
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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