llvm-6502/test/tools/gold/mtriple.ll
Peter Collingbourne 5e86804089 gold: Make powerpc support optional for the tests.
Differential Revision: http://reviews.llvm.org/D8400

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232744 91177308-0d34-0410-b5e6-96231b3b80d8
2015-03-19 18:23:31 +00:00

16 lines
507 B
LLVM

; REQUIRES: ld_emu_elf32ppc
; RUN: llvm-as %s -o %t.o
; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so -m elf32ppc \
; RUN: -plugin-opt=mtriple=powerpc-linux-gnu \
; RUN: -plugin-opt=obj-path=%t3.o \
; RUN: -shared %t.o -o %t2
; RUN: llvm-readobj --file-headers %t2 | FileCheck --check-prefix=DSO %s
; RUN: llvm-readobj --file-headers %t3.o | FileCheck --check-prefix=REL %s
; REL: Type: Relocatable
; REL-NEXT: Machine: EM_PPC
; DSO: Type: SharedObject
; DSO-NEXT: Machine: EM_PPC