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