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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [pr20913.c] - Diff between revs 298 and 338

Only display areas with differences | Details | Blame | View Log

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

powered by: WebSVN 2.1.0

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