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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [pr20913.c] - Rev 826

Compare with Previous | Blame | View Log

/* PR tree-optimization/20913
   COPY-PROP did not fold COND_EXPR, blocking some copy propagation
   opportunities.  */
 
/* { dg-do link } */
/* { dg-options "-O2 -fno-tree-dominator-opts" } */
 
int
foo (int a, int b, int c, int d)
{
  int x, y;
 
  b = a;
  if (a == b)
    x = c;
  else
    {
      link_error ();
      x = d;
    }
 
  if (x == c)
    return a;
  else
    {
      link_error ();
      return b;
    }
}
 
main()
{
  foo (1, 2, 3, 4);
}
 

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.