brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · 207d2c5 Raw
65 lines · c
1// RUN: %clang_cc1 -triple mipsel-unknown-linux -emit-llvm -o - %s | FileCheck %s2 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" {{.*}} }65