Skip to content

Commit a6febd5

Browse files
committed
[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
1 parent e8a5c17 commit a6febd5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/test/tools/gold/X86/linkonce_odr_unnamed_addr.ll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
; RUN: opt -module-summary %s -o %t.o
55
; RUN: opt -module-summary %p/Inputs/linkonce_odr_unnamed_addr.ll -o %t2.o
66
; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext \
7+
; RUN: -m elf_x86_64 \
78
; RUN: --plugin-opt=save-temps \
89
; RUN: %t.o %t2.o -o %t3.o
910
; RUN: llvm-dis %t.o.1.promote.bc -o - | FileCheck %s
@@ -12,6 +13,7 @@
1213
; conservative and not auto hide.
1314
; RUN: llc %p/Inputs/linkonce_odr_unnamed_addr.ll -o %t2native.o -filetype=obj
1415
; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext \
16+
; RUN: -m elf_x86_64 \
1517
; RUN: --plugin-opt=save-temps \
1618
; RUN: %t.o %t2native.o -o %t3.o
1719
; RUN: llvm-dis %t.o.1.promote.bc -o - | FileCheck %s --check-prefix=NOSUMMARY

0 commit comments

Comments
 (0)