2018-02-09 Sebastian Perta <sebastian.perta@renesas.com>
[official-gcc.git] / gcc / testsuite / gcc.target / sh / pr54602-2.c
blobf5d5c77bba06a18616c190df2911c37d9c3af197
1 /* Verify that the delay slot is not stuffed with register pop insns for
2 interrupt handler function returns on SH1* and SH2* targets, where the
3 rte insn uses the stack pointer. */
4 /* { dg-do compile { target { stack_save_isr } } } */
5 /* { dg-options "-O1" } */
6 /* { dg-final { scan-assembler-times "nop" 1 } } */
8 int test00 (int a, int b);
10 int __attribute__ ((interrupt_handler))
11 test01 (int a, int b, int c, int d)
13 return test00 (a, b) + c;