URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 338 |
// This used to fail on s390 due to cse removing an insn with a
|
// This used to fail on s390 due to cse removing an insn with a
|
// REG_EH_REGION without deleting the EH edge.
|
// REG_EH_REGION without deleting the EH edge.
|
// { dg-do compile }
|
// { dg-do compile }
|
// { dg-options "-O2 -fnon-call-exceptions" }
|
// { dg-options "-O2 -fnon-call-exceptions" }
|
|
|
void
|
void
|
run (int m, double d)
|
run (int m, double d)
|
{
|
{
|
int stack[m];
|
int stack[m];
|
int *sp = stack;
|
int *sp = stack;
|
|
|
if (d == 1.0)
|
if (d == 1.0)
|
*(sp++) = (0);
|
*(sp++) = (0);
|
else if (d < 1.0)
|
else if (d < 1.0)
|
*(sp++) = (-1);
|
*(sp++) = (-1);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.