Home | History | Annotate | Download | only in X86
      1 ; RUN: llvm-as -o %t.bc %s
      2 ; 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
      3 ; RUN: llvm-dis %t.opt.bc0 -o - | FileCheck --check-prefix=CHECK-BC0 %s
      4 ; RUN: llvm-dis %t.opt.bc1 -o - | FileCheck --check-prefix=CHECK-BC1 %s
      5 ; RUN: llvm-nm %t.o0 | FileCheck --check-prefix=CHECK0 %s
      6 ; RUN: llvm-nm %t.o1 | FileCheck --check-prefix=CHECK1 %s
      7 
      8 target triple = "x86_64-unknown-linux-gnu"
      9 
     10 ; CHECK-BC0: define void @foo
     11 ; CHECK-BC0: declare void @bar
     12 ; CHECK0-NOT: bar
     13 ; CHECK0: T foo
     14 ; CHECK0-NOT: bar
     15 define void @foo() {
     16   call void @bar()
     17   ret void
     18 }
     19 
     20 ; CHECK-BC1: declare void @foo
     21 ; CHECK-BC1: define void @bar
     22 ; CHECK1-NOT: foo
     23 ; CHECK1: T bar
     24 ; CHECK1-NOT: foo
     25 define void @bar() {
     26   call void @foo()
     27   ret void
     28 }
     29