1 /* { dg-do compile } */
2 /* { dg-options "-mcpu=fidoa -O2 -fomit-frame-pointer" } */
4 /* Check that interrupt_thread attribute works. */
7 extern void foo (void) __attribute__ ((interrupt_thread));
31 /* If the current mutilib is, say, -mcpu=5485, the compiler gets
32 -mcpu=fidoa -mcpu=5485, where -mcpu=fidoa is overridden. In that
33 case, we just print out "sleep" in the assembly file and pretend
34 that everything is all right. */
38 /* "sleep" should be generated in place of "rts". */
39 /* { dg-final { scan-assembler-times "sleep" 1 } } */
40 /* { dg-final { scan-assembler-times "rts" 0 } } */
42 /* There should be no stack adjustment. */
43 /* { dg-final { scan-assembler-times "sp" 0 } } */