From 54ce82e4971fcb748068fbb047077749498f0fa5 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 24 Mar 2015 22:20:19 +0000 Subject: [PATCH] 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! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233124 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/tools/gold/pr19901.ll | 3 ++- test/tools/gold/remarks.ll | 4 ++-- test/tools/gold/vectorize.ll | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/test/tools/gold/pr19901.ll b/test/tools/gold/pr19901.ll index 2a7dea15573..71bb134ead7 100644 --- a/test/tools/gold/pr19901.ll +++ b/test/tools/gold/pr19901.ll @@ -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 { diff --git a/test/tools/gold/remarks.ll b/test/tools/gold/remarks.ll index f84016e9047..c4fa7f787f2 100644 --- a/test/tools/gold/remarks.ll +++ b/test/tools/gold/remarks.ll @@ -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 diff --git a/test/tools/gold/vectorize.ll b/test/tools/gold/vectorize.ll index 121c96e6e9e..5f003dd02e2 100644 --- a/test/tools/gold/vectorize.ll +++ b/test/tools/gold/vectorize.ll @@ -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