You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
835 B
29 lines
835 B
; RUN: llvm-as -o %t.bc %s
|
|
; RUN: env LD_PRELOAD=%llvmshlibdir/LLVMgold.so %gold -plugin %llvmshlibdir/LLVMgold.so -u foo -u bar -plugin-opt jobs=2 -plugin-opt save-temps -m elf_x86_64 -o %t %t.bc
|
|
; RUN: llvm-dis %t.opt.bc0 -o - | FileCheck --check-prefix=CHECK-BC0 %s
|
|
; RUN: llvm-dis %t.opt.bc1 -o - | FileCheck --check-prefix=CHECK-BC1 %s
|
|
; RUN: llvm-nm %t.o0 | FileCheck --check-prefix=CHECK0 %s
|
|
; RUN: llvm-nm %t.o1 | FileCheck --check-prefix=CHECK1 %s
|
|
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
|
|
; CHECK-BC0: define void @foo
|
|
; CHECK-BC0: declare void @bar
|
|
; CHECK0-NOT: bar
|
|
; CHECK0: T foo
|
|
; CHECK0-NOT: bar
|
|
define void @foo() {
|
|
call void @bar()
|
|
ret void
|
|
}
|
|
|
|
; CHECK-BC1: declare void @foo
|
|
; CHECK-BC1: define void @bar
|
|
; CHECK1-NOT: foo
|
|
; CHECK1: T bar
|
|
; CHECK1-NOT: foo
|
|
define void @bar() {
|
|
call void @foo()
|
|
ret void
|
|
}
|