URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
/* This testcase ICEd when 2 different successors of a basic block
|
/* This testcase ICEd when 2 different successors of a basic block
|
were successfully threaded and try_forward_edges was not expecting
|
were successfully threaded and try_forward_edges was not expecting
|
that. */
|
that. */
|
|
|
typedef struct A
|
typedef struct A
|
{
|
{
|
struct A *s, *t;
|
struct A *s, *t;
|
unsigned int u;
|
unsigned int u;
|
} A;
|
} A;
|
|
|
void bar (A *);
|
void bar (A *);
|
|
|
void
|
void
|
foo (A *x, A *y, A *z)
|
foo (A *x, A *y, A *z)
|
{
|
{
|
while (y
|
while (y
|
&& (((y && y->t && y->t->u) ? y : z)->t
|
&& (((y && y->t && y->t->u) ? y : z)->t
|
== ((x && x->t && x->t->u) ? x : z)->t))
|
== ((x && x->t && x->t->u) ? x : z)->t))
|
y = y->s;
|
y = y->s;
|
|
|
if (y)
|
if (y)
|
bar (y);
|
bar (y);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.