aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/sh/pr54602-2.c
blob: 05592ddbfdd9f1da6b4db79e69e7d917ff82183b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* 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 }  */
/* { dg-options "-O1" } */
/* { dg-skip-if "" { "sh*-*-*" } { "*" } { "-m1*" "-m2*" } }  */
/* { 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;
}