1 // This used to fail on s390 due to cse removing an insn with a 2 // REG_EH_REGION without deleting the EH edge. 3 // { dg-do compile } 4 // { dg-options "-O2 -fnon-call-exceptions" } 5 6 void run(int m,double d)7run (int m, double d) 8 { 9 int stack[m]; 10 int *sp = stack; 11 12 if (d == 1.0) 13 *(sp++) = (0); 14 else if (d < 1.0) 15 *(sp++) = (-1); 16 } 17