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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20041213-2.c] - Diff between revs 149 and 154

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
/* PR tree-optimization/18694
/* PR tree-optimization/18694
 
 
   The dominator optimization didn't take the PHI evaluation order
   The dominator optimization didn't take the PHI evaluation order
   into account when threading an edge.  */
   into account when threading an edge.  */
 
 
extern void abort (void) __attribute__((noreturn));
extern void abort (void) __attribute__((noreturn));
extern void exit (int) __attribute__((noreturn));
extern void exit (int) __attribute__((noreturn));
 
 
void __attribute__((noinline))
void __attribute__((noinline))
foo (int i)
foo (int i)
{
{
  int next_n = 1;
  int next_n = 1;
  int j = 0;
  int j = 0;
 
 
  for (; i != 0; i--)
  for (; i != 0; i--)
    {
    {
      int n;
      int n;
 
 
      for (n = next_n; j < n; j++)
      for (n = next_n; j < n; j++)
        next_n++;
        next_n++;
 
 
      if (j != n)
      if (j != n)
        abort ();
        abort ();
    }
    }
}
}
 
 
int
int
main (void)
main (void)
{
{
  foo (2);
  foo (2);
  exit (0);
  exit (0);
}
}
 
 

powered by: WebSVN 2.1.0

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