llvm.org GIT mirror llvm / a7783d7
[Linker] Remove llc usage from link-arm-and-thumb.ll test case. This fixes a buildbot failure when the ARM target is not built. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304888 91177308-0d34-0410-b5e6-96231b3b80d8 Florian Hahn 2 years ago
1 changed file(s) with 6 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as %s -o %t1.bc
11 ; RUN: llvm-as %p/Inputs/thumb.ll -o %t2.bc
2 ; RUN: llvm-link %t1.bc %t2.bc -S 2> %t3.out | llc | FileCheck %s
2 ; RUN: llvm-link %t1.bc %t2.bc -S 2> %t3.out | FileCheck %s
33 ; RUN: FileCheck --allow-empty --input-file %t3.out --check-prefix STDERR %s
44
55 target triple = "armv7-linux-gnueabihf"
1212 ret i32 %add
1313 }
1414
15 ; CHECK: .code 32 @ @main
16 ; CHECK-NEXT: main
15 ; CHECK: define i32 @main() {
16 ; CHECK: define i32 @foo(i32 %a, i32 %b) [[ARM_ATTRS:#[0-9]+]]
17 ; CHECK: define i32 @bar(i32 %a, i32 %b) [[THUMB_ATTRS:#[0-9]+]]
1718
18 ; CHECK: .code 32 @ @foo
19 ; CHECK-NEXT: foo
20
21 ; CHECK: .code 16 @ @bar
22 ; CHECK-NEXT: .thumb_func
23 ; CHECK-NEXT: bar
19 ; CHECK: attributes [[ARM_ATTRS]] = { "target-features"="-thumb-mode" }
20 ; CHECK: attributes [[THUMB_ATTRS]] = { "target-features"="+thumb-mode" }
2421
2522 ; STDERR-NOT: warning: Linking two modules of different target triples: