Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / mips-interrupt-attr.c
blob207d2c5c0bb3f1c28d6f1277c11d7d2287fb05ec
1 // RUN: %clang_cc1 -triple mipsel-unknown-linux -emit-llvm -o - %s | FileCheck %s
3 void __attribute__ ((interrupt("vector=sw0")))
4 isr_sw0 (void)
6 // CHECK: define{{.*}} void @isr_sw0() [[SW0:#[0-9]+]]
9 void __attribute__ ((interrupt("vector=sw1")))
10 isr_sw1 (void)
12 // CHECK: define{{.*}} void @isr_sw1() [[SW1:#[0-9]+]]
15 void __attribute__ ((interrupt("vector=hw0")))
16 isr_hw0 (void)
18 // CHECK: define{{.*}} void @isr_hw0() [[HW0:#[0-9]+]]
21 void __attribute__ ((interrupt("vector=hw1")))
22 isr_hw1 (void)
24 // CHECK: define{{.*}} void @isr_hw1() [[HW1:#[0-9]+]]
27 void __attribute__ ((interrupt("vector=hw2")))
28 isr_hw2 (void)
30 // CHECK: define{{.*}} void @isr_hw2() [[HW2:#[0-9]+]]
33 void __attribute__ ((interrupt("vector=hw3")))
34 isr_hw3 (void)
36 // CHECK: define{{.*}} void @isr_hw3() [[HW3:#[0-9]+]]
39 void __attribute__ ((interrupt("vector=hw4")))
40 isr_hw4 (void)
42 // CHECK: define{{.*}} void @isr_hw4() [[HW4:#[0-9]+]]
45 void __attribute__ ((interrupt("vector=hw5")))
46 isr_hw5 (void)
48 // CHECK: define{{.*}} void @isr_hw5() [[HW5:#[0-9]+]]
51 void __attribute__ ((interrupt))
52 isr_eic (void)
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" {{.*}} }