blob: 0ef5dabd265724d3f4a440fe7c176889407283ea [file] [log] [blame]
Mandeep Singh Grangd9d3b212016-04-20 01:02:18 +00001// RUN: %clang_cc1 -triple mipsel-unknown-linux -emit-llvm -o - %s | FileCheck %s
Daniel Sandersbd3f47f2015-11-27 18:03:44 +00002
3void __attribute__ ((interrupt("vector=sw0")))
4isr_sw0 (void)
5{
6 // CHECK: define void @isr_sw0() [[SW0:#[0-9]+]]
7}
8
9void __attribute__ ((interrupt("vector=sw1")))
10isr_sw1 (void)
11{
12 // CHECK: define void @isr_sw1() [[SW1:#[0-9]+]]
13}
14
15void __attribute__ ((interrupt("vector=hw0")))
16isr_hw0 (void)
17{
18 // CHECK: define void @isr_hw0() [[HW0:#[0-9]+]]
19}
20
21void __attribute__ ((interrupt("vector=hw1")))
22isr_hw1 (void)
23{
24 // CHECK: define void @isr_hw1() [[HW1:#[0-9]+]]
25}
26
27void __attribute__ ((interrupt("vector=hw2")))
28isr_hw2 (void)
29{
30 // CHECK: define void @isr_hw2() [[HW2:#[0-9]+]]
31}
32
33void __attribute__ ((interrupt("vector=hw3")))
34isr_hw3 (void)
35{
36 // CHECK: define void @isr_hw3() [[HW3:#[0-9]+]]
37}
38
39void __attribute__ ((interrupt("vector=hw4")))
40isr_hw4 (void)
41{
42 // CHECK: define void @isr_hw4() [[HW4:#[0-9]+]]
43}
44
45void __attribute__ ((interrupt("vector=hw5")))
46isr_hw5 (void)
47{
48 // CHECK: define void @isr_hw5() [[HW5:#[0-9]+]]
49}
50
51void __attribute__ ((interrupt))
52isr_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" {{.*}} }