[llvm] r262745 - Fix new gold test to specify emulation mode.

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 4 13:19:09 PST 2016


Author: tejohnson
Date: Fri Mar  4 15:19:08 2016
New Revision: 262745

URL: http://llvm.org/viewvc/llvm-project?rev=262745&view=rev
Log:
Fix new gold test to specify emulation mode.

The thinlto_linkonceresolution.ll gold linker test introduced in r262727
included a target triple, but didn't set the emulation mode, which is
necessary since the default linker target may be different.

Patch by H.J. Lu

Modified:
    llvm/trunk/test/tools/gold/X86/thinlto_linkonceresolution.ll

Modified: llvm/trunk/test/tools/gold/X86/thinlto_linkonceresolution.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/gold/X86/thinlto_linkonceresolution.ll?rev=262745&r1=262744&r2=262745&view=diff
==============================================================================
--- llvm/trunk/test/tools/gold/X86/thinlto_linkonceresolution.ll (original)
+++ llvm/trunk/test/tools/gold/X86/thinlto_linkonceresolution.ll Fri Mar  4 15:19:08 2016
@@ -7,7 +7,7 @@
 ; so listing %t2.o first is sufficient to ensure that this copy is
 ; preempted. Also, set the import-instr-limit to 0 to prevent f() from
 ; being imported from %t2.o which hides the problem.
-; RUN: %gold -plugin %llvmshlibdir/LLVMgold.so \
+; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold.so \
 ; RUN:     --plugin-opt=thinlto \
 ; RUN:     --plugin-opt=-import-instr-limit=0 \
 ; RUN:     --plugin-opt=save-temps \




More information about the llvm-commits mailing list