From: Arnaud A. de Grandmaison Date: Fri, 11 Sep 2015 14:45:34 +0000 (+0000) Subject: Tweak 2 x86 gold tests so they can run on non-x86 platforms X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7f81eabc26859ad78f1be4f0b0e5a0f3bfffa60a;p=oota-llvm.git Tweak 2 x86 gold tests so they can run on non-x86 platforms git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247415 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/tools/gold/X86/bcsection.ll b/test/tools/gold/X86/bcsection.ll index 37d2994cc78..f7ebe375770 100644 --- a/test/tools/gold/X86/bcsection.ll +++ b/test/tools/gold/X86/bcsection.ll @@ -1,10 +1,12 @@ ; RUN: llvm-as -o %T/bcsection.bc %s -; RUN: llvm-mc -I=%T -filetype=obj -o %T/bcsection.bco %p/Inputs/bcsection.s +; RUN: llvm-mc -I=%T -filetype=obj -triple=x86_64-unknown-unknown -o %T/bcsection.bco %p/Inputs/bcsection.s ; RUN: llvm-nm -no-llvm-bc %T/bcsection.bco | count 0 -; RUN: %gold -r -o %T/bcsection.o -plugin %llvmshlibdir/LLVMgold.so %T/bcsection.bco +; RUN: %gold -r -o %T/bcsection.o -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold.so %T/bcsection.bco ; RUN: llvm-nm -no-llvm-bc %T/bcsection.o | FileCheck %s +target triple = "x86_64-unknown-unknown" + ; CHECK: main define i32 @main() { ret i32 0 diff --git a/test/tools/gold/X86/parallel.ll b/test/tools/gold/X86/parallel.ll index 25d7efa8a5b..00a0bafda25 100644 --- a/test/tools/gold/X86/parallel.ll +++ b/test/tools/gold/X86/parallel.ll @@ -1,5 +1,5 @@ ; RUN: llvm-as -o %t.bc %s -; RUN: env LD_PRELOAD=%llvmshlibdir/LLVMgold.so %gold -plugin %llvmshlibdir/LLVMgold.so -u foo -u bar -plugin-opt jobs=2 -plugin-opt save-temps -o %t %t.bc +; RUN: env LD_PRELOAD=%llvmshlibdir/LLVMgold.so %gold -plugin %llvmshlibdir/LLVMgold.so -u foo -u bar -plugin-opt jobs=2 -plugin-opt save-temps -m elf_x86_64 -o %t %t.bc ; RUN: llvm-nm %t.o0 | FileCheck --check-prefix=CHECK0 %s ; RUN: llvm-nm %t.o1 | FileCheck --check-prefix=CHECK1 %s