1 /* Verify that prologue and epilogue are correct for functions with
2 __attribute__ ((interrupt)). */
3 /* { dg-do compile } */
4 /* { dg-options "-O1" } */
6 /* This test is not valid when -mthum. We just cheat. */
9 extern void test (void) __attribute__((__interrupt__));
20 asm ("stmfd\tsp!, {r0, r1, r2, r3, r4, r5, ip, lr}");
21 asm ("ldmfd\tsp!, {r0, r1, r2, r3, r4, r5, ip, pc}^");
25 /* { dg-final { scan-assembler "stmfd\tsp!, {r0, r1, r2, r3, r4, r5, ip, lr}" } } */
26 /* { dg-final { scan-assembler "ldmfd\tsp!, {r0, r1, r2, r3, r4, r5, ip, pc}\\^" } } */