1 ; RUN: llvm-as %s -o %t1.bc
2 ; RUN: llvm-as %p/Inputs/thumb.ll -o %t2.bc
3 ; RUN: llvm-link %t1.bc %t2.bc -S 2> %t3.out | FileCheck %s
4 ; RUN: FileCheck --allow-empty --input-file %t3.out --check-prefix STDERR %s
6 target triple = "armv7-linux-gnueabihf"
8 declare i32 @foo(i32 %a, i32 %b);
12 %add = call i32 @foo(i32 10, i32 20)
16 ; CHECK: define i32 @main() {
17 ; CHECK: define i32 @foo(i32 %a, i32 %b) [[ARM_ATTRS:#[0-9]+]]
18 ; CHECK: define i32 @bar(i32 %a, i32 %b) [[THUMB_ATTRS:#[0-9]+]]
20 ; CHECK: attributes [[ARM_ATTRS]] = { "target-features"="-thumb-mode" }
21 ; CHECK: attributes [[THUMB_ATTRS]] = { "target-features"="+thumb-mode" }
23 ; STDERR-NOT: warning: Linking two modules of different target triples: