Debian Codegraph @

gcc/testsuite/gcc.target/sh/pr54602-2.c

raw
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 } } */
7
8 int test00 (int a, int b);
9
10 int __attribute__ ((interrupt_handler))
11 test01 (int a, int b, int c, int d)
12 {
13 return test00 (a, b) + c;
14 }