1 /* Check whether rte is generated for two ISRs. */
2 /* { dg-do compile { target h8300-*-* } } */
3 /* { dg-options "-O3" } */
4 /* { dg-final { scan-assembler-times "rte" 2} } */
5
6 extern void foo (void);
7
8 #pragma interrupt
9 void
isr1(void)10 isr1 (void)
11 {
12 foo ();
13 }
14
15 #pragma interrupt
16 void
isr2(void)17 isr2 (void)
18 {
19 foo ();
20 }
21 /* Check whether rte is generated for two ISRs. */
22 /* { dg-do compile { target h8300-*-* } } */
23 /* { dg-options "-O3" } */
24 /* { dg-final { scan-assembler-times "rte" 2} } */
25
26 extern void foo (void);
27
28 #pragma interrupt
29 void
isr1(void)30 isr1 (void)
31 {
32 foo ();
33 }
34
35 #pragma interrupt
36 void
isr2(void)37 isr2 (void)
38 {
39 foo ();
40 }
41