URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
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);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.