Merge aosp-toolchain/gcc/gcc-4_9 changes.
[official-gcc.git] / gcc-4_9 / gcc / testsuite / gcc.target / sh / pr54602-2.c
blob05592ddbfdd9f1da6b4db79e69e7d917ff82183b
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 } */
5 /* { dg-options "-O1" } */
6 /* { dg-skip-if "" { "sh*-*-*" } { "*" } { "-m1*" "-m2*" } } */
7 /* { dg-final { scan-assembler-times "nop" 1 } } */
9 int test00 (int a, int b);
11 int __attribute__ ((interrupt_handler))
12 test01 (int a, int b, int c, int d)
14 return test00 (a, b) + c;