Imported Upstream version 4.8.1
[platform/upstream/gcc48.git] / gcc / testsuite / gcc.target / sh / pr54602-3.c
1 /* Verify that the rte delay slot is not stuffed with register pop insns
2    which touch the banked registers r0..r7 on SH3* and SH4* targets.  */
3 /* { dg-do compile { target "sh*-*-*" } } */
4 /* { dg-options "-O1" } */
5 /* { dg-skip-if "" { "sh*-*-*" } { "*" } { "-m3*" "-m4*" } }  */
6 /* { dg-final { scan-assembler-times "nop" 1 } } */
7
8 int __attribute__ ((interrupt_handler))
9 test00 (int a, int b, int c, int d)
10 {
11   return a + b;
12 }