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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [graphite/] [pr35356-1.c] - Rev 801

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

/* { dg-options "-O2 -fgraphite-identity -fdump-tree-graphite-all" } */
 
int a[100];
 
int
foo (int bar, int n, int k)
{
  int i;
 
  for (i = 0; i < n; i++)
    if (i == k)
      a[i] = bar;
 
  return a[bar];
}
 
/* There should be no loops generated for this testcase, instead we
   should generate the following:
 
   | if (k >= 0 && k < n)
   |   a[k] = bar;
 
*/
 
/* { dg-final { scan-tree-dump-times "loop_1" 0 "graphite" } } */
/* { dg-final { cleanup-tree-dump "graphite" } } */
 

Go to most recent revision | 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.