• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %clang_cc1 -triple mipsel-unknown-linux -emit-llvm -o - %s | FileCheck %s
2 
3 void __attribute__ ((interrupt("vector=sw0")))
isr_sw0(void)4 isr_sw0 (void)
5 {
6   // CHECK: define void @isr_sw0() [[SW0:#[0-9]+]]
7 }
8 
9 void __attribute__ ((interrupt("vector=sw1")))
isr_sw1(void)10 isr_sw1 (void)
11 {
12   // CHECK: define void @isr_sw1() [[SW1:#[0-9]+]]
13 }
14 
15 void __attribute__ ((interrupt("vector=hw0")))
isr_hw0(void)16 isr_hw0 (void)
17 {
18   // CHECK: define void @isr_hw0() [[HW0:#[0-9]+]]
19 }
20 
21 void __attribute__ ((interrupt("vector=hw1")))
isr_hw1(void)22 isr_hw1 (void)
23 {
24   // CHECK: define void @isr_hw1() [[HW1:#[0-9]+]]
25 }
26 
27 void __attribute__ ((interrupt("vector=hw2")))
isr_hw2(void)28 isr_hw2 (void)
29 {
30   // CHECK: define void @isr_hw2() [[HW2:#[0-9]+]]
31 }
32 
33 void __attribute__ ((interrupt("vector=hw3")))
isr_hw3(void)34 isr_hw3 (void)
35 {
36   // CHECK: define void @isr_hw3() [[HW3:#[0-9]+]]
37 }
38 
39 void __attribute__ ((interrupt("vector=hw4")))
isr_hw4(void)40 isr_hw4 (void)
41 {
42   // CHECK: define void @isr_hw4() [[HW4:#[0-9]+]]
43 }
44 
45 void __attribute__ ((interrupt("vector=hw5")))
isr_hw5(void)46 isr_hw5 (void)
47 {
48   // CHECK: define void @isr_hw5() [[HW5:#[0-9]+]]
49 }
50 
51 void __attribute__ ((interrupt))
isr_eic(void)52 isr_eic (void)
53 {
54   // CHECK: define void @isr_eic() [[EIC:#[0-9]+]]
55 }
56 // CHECK: attributes [[SW0]] = { {{.*}} "interrupt"="sw0" {{.*}} }
57 // CHECK: attributes [[SW1]] = { {{.*}} "interrupt"="sw1" {{.*}} }
58 // CHECK: attributes [[HW0]] = { {{.*}} "interrupt"="hw0" {{.*}} }
59 // CHECK: attributes [[HW1]] = { {{.*}} "interrupt"="hw1" {{.*}} }
60 // CHECK: attributes [[HW2]] = { {{.*}} "interrupt"="hw2" {{.*}} }
61 // CHECK: attributes [[HW3]] = { {{.*}} "interrupt"="hw3" {{.*}} }
62 // CHECK: attributes [[HW4]] = { {{.*}} "interrupt"="hw4" {{.*}} }
63 // CHECK: attributes [[HW5]] = { {{.*}} "interrupt"="hw5" {{.*}} }
64 // CHECK: attributes [[EIC]] = { {{.*}} "interrupt"="eic" {{.*}} }
65