aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/sh/pr54602-4.c
blob: 78fb9096e93e8180db089d4f35f897e121837275 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* Verify that the delay slot is stuffed with register pop insns on SH3* and
   SH4* targets, where the stack pointer is not used by the rte insn.  If
   everything works out, we won't see a nop insn.  */
/* { dg-do compile }  */
/* { dg-options "-O1" } */
/* { dg-skip-if "" { "sh*-*-*" } { "*" } { "-m3*" "-m4*" } }  */
/* { dg-final { scan-assembler-not "nop" } } */

int test00 (int a, int b);

int __attribute__ ((interrupt_handler))
test01 (int a, int b, int c, int d)
{
  return test00 (a, b) + c;
}