[llvm] r233124 - Add -m -m elf_x86_64 to gold invocations.
Rafael Espindola
rafael.espindola at gmail.com
Tue Mar 24 15:20:20 PDT 2015
Author: rafael
Date: Tue Mar 24 17:20:19 2015
New Revision: 233124
URL: http://llvm.org/viewvc/llvm-project?rev=233124&view=rev
Log:
Add -m -m elf_x86_64 to gold invocations.
Otherwise the tests would fail if the default was not elf_x86_64.
This fixes PR22966.
Patch by H.J. Lu!
Modified:
llvm/trunk/test/tools/gold/pr19901.ll
llvm/trunk/test/tools/gold/remarks.ll
llvm/trunk/test/tools/gold/vectorize.ll
Modified: llvm/trunk/test/tools/gold/pr19901.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/pr19901.ll?rev=233124&r1=233123&r2=233124&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/pr19901.ll (original)
+++ llvm/trunk/test/tools/gold/pr19901.ll Tue Mar 24 17:20:19 2015
@@ -1,6 +1,7 @@
; RUN: llc %s -o %t.o -filetype=obj -relocation-model=pic
; RUN: llvm-as %p/Inputs/pr19901-1.ll -o %t2.o
-; RUN: %gold -shared -o %t.so -plugin %llvmshlibdir/LLVMgold.so %t2.o %t.o
+; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so \
+; RUN: -shared -m elf_x86_64 -o %t.so %t2.o %t.o
; RUN: llvm-readobj -t %t.so | FileCheck %s
; CHECK: Symbol {
Modified: llvm/trunk/test/tools/gold/remarks.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/remarks.ll?rev=233124&r1=233123&r2=233124&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/remarks.ll (original)
+++ llvm/trunk/test/tools/gold/remarks.ll Tue Mar 24 17:20:19 2015
@@ -1,9 +1,9 @@
; RUN: llvm-as %s -o %t.o
-; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so \
+; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold.so \
; RUN: -plugin-opt=-pass-remarks=inline %t.o -o %t2.o 2>&1 | FileCheck %s
-; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so \
+; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold.so \
; RUN: %t.o -o %t2.o 2>&1 | FileCheck -allow-empty --check-prefix=NO-REMARK %s
Modified: llvm/trunk/test/tools/gold/vectorize.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/vectorize.ll?rev=233124&r1=233123&r2=233124&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/vectorize.ll (original)
+++ llvm/trunk/test/tools/gold/vectorize.ll Tue Mar 24 17:20:19 2015
@@ -1,6 +1,6 @@
; RUN: llvm-as %s -o %t.o
-; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so \
+; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold.so \
; RUN: --plugin-opt=save-temps \
; RUN: -shared %t.o -o %t2.o
; RUN: llvm-dis %t2.o.opt.bc -o - | FileCheck %s
More information about the llvm-commits
mailing list