xref: /aosp_15_r20/external/llvm/test/tools/gold/X86/parallel.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llvm-as -o %t.bc %s
2*9880d681SAndroid Build Coastguard Worker; 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*9880d681SAndroid Build Coastguard Worker; RUN: llvm-dis %t.opt.bc0 -o - | FileCheck --check-prefix=CHECK-BC0 %s
4*9880d681SAndroid Build Coastguard Worker; RUN: llvm-dis %t.opt.bc1 -o - | FileCheck --check-prefix=CHECK-BC1 %s
5*9880d681SAndroid Build Coastguard Worker; RUN: llvm-nm %t.o0 | FileCheck --check-prefix=CHECK0 %s
6*9880d681SAndroid Build Coastguard Worker; RUN: llvm-nm %t.o1 | FileCheck --check-prefix=CHECK1 %s
7*9880d681SAndroid Build Coastguard Worker
8*9880d681SAndroid Build Coastguard Workertarget triple = "x86_64-unknown-linux-gnu"
9*9880d681SAndroid Build Coastguard Worker
10*9880d681SAndroid Build Coastguard Worker; CHECK-BC0: define void @foo
11*9880d681SAndroid Build Coastguard Worker; CHECK-BC0: declare void @bar
12*9880d681SAndroid Build Coastguard Worker; CHECK0-NOT: bar
13*9880d681SAndroid Build Coastguard Worker; CHECK0: T foo
14*9880d681SAndroid Build Coastguard Worker; CHECK0-NOT: bar
15*9880d681SAndroid Build Coastguard Workerdefine void @foo() {
16*9880d681SAndroid Build Coastguard Worker  call void @bar()
17*9880d681SAndroid Build Coastguard Worker  ret void
18*9880d681SAndroid Build Coastguard Worker}
19*9880d681SAndroid Build Coastguard Worker
20*9880d681SAndroid Build Coastguard Worker; CHECK-BC1: declare void @foo
21*9880d681SAndroid Build Coastguard Worker; CHECK-BC1: define void @bar
22*9880d681SAndroid Build Coastguard Worker; CHECK1-NOT: foo
23*9880d681SAndroid Build Coastguard Worker; CHECK1: T bar
24*9880d681SAndroid Build Coastguard Worker; CHECK1-NOT: foo
25*9880d681SAndroid Build Coastguard Workerdefine void @bar() {
26*9880d681SAndroid Build Coastguard Worker  call void @foo()
27*9880d681SAndroid Build Coastguard Worker  ret void
28*9880d681SAndroid Build Coastguard Worker}
29