blob: f5d5c77bba06a18616c190df2911c37d9c3af197 [file] [log] [blame]
/* Verify that the delay slot is not stuffed with register pop insns for
interrupt handler function returns on SH1* and SH2* targets, where the
rte insn uses the stack pointer. */
/* { dg-do compile { target { stack_save_isr } } } */
/* { dg-options "-O1" } */
/* { dg-final { scan-assembler-times "nop" 1 } } */
int test00 (int a, int b);
int __attribute__ ((interrupt_handler))
test01 (int a, int b, int c, int d)
{
return test00 (a, b) + c;
}