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/] [g++.dg/] [eh/] [080514-1.C] - Diff between revs 301 and 338

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);
}
}
 
 

powered by: WebSVN 2.1.0

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