1 // RUN: %clang_cc1 -triple mipsel-unknown-linux -emit-llvm -o - %s | FileCheck %s
3 void __attribute__ ((interrupt("vector=sw0")))
6 // CHECK: define{{.*}} void @isr_sw0() [[SW0:#[0-9]+]]
9 void __attribute__ ((interrupt("vector=sw1")))
12 // CHECK: define{{.*}} void @isr_sw1() [[SW1:#[0-9]+]]
15 void __attribute__ ((interrupt("vector=hw0")))
18 // CHECK: define{{.*}} void @isr_hw0() [[HW0:#[0-9]+]]
21 void __attribute__ ((interrupt("vector=hw1")))
24 // CHECK: define{{.*}} void @isr_hw1() [[HW1:#[0-9]+]]
27 void __attribute__ ((interrupt("vector=hw2")))
30 // CHECK: define{{.*}} void @isr_hw2() [[HW2:#[0-9]+]]
33 void __attribute__ ((interrupt("vector=hw3")))
36 // CHECK: define{{.*}} void @isr_hw3() [[HW3:#[0-9]+]]
39 void __attribute__ ((interrupt("vector=hw4")))
42 // CHECK: define{{.*}} void @isr_hw4() [[HW4:#[0-9]+]]
45 void __attribute__ ((interrupt("vector=hw5")))
48 // CHECK: define{{.*}} void @isr_hw5() [[HW5:#[0-9]+]]
51 void __attribute__ ((interrupt
))
54 // CHECK: define{{.*}} void @isr_eic() [[EIC:#[0-9]+]]
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" {{.*}} }