Add a test for the mtriple plugin option.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 29 Jul 2014 17:27:07 +0000 (17:27 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 29 Jul 2014 17:27:07 +0000 (17:27 +0000)
llvm-svn: 214186

llvm/test/tools/gold/mtriple.ll [new file with mode: 0644]

diff --git a/llvm/test/tools/gold/mtriple.ll b/llvm/test/tools/gold/mtriple.ll
new file mode 100644 (file)
index 0000000..61a0191
--- /dev/null
@@ -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