From 800b4d1157a974d1dd2ba93d1769017808bdb0e2 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 29 Jul 2014 17:27:07 +0000 Subject: [PATCH] Add a test for the mtriple plugin option. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214186 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/tools/gold/mtriple.ll | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/tools/gold/mtriple.ll diff --git a/test/tools/gold/mtriple.ll b/test/tools/gold/mtriple.ll new file mode 100644 index 00000000000..61a0191efc9 --- /dev/null +++ b/test/tools/gold/mtriple.ll @@ -0,0 +1,7 @@ +; RUN: llvm-as %s -o %t.o +; RUN: ld -plugin %llvmshlibdir/LLVMgold.so -m elf32ppc \ +; RUN: -plugin-opt=mtriple=powerpc-linux-gnu \ +; RUN: -shared %t.o -o %t2.o +; RUN: llvm-readobj %t2.o | FileCheck %s + +; CHECK: Format: ELF32-ppc -- 2.40.0