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-nm %t.o0 | FileCheck --check-prefix=CHECK0 %s
      4 ; RUN: llvm-nm %t.o1 | FileCheck --check-prefix=CHECK1 %s
      5 
      6 target triple = "x86_64-unknown-linux-gnu"
      7 
      8 ; CHECK0-NOT: bar
      9 ; CHECK0: T foo
     10 ; CHECK0-NOT: bar
     11 define void @foo() {
     12   call void @bar()
     13   ret void
     14 }
     15 
     16 ; CHECK1-NOT: foo
     17 ; CHECK1: T bar
     18 ; CHECK1-NOT: foo
     19 define void @bar() {
     20   call void @foo()
     21   ret void
     22 }
     23