URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
/* A reminder to process ops in generate_expr_as_of_bb exactly once. */
|
/* A reminder to process ops in generate_expr_as_of_bb exactly once. */
|
|
|
long __attribute__((noinline))
|
long __attribute__((noinline))
|
foo (long ct, long cf, _Bool p1, _Bool p2, _Bool p3)
|
foo (long ct, long cf, _Bool p1, _Bool p2, _Bool p3)
|
{
|
{
|
long diff;
|
long diff;
|
|
|
diff = ct - cf;
|
diff = ct - cf;
|
|
|
if (p1)
|
if (p1)
|
{
|
{
|
if (p2)
|
if (p2)
|
{
|
{
|
if (p3)
|
if (p3)
|
{
|
{
|
long tmp = ct;
|
long tmp = ct;
|
ct = cf;
|
ct = cf;
|
cf = tmp;
|
cf = tmp;
|
}
|
}
|
diff = ct - cf;
|
diff = ct - cf;
|
}
|
}
|
|
|
return diff;
|
return diff;
|
}
|
}
|
|
|
abort ();
|
abort ();
|
}
|
}
|
|
|
int main ()
|
int main ()
|
{
|
{
|
if (foo(2, 3, 1, 1, 1) == 0)
|
if (foo(2, 3, 1, 1, 1) == 0)
|
abort ();
|
abort ();
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.