xref: /aosp_15_r20/external/llvm/test/tools/gold/PowerPC/mtriple.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; REQUIRES: ld_emu_elf32ppc
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker; RUN: llvm-as %s -o %t.o
4*9880d681SAndroid Build Coastguard Worker; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so -m elf32ppc \
5*9880d681SAndroid Build Coastguard Worker; RUN:    -plugin-opt=mtriple=powerpc-linux-gnu \
6*9880d681SAndroid Build Coastguard Worker; RUN:    -plugin-opt=obj-path=%t3.o \
7*9880d681SAndroid Build Coastguard Worker; RUN:    -shared %t.o -o %t2
8*9880d681SAndroid Build Coastguard Worker; RUN: llvm-readobj --file-headers %t2 | FileCheck  --check-prefix=DSO %s
9*9880d681SAndroid Build Coastguard Worker; RUN: llvm-readobj --file-headers %t3.o | FileCheck --check-prefix=REL %s
10*9880d681SAndroid Build Coastguard Worker
11*9880d681SAndroid Build Coastguard Worker; REL:       Type: Relocatable
12*9880d681SAndroid Build Coastguard Worker; REL-NEXT:  Machine: EM_PPC
13*9880d681SAndroid Build Coastguard Worker
14*9880d681SAndroid Build Coastguard Worker; DSO:       Type: SharedObject
15*9880d681SAndroid Build Coastguard Worker; DSO-NEXT:  Machine: EM_PPC
16