[llvm] a6febd5 - [Gold Tests] Add missing target flag to X86 test
Troy Johnson via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 4 09:53:42 PST 2019
Author: Troy Johnson
Date: 2019-12-04T11:50:44-06:00
New Revision: a6febd53c94afea4fa88503328ad800d9c3ab1a2
URL: https://github.com/llvm/llvm-project/commit/a6febd53c94afea4fa88503328ad800d9c3ab1a2
DIFF: https://github.com/llvm/llvm-project/commit/a6febd53c94afea4fa88503328ad800d9c3ab1a2.diff
LOG: [Gold Tests] Add missing target flag to X86 test
This test was failing on non-X86 targets because the gold invocation did not
have the necessary -m flag.
Differential Revision: https://reviews.llvm.org/D70982
Added:
Modified:
llvm/test/tools/gold/X86/linkonce_odr_unnamed_addr.ll
Removed:
################################################################################
diff --git a/llvm/test/tools/gold/X86/linkonce_odr_unnamed_addr.ll b/llvm/test/tools/gold/X86/linkonce_odr_unnamed_addr.ll
index 525bf2d6825f..f8df9430eff0 100644
--- a/llvm/test/tools/gold/X86/linkonce_odr_unnamed_addr.ll
+++ b/llvm/test/tools/gold/X86/linkonce_odr_unnamed_addr.ll
@@ -4,6 +4,7 @@
; RUN: opt -module-summary %s -o %t.o
; RUN: opt -module-summary %p/Inputs/linkonce_odr_unnamed_addr.ll -o %t2.o
; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext \
+; RUN: -m elf_x86_64 \
; RUN: --plugin-opt=save-temps \
; RUN: %t.o %t2.o -o %t3.o
; RUN: llvm-dis %t.o.1.promote.bc -o - | FileCheck %s
@@ -12,6 +13,7 @@
; conservative and not auto hide.
; RUN: llc %p/Inputs/linkonce_odr_unnamed_addr.ll -o %t2native.o -filetype=obj
; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext \
+; RUN: -m elf_x86_64 \
; RUN: --plugin-opt=save-temps \
; RUN: %t.o %t2native.o -o %t3.o
; RUN: llvm-dis %t.o.1.promote.bc -o - | FileCheck %s --check-prefix=NOSUMMARY
More information about the llvm-commits
mailing list