1 /* { dg-do compile } */
2 /* { dg-options "-mint-register=3 -msave-acc-in-interrupts" } */
4 /* Verify that the RX specific function attributes work. */
6 void fast_interrupt (void) __attribute__((__fast_interrupt__
));
7 void interrupt (void) __attribute__((__interrupt__
));
8 int naked (int) __attribute__((__naked__
));
12 /* Fast interrupt handler. Only uses registers marked as fixed
13 by the -fixed-xxx gcc command line option. Returns via RTFI. */
21 /* Interrupt handler. Must preserve any register it uses, even
22 call clobbered ones. Returns via RTE. */
48 /* Naked function. The programmer must supply the function's
49 prologue and epilogue instructions. */
57 /* { dg-final { scan-assembler "rtfi" } } */
58 /* { dg-final { scan-assembler "rte" } } */