[lld] r333567 - [ELF] Remove -m argument to lld in test files. NFC.
Sam Clegg via llvm-commits
llvm-commits at lists.llvm.org
Wed May 30 10:57:09 PDT 2018
Author: sbc
Date: Wed May 30 10:57:08 2018
New Revision: 333567
URL: http://llvm.org/viewvc/llvm-project?rev=333567&view=rev
Log:
[ELF] Remove -m argument to lld in test files. NFC.
This should be correctly implied by the linker.
This also makes the tests slightly easier to maintain and compare
with the equivalent tests under for other platforms.
Differential Revision: https://reviews.llvm.org/D47513
Modified:
lld/trunk/test/ELF/lto/Inputs/archive-3.ll
lld/trunk/test/ELF/lto/Inputs/common3.ll
lld/trunk/test/ELF/lto/archive-2.ll
lld/trunk/test/ELF/lto/archive-3.ll
lld/trunk/test/ELF/lto/archive-no-index.ll
lld/trunk/test/ELF/lto/archive.ll
lld/trunk/test/ELF/lto/asmundef.ll
lld/trunk/test/ELF/lto/available-externally.ll
lld/trunk/test/ELF/lto/bitcode-nodatalayout.ll
lld/trunk/test/ELF/lto/codemodel.ll
lld/trunk/test/ELF/lto/combined-lto-object-name.ll
lld/trunk/test/ELF/lto/comdat.ll
lld/trunk/test/ELF/lto/comdat2.ll
lld/trunk/test/ELF/lto/common2.ll
lld/trunk/test/ELF/lto/common3.ll
lld/trunk/test/ELF/lto/ctors.ll
lld/trunk/test/ELF/lto/discard-value-names.ll
lld/trunk/test/ELF/lto/drop-debug-info.ll
lld/trunk/test/ELF/lto/drop-linkage.ll
lld/trunk/test/ELF/lto/duplicated.ll
lld/trunk/test/ELF/lto/dynamic-list.ll
lld/trunk/test/ELF/lto/dynsym.ll
lld/trunk/test/ELF/lto/inline-asm.ll
lld/trunk/test/ELF/lto/internalize-basic.ll
lld/trunk/test/ELF/lto/internalize-exportdyn.ll
lld/trunk/test/ELF/lto/internalize-llvmused.ll
lld/trunk/test/ELF/lto/internalize-undef.ll
lld/trunk/test/ELF/lto/internalize-version-script.ll
lld/trunk/test/ELF/lto/irmover-error.ll
lld/trunk/test/ELF/lto/keep-undefined.ll
lld/trunk/test/ELF/lto/linkage.ll
lld/trunk/test/ELF/lto/linker-script-symbols-assign.ll
lld/trunk/test/ELF/lto/linker-script-symbols-ipo.ll
lld/trunk/test/ELF/lto/linker-script-symbols.ll
lld/trunk/test/ELF/lto/lto-start.ll
lld/trunk/test/ELF/lto/ltopasses-basic.ll
lld/trunk/test/ELF/lto/ltopasses-custom.ll
lld/trunk/test/ELF/lto/metadata.ll
lld/trunk/test/ELF/lto/module-asm.ll
lld/trunk/test/ELF/lto/opt-level.ll
lld/trunk/test/ELF/lto/parallel-internalize.ll
lld/trunk/test/ELF/lto/parallel.ll
lld/trunk/test/ELF/lto/relax-relocs.ll
lld/trunk/test/ELF/lto/save-temps.ll
lld/trunk/test/ELF/lto/start-lib.ll
lld/trunk/test/ELF/lto/thinlto-cant-write-index.ll
lld/trunk/test/ELF/lto/thinlto-emit-imports.ll
lld/trunk/test/ELF/lto/thinlto-index-file.ll
lld/trunk/test/ELF/lto/thinlto-index-only.ll
lld/trunk/test/ELF/lto/thinlto-no-index.ll
lld/trunk/test/ELF/lto/thinlto-object-suffix-replace.ll
lld/trunk/test/ELF/lto/tls-mixed.ll
lld/trunk/test/ELF/lto/tls-preserve.ll
lld/trunk/test/ELF/lto/type-merge.ll
lld/trunk/test/ELF/lto/type-merge2.ll
lld/trunk/test/ELF/lto/undef-weak.ll
lld/trunk/test/ELF/lto/undef.ll
lld/trunk/test/ELF/lto/undefined-puts.ll
lld/trunk/test/ELF/lto/unnamed-addr-comdat.ll
lld/trunk/test/ELF/lto/unnamed-addr-drop.ll
lld/trunk/test/ELF/lto/unnamed-addr-lib.ll
lld/trunk/test/ELF/lto/unnamed-addr.ll
lld/trunk/test/ELF/lto/verify-invalid.ll
lld/trunk/test/ELF/lto/version-script.ll
lld/trunk/test/ELF/lto/weak.ll
Modified: lld/trunk/test/ELF/lto/Inputs/archive-3.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/Inputs/archive-3.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/Inputs/archive-3.ll (original)
+++ lld/trunk/test/ELF/lto/Inputs/archive-3.ll Wed May 30 10:57:08 2018
@@ -1,5 +1,6 @@
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
+
define void @foo() {
ret void
}
Modified: lld/trunk/test/ELF/lto/Inputs/common3.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/Inputs/common3.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/Inputs/common3.ll (original)
+++ lld/trunk/test/ELF/lto/Inputs/common3.ll Wed May 30 10:57:08 2018
@@ -1,3 +1,4 @@
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
+
@a = common hidden global i64 0, align 4
Modified: lld/trunk/test/ELF/lto/archive-2.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/archive-2.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/archive-2.ll (original)
+++ lld/trunk/test/ELF/lto/archive-2.ll Wed May 30 10:57:08 2018
@@ -3,9 +3,9 @@
; RUN: rm -f %t.a
; RUN: llvm-ar rcs %t.a %t1.o
; RUN: llvm-as %s -o %t2.o
-; RUN: ld.lld -m elf_x86_64 %t2.o %t.a -o %t3
+; RUN: ld.lld %t2.o %t.a -o %t3
; RUN: llvm-readobj -t %t3 | FileCheck %s
-; RUN: ld.lld -m elf_x86_64 %t2.o --whole-archive %t.a -o %t3 -shared
+; RUN: ld.lld %t2.o --whole-archive %t.a -o %t3 -shared
; RUN: llvm-readobj -t %t3 | FileCheck %s
; CHECK: Name: _start (
Modified: lld/trunk/test/ELF/lto/archive-3.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/archive-3.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/archive-3.ll (original)
+++ lld/trunk/test/ELF/lto/archive-3.ll Wed May 30 10:57:08 2018
@@ -2,12 +2,12 @@
; RUN: llvm-as %S/Inputs/archive-3.ll -o %t1.o
; RUN: llvm-as %s -o %t2.o
-; RUN: ld.lld -m elf_x86_64 %t1.o %t2.o -o %t3 -save-temps
+; RUN: ld.lld %t1.o %t2.o -o %t3 -save-temps
; RUN: llvm-dis %t3.0.2.internalize.bc -o - | FileCheck %s
; RUN: rm -f %t.a
; RUN: llvm-ar rcs %t.a %t1.o
-; RUN: ld.lld -m elf_x86_64 %t.a %t1.o %t2.o -o %t3 -save-temps
+; RUN: ld.lld %t.a %t1.o %t2.o -o %t3 -save-temps
; RUN: llvm-dis %t3.0.2.internalize.bc -o - | FileCheck %s
; CHECK: define internal void @foo() {
Modified: lld/trunk/test/ELF/lto/archive-no-index.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/archive-no-index.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/archive-no-index.ll (original)
+++ lld/trunk/test/ELF/lto/archive-no-index.ll Wed May 30 10:57:08 2018
@@ -11,8 +11,8 @@
; RUN: llvm-ar crS %t1.a %t2.o
; RUN: llvm-ar crs %t2.a %t2.o
-; RUN: ld.lld -o %t -emain -m elf_x86_64 %t1.o %t1.a
-; RUN: ld.lld -o %t -emain -m elf_x86_64 %t1.o %t2.a
+; RUN: ld.lld -o %t -emain %t1.o %t1.a
+; RUN: ld.lld -o %t -emain %t1.o %t2.a
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
Modified: lld/trunk/test/ELF/lto/archive.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/archive.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/archive.ll (original)
+++ lld/trunk/test/ELF/lto/archive.ll Wed May 30 10:57:08 2018
@@ -3,9 +3,9 @@
; RUN: rm -f %t.a
; RUN: llvm-ar rcs %t.a %t1.o
; RUN: llvm-as %s -o %t2.o
-; RUN: ld.lld -m elf_x86_64 %t2.o %t.a -o %t3 -shared
+; RUN: ld.lld %t2.o %t.a -o %t3 -shared
; RUN: llvm-readobj -t %t3 | FileCheck %s
-; RUN: ld.lld -m elf_x86_64 %t2.o --whole-archive %t.a -o %t3 -shared
+; RUN: ld.lld %t2.o --whole-archive %t.a -o %t3 -shared
; RUN: llvm-readobj -t %t3 | FileCheck %s
; CHECK: Name: g (
Modified: lld/trunk/test/ELF/lto/asmundef.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/asmundef.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/asmundef.ll (original)
+++ lld/trunk/test/ELF/lto/asmundef.ll Wed May 30 10:57:08 2018
@@ -1,7 +1,7 @@
; REQUIRES: x86
; RUN: llvm-as %s -o %t.o
; RUN: llvm-as %S/Inputs/asmundef.ll -o %t2.o
-; RUN: ld.lld -m elf_x86_64 %t.o %t2.o -o %t -save-temps
+; RUN: ld.lld %t.o %t2.o -o %t -save-temps
; RUN: llvm-dis %t.0.4.opt.bc -o - | FileCheck %s
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
Modified: lld/trunk/test/ELF/lto/available-externally.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/available-externally.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/available-externally.ll (original)
+++ lld/trunk/test/ELF/lto/available-externally.ll Wed May 30 10:57:08 2018
@@ -1,7 +1,7 @@
; REQUIRES: x86
; RUN: llvm-as %s -o %t1.o
; RUN: llvm-as %p/Inputs/available-externally.ll -o %t2.o
-; RUN: ld.lld %t1.o %t2.o -m elf_x86_64 -o %t.so -shared -save-temps
+; RUN: ld.lld %t1.o %t2.o -o %t.so -shared -save-temps
; RUN: llvm-dis < %t.so.0.2.internalize.bc | FileCheck %s
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
Modified: lld/trunk/test/ELF/lto/bitcode-nodatalayout.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/bitcode-nodatalayout.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/bitcode-nodatalayout.ll (original)
+++ lld/trunk/test/ELF/lto/bitcode-nodatalayout.ll Wed May 30 10:57:08 2018
@@ -1,6 +1,6 @@
; REQUIRES: x86
; RUN: llvm-as %s -o %t.o
-; RUN: not ld.lld -m elf_x86_64 %t.o -o %t 2>&1 | FileCheck %s
+; RUN: not ld.lld %t.o -o %t 2>&1 | FileCheck %s
; CHECK: input module has no datalayout
Modified: lld/trunk/test/ELF/lto/codemodel.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/codemodel.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/codemodel.ll (original)
+++ lld/trunk/test/ELF/lto/codemodel.ll Wed May 30 10:57:08 2018
@@ -1,7 +1,7 @@
; REQUIRES: x86
; RUN: llvm-as %s -o %t.o
-; RUN: ld.lld -m elf_x86_64 %t.o -o %ts -mllvm -code-model=small
-; RUN: ld.lld -m elf_x86_64 %t.o -o %tl -mllvm -code-model=large
+; RUN: ld.lld %t.o -o %ts -mllvm -code-model=small
+; RUN: ld.lld %t.o -o %tl -mllvm -code-model=large
; RUN: llvm-objdump -d %ts | FileCheck %s --check-prefix=CHECK-SMALL
; RUN: llvm-objdump -d %tl | FileCheck %s --check-prefix=CHECK-LARGE
Modified: lld/trunk/test/ELF/lto/combined-lto-object-name.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/combined-lto-object-name.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/combined-lto-object-name.ll (original)
+++ lld/trunk/test/ELF/lto/combined-lto-object-name.ll Wed May 30 10:57:08 2018
@@ -1,6 +1,6 @@
; REQUIRES: x86
; RUN: llvm-as %s -o %t.o
-; RUN: not ld.lld -m elf_x86_64 %t.o -o %t2 2>&1 | FileCheck %s
+; RUN: not ld.lld %t.o -o %t2 2>&1 | FileCheck %s
target triple = "x86_64-unknown-linux-gnu"
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
Modified: lld/trunk/test/ELF/lto/comdat.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/comdat.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/comdat.ll (original)
+++ lld/trunk/test/ELF/lto/comdat.ll Wed May 30 10:57:08 2018
@@ -1,6 +1,6 @@
; REQUIRES: x86
; RUN: llvm-as %s -o %t.o
-; RUN: ld.lld -m elf_x86_64 %t.o %t.o -o %t.so -shared
+; RUN: ld.lld %t.o %t.o -o %t.so -shared
; RUN: llvm-readobj -t %t.so | FileCheck %s
; CHECK: Name: foo
Modified: lld/trunk/test/ELF/lto/comdat2.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/comdat2.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/comdat2.ll (original)
+++ lld/trunk/test/ELF/lto/comdat2.ll Wed May 30 10:57:08 2018
@@ -1,9 +1,9 @@
; REQUIRES: x86
; RUN: llvm-as %s -o %t.o
; RUN: llvm-mc -triple=x86_64-pc-linux %p/Inputs/comdat.s -o %t2.o -filetype=obj
-; RUN: ld.lld -m elf_x86_64 %t.o %t2.o -o %t.so -shared
+; RUN: ld.lld %t.o %t2.o -o %t.so -shared
; RUN: llvm-readobj -t %t.so | FileCheck %s
-; RUN: ld.lld -m elf_x86_64 %t2.o %t.o -o %t2.so -shared
+; RUN: ld.lld %t2.o %t.o -o %t2.so -shared
; RUN: llvm-readobj -t %t2.so | FileCheck %s --check-prefix=OTHER
Modified: lld/trunk/test/ELF/lto/common2.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/common2.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/common2.ll (original)
+++ lld/trunk/test/ELF/lto/common2.ll Wed May 30 10:57:08 2018
@@ -1,6 +1,6 @@
; REQUIRES: x86
; RUN: llvm-as %s -o %t1.o
-; RUN: ld.lld -m elf_x86_64 %t1.o -o %t -shared -save-temps
+; RUN: ld.lld %t1.o -o %t -shared -save-temps
; RUN: llvm-dis < %t.0.2.internalize.bc | FileCheck %s
; RUN: llvm-readobj -t %t | FileCheck %s --check-prefix=SHARED
Modified: lld/trunk/test/ELF/lto/common3.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/common3.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/common3.ll (original)
+++ lld/trunk/test/ELF/lto/common3.ll Wed May 30 10:57:08 2018
@@ -1,7 +1,7 @@
; REQUIRES: x86
; RUN: llvm-as %s -o %t1.o
; RUN: llvm-as %S/Inputs/common3.ll -o %t2.o
-; RUN: ld.lld -m elf_x86_64 %t1.o %t2.o -o %t -shared -save-temps
+; RUN: ld.lld %t1.o %t2.o -o %t -shared -save-temps
; RUN: llvm-dis < %t.0.2.internalize.bc | FileCheck %s
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
Modified: lld/trunk/test/ELF/lto/ctors.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/ctors.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/ctors.ll (original)
+++ lld/trunk/test/ELF/lto/ctors.ll Wed May 30 10:57:08 2018
@@ -1,6 +1,6 @@
; REQUIRES: x86
; RUN: llvm-as %s -o %t.o
-; RUN: ld.lld -m elf_x86_64 %t.o -o %t.so -shared
+; RUN: ld.lld %t.o -o %t.so -shared
; RUN: llvm-readobj -sections %t.so | FileCheck %s
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
Modified: lld/trunk/test/ELF/lto/discard-value-names.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/discard-value-names.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/discard-value-names.ll (original)
+++ lld/trunk/test/ELF/lto/discard-value-names.ll Wed May 30 10:57:08 2018
@@ -1,7 +1,7 @@
; REQUIRES: x86
; RUN: llvm-as %s -o %t.o
-; RUN: ld.lld -m elf_x86_64 -shared -save-temps %t.o -o %t2.o
+; RUN: ld.lld -shared -save-temps %t.o -o %t2.o
; RUN: llvm-dis < %t2.o.0.0.preopt.bc | FileCheck %s
; CHECK: @GlobalValueName
Modified: lld/trunk/test/ELF/lto/drop-debug-info.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/drop-debug-info.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/drop-debug-info.ll (original)
+++ lld/trunk/test/ELF/lto/drop-debug-info.ll Wed May 30 10:57:08 2018
@@ -3,7 +3,7 @@
; drop-debug-info.bc was created from "void f(void) {}" with clang 3.5 and
; -gline-tables-only, so it contains old debug info.
;
-; RUN: ld.lld -m elf_x86_64 -shared %p/Inputs/drop-debug-info.bc \
+; RUN: ld.lld -shared %p/Inputs/drop-debug-info.bc \
; RUN: -disable-verify -o %t 2>&1 | FileCheck %s
; CHECK: ignoring debug info with an invalid version (1) in {{.*}}drop-debug-info.bc
Modified: lld/trunk/test/ELF/lto/drop-linkage.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/drop-linkage.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/drop-linkage.ll (original)
+++ lld/trunk/test/ELF/lto/drop-linkage.ll Wed May 30 10:57:08 2018
@@ -1,12 +1,12 @@
-target triple = "x86_64-unknown-linux-gnu"
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
-
; REQUIRES: x86
; RUN: llc %s -o %t.o -filetype=obj
; RUN: llvm-as %p/Inputs/drop-linkage.ll -o %t2.o
; RUN: ld.lld %t.o %t2.o -o %t.so -save-temps -shared
; RUN: llvm-dis %t.so.0.4.opt.bc -o - | FileCheck %s
+target triple = "x86_64-unknown-linux-gnu"
+target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
+
define void @foo() {
ret void
}
Modified: lld/trunk/test/ELF/lto/duplicated.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/duplicated.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/duplicated.ll (original)
+++ lld/trunk/test/ELF/lto/duplicated.ll Wed May 30 10:57:08 2018
@@ -1,6 +1,6 @@
; REQUIRES: x86
; RUN: llvm-as %s -o %t.o
-; RUN: not ld.lld -m elf_x86_64 %t.o %t.o -o %t.so -shared 2>&1 | FileCheck %s
+; RUN: not ld.lld %t.o %t.o -o %t.so -shared 2>&1 | FileCheck %s
; CHECK: duplicate symbol: f
; CHECK-NEXT: >>> defined in {{.*}}.o
Modified: lld/trunk/test/ELF/lto/dynamic-list.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/dynamic-list.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/dynamic-list.ll (original)
+++ lld/trunk/test/ELF/lto/dynamic-list.ll Wed May 30 10:57:08 2018
@@ -1,7 +1,7 @@
; REQUIRES: x86
; RUN: llvm-as %s -o %t.o
; RUN: echo "{ foo; };" > %t.list
-; RUN: ld.lld -m elf_x86_64 -o %t --dynamic-list %t.list -pie %t.o
+; RUN: ld.lld -o %t --dynamic-list %t.list -pie %t.o
; RUN: llvm-readobj -dyn-symbols %t | FileCheck %s
; CHECK: Name: foo@
Modified: lld/trunk/test/ELF/lto/dynsym.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/dynsym.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/dynsym.ll (original)
+++ lld/trunk/test/ELF/lto/dynsym.ll Wed May 30 10:57:08 2018
@@ -1,12 +1,12 @@
; REQUIRES: x86
; RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux -o %t.o %p/Inputs/dynsym.s
-; RUN: ld.lld -m elf_x86_64 %t.o -o %t.so -shared
+; RUN: ld.lld %t.o -o %t.so -shared
; RUN: llvm-as %s -o %t2.o
-; RUN: ld.lld -m elf_x86_64 %t2.o %t.so -o %t
+; RUN: ld.lld %t2.o %t.so -o %t
; RUN: llvm-readobj -dyn-symbols %t | FileCheck %s
; Check that we don't crash when gc'ing sections and printing the result.
-; RUN: ld.lld -m elf_x86_64 %t2.o %t.so --gc-sections --print-gc-sections \
+; RUN: ld.lld %t2.o %t.so --gc-sections --print-gc-sections \
; RUN: -o %t
; RUN: llvm-readobj -dyn-symbols %t | FileCheck %s
Modified: lld/trunk/test/ELF/lto/inline-asm.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/inline-asm.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/inline-asm.ll (original)
+++ lld/trunk/test/ELF/lto/inline-asm.ll Wed May 30 10:57:08 2018
@@ -1,6 +1,6 @@
; REQUIRES: x86
; RUN: llvm-as %s -o %t.o
-; RUN: ld.lld -m elf_x86_64 %t.o -o %t.so -shared
+; RUN: ld.lld %t.o -o %t.so -shared
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
Modified: lld/trunk/test/ELF/lto/internalize-basic.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/internalize-basic.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/internalize-basic.ll (original)
+++ lld/trunk/test/ELF/lto/internalize-basic.ll Wed May 30 10:57:08 2018
@@ -1,6 +1,6 @@
; REQUIRES: x86
; RUN: llvm-as %s -o %t.o
-; RUN: ld.lld -m elf_x86_64 %t.o -o %t2 -save-temps
+; RUN: ld.lld %t.o -o %t2 -save-temps
; RUN: llvm-dis < %t2.0.2.internalize.bc | FileCheck %s
target triple = "x86_64-unknown-linux-gnu"
Modified: lld/trunk/test/ELF/lto/internalize-exportdyn.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/internalize-exportdyn.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/internalize-exportdyn.ll (original)
+++ lld/trunk/test/ELF/lto/internalize-exportdyn.ll Wed May 30 10:57:08 2018
@@ -1,7 +1,7 @@
; REQUIRES: x86
; RUN: llvm-as %s -o %t.o
; RUN: llvm-as %p/Inputs/internalize-exportdyn.ll -o %t2.o
-; RUN: ld.lld -m elf_x86_64 %t.o %t2.o -o %t2 --export-dynamic -save-temps
+; RUN: ld.lld %t.o %t2.o -o %t2 --export-dynamic -save-temps
; RUN: llvm-dis < %t2.0.2.internalize.bc | FileCheck %s
target triple = "x86_64-unknown-linux-gnu"
Modified: lld/trunk/test/ELF/lto/internalize-llvmused.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/internalize-llvmused.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/internalize-llvmused.ll (original)
+++ lld/trunk/test/ELF/lto/internalize-llvmused.ll Wed May 30 10:57:08 2018
@@ -1,6 +1,6 @@
; REQUIRES: x86
; RUN: llvm-as %s -o %t.o
-; RUN: ld.lld -m elf_x86_64 %t.o -o %t2 -save-temps
+; RUN: ld.lld %t.o -o %t2 -save-temps
; RUN: llvm-dis < %t2.0.2.internalize.bc | FileCheck %s
target triple = "x86_64-unknown-linux-gnu"
Modified: lld/trunk/test/ELF/lto/internalize-undef.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/internalize-undef.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/internalize-undef.ll (original)
+++ lld/trunk/test/ELF/lto/internalize-undef.ll Wed May 30 10:57:08 2018
@@ -1,7 +1,7 @@
; REQUIRES: x86
; RUN: llvm-as %s -o %t.o
; RUN: llvm-as %p/Inputs/internalize-undef.ll -o %t2.o
-; RUN: ld.lld -m elf_x86_64 %t.o %t2.o -o %t -save-temps
+; RUN: ld.lld %t.o %t2.o -o %t -save-temps
; RUN: llvm-dis < %t.0.2.internalize.bc | FileCheck %s
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
Modified: lld/trunk/test/ELF/lto/internalize-version-script.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/internalize-version-script.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/internalize-version-script.ll (original)
+++ lld/trunk/test/ELF/lto/internalize-version-script.ll Wed May 30 10:57:08 2018
@@ -1,7 +1,7 @@
; REQUIRES: x86
; RUN: llvm-as %s -o %t.o
; RUN: echo "{ global: foo; local: *; };" > %t.script
-; RUN: ld.lld -m elf_x86_64 %t.o -o %t2 -shared --version-script %t.script -save-temps
+; RUN: ld.lld %t.o -o %t2 -shared --version-script %t.script -save-temps
; RUN: llvm-dis < %t2.0.2.internalize.bc | FileCheck %s
target triple = "x86_64-unknown-linux-gnu"
Modified: lld/trunk/test/ELF/lto/irmover-error.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/irmover-error.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/irmover-error.ll (original)
+++ lld/trunk/test/ELF/lto/irmover-error.ll Wed May 30 10:57:08 2018
@@ -1,6 +1,6 @@
; RUN: llvm-as -o %t1.bc %s
; RUN: llvm-as -o %t2.bc %S/Inputs/irmover-error.ll
-; RUN: not ld.lld -m elf_x86_64 %t1.bc %t2.bc -o %t 2>&1 | FileCheck %s
+; RUN: not ld.lld %t1.bc %t2.bc -o %t 2>&1 | FileCheck %s
; CHECK: linking module flags 'foo': IDs have conflicting values
Modified: lld/trunk/test/ELF/lto/keep-undefined.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/keep-undefined.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/keep-undefined.ll (original)
+++ lld/trunk/test/ELF/lto/keep-undefined.ll Wed May 30 10:57:08 2018
@@ -2,7 +2,7 @@
; This test checks that symbols which are specified in "-u" switches
; are kept over LTO if we link an executable.
; RUN: llvm-as %s -o %t.o
-; RUN: ld.lld -m elf_x86_64 %t.o -o %tout -u foo
+; RUN: ld.lld %t.o -o %tout -u foo
; RUN: llvm-nm %tout | FileCheck %s
; CHECK: T foo
Modified: lld/trunk/test/ELF/lto/linkage.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/linkage.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/linkage.ll (original)
+++ lld/trunk/test/ELF/lto/linkage.ll Wed May 30 10:57:08 2018
@@ -1,6 +1,6 @@
; REQUIRES: x86
; RUN: llvm-as %s -o %t1.o
-; RUN: ld.lld -m elf_x86_64 %t1.o %t1.o -o %t.so -shared
+; RUN: ld.lld %t1.o %t1.o -o %t.so -shared
; RUN: llvm-nm %t.so | FileCheck %s
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
Modified: lld/trunk/test/ELF/lto/linker-script-symbols-assign.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/linker-script-symbols-assign.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/linker-script-symbols-assign.ll (original)
+++ lld/trunk/test/ELF/lto/linker-script-symbols-assign.ll Wed May 30 10:57:08 2018
@@ -2,7 +2,7 @@
; RUN: llvm-as %s -o %t.o
; RUN: echo "foo = 1;" > %t.script
-; RUN: ld.lld -m elf_x86_64 %t.o -o %t2 --script %t.script -save-temps
+; RUN: ld.lld %t.o -o %t2 --script %t.script -save-temps
; RUN: llvm-readobj -symbols %t2.lto.o | FileCheck %s
; CHECK-NOT: bar
@@ -20,7 +20,7 @@
; VAL-NEXT: }
; RUN: echo "zed = 1;" > %t2.script
-; RUN: ld.lld -m elf_x86_64 %t.o -o %t3 --script %t2.script
+; RUN: ld.lld %t.o -o %t3 --script %t2.script
; RUN: llvm-readobj -symbols %t3 | FileCheck %s --check-prefix=ABS
; ABS: Symbol {
; ABS: Name: zed
Modified: lld/trunk/test/ELF/lto/linker-script-symbols-ipo.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/linker-script-symbols-ipo.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/linker-script-symbols-ipo.ll (original)
+++ lld/trunk/test/ELF/lto/linker-script-symbols-ipo.ll Wed May 30 10:57:08 2018
@@ -4,7 +4,7 @@
; RUN: echo "bar = foo;" > %t.script
;; Check that without linkerscript bar is inlined.
-; RUN: ld.lld -m elf_x86_64 %t1.o %t2.o -o %t3 -save-temps
+; RUN: ld.lld %t1.o %t2.o -o %t3 -save-temps
; RUN: llvm-objdump -d %t3 | FileCheck %s --check-prefix=IPO
; IPO: Disassembly of section .text:
; IPO: _start:
@@ -12,7 +12,7 @@
; IPO-NEXT: 201005: {{.*}} retq
;; Check that LTO does not do IPO for symbols assigned by script.
-; RUN: ld.lld -m elf_x86_64 %t1.o %t2.o -o %t4 --script %t.script -save-temps
+; RUN: ld.lld %t1.o %t2.o -o %t4 --script %t.script -save-temps
; RUN: llvm-objdump -d %t4 | FileCheck %s --check-prefix=NOIPO
; NOIPO: Disassembly of section .text:
; NOIPO: foo:
Modified: lld/trunk/test/ELF/lto/linker-script-symbols.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/linker-script-symbols.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/linker-script-symbols.ll (original)
+++ lld/trunk/test/ELF/lto/linker-script-symbols.ll Wed May 30 10:57:08 2018
@@ -2,7 +2,7 @@
; RUN: llvm-as %s -o %t.o
; RUN: echo "foo = bar;" > %t.script
-; RUN: ld.lld -m elf_x86_64 %t.o -o %t2 --script %t.script -save-temps
+; RUN: ld.lld %t.o -o %t2 --script %t.script -save-temps
; RUN: llvm-readobj -symbols %t2.lto.o | FileCheck %s
; CHECK-NOT: zed
Modified: lld/trunk/test/ELF/lto/lto-start.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/lto-start.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/lto-start.ll (original)
+++ lld/trunk/test/ELF/lto/lto-start.ll Wed May 30 10:57:08 2018
@@ -1,6 +1,6 @@
; REQUIRES: x86
; RUN: llvm-as %s -o %t.o
-; RUN: ld.lld -m elf_x86_64 %t.o -o %t2
+; RUN: ld.lld %t.o -o %t2
; RUN: llvm-readobj -t %t2 | FileCheck %s
; CHECK: Format: ELF64-x86-64
Modified: lld/trunk/test/ELF/lto/ltopasses-basic.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/ltopasses-basic.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/ltopasses-basic.ll (original)
+++ lld/trunk/test/ELF/lto/ltopasses-basic.ll Wed May 30 10:57:08 2018
@@ -1,6 +1,6 @@
; REQUIRES: x86
; RUN: llvm-as %s -o %t.o
-; RUN: ld.lld -m elf_x86_64 %t.o -o %t.so -save-temps -mllvm -debug-pass=Arguments -shared 2>&1 | FileCheck %s --check-prefix=MLLVM
+; RUN: ld.lld %t.o -o %t.so -save-temps -mllvm -debug-pass=Arguments -shared 2>&1 | FileCheck %s --check-prefix=MLLVM
; RUN: llvm-dis %t.so.0.4.opt.bc -o - | FileCheck %s
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
Modified: lld/trunk/test/ELF/lto/ltopasses-custom.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/ltopasses-custom.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/ltopasses-custom.ll (original)
+++ lld/trunk/test/ELF/lto/ltopasses-custom.ll Wed May 30 10:57:08 2018
@@ -1,8 +1,8 @@
; REQUIRES: x86
; RUN: llvm-as %s -o %t.o
-; RUN: ld.lld -m elf_x86_64 %t.o -o %t.so -save-temps --lto-aa-pipeline=basic-aa \
+; RUN: ld.lld %t.o -o %t.so -save-temps --lto-aa-pipeline=basic-aa \
; RUN: --lto-newpm-passes=ipsccp -shared
-; RUN: ld.lld -m elf_x86_64 %t.o -o %t2.so -save-temps --lto-newpm-passes=loweratomic -shared
+; RUN: ld.lld %t.o -o %t2.so -save-temps --lto-newpm-passes=loweratomic -shared
; RUN: llvm-dis %t.so.0.4.opt.bc -o - | FileCheck %s
; RUN: llvm-dis %t2.so.0.4.opt.bc -o - | FileCheck %s --check-prefix=ATOMIC
Modified: lld/trunk/test/ELF/lto/metadata.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/metadata.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/metadata.ll (original)
+++ lld/trunk/test/ELF/lto/metadata.ll Wed May 30 10:57:08 2018
@@ -1,6 +1,6 @@
; REQUIRES: x86
; RUN: llvm-as %s -o %t1.o
-; RUN: ld.lld -m elf_x86_64 %t1.o %t1.o -o %t.so -shared
+; RUN: ld.lld %t1.o %t1.o -o %t.so -shared
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
Modified: lld/trunk/test/ELF/lto/module-asm.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/module-asm.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/module-asm.ll (original)
+++ lld/trunk/test/ELF/lto/module-asm.ll Wed May 30 10:57:08 2018
@@ -1,6 +1,6 @@
; REQUIRES: x86
; RUN: llvm-as %s -o %t.o
-; RUN: ld.lld -m elf_x86_64 %t.o -o %t
+; RUN: ld.lld %t.o -o %t
; RUN: llvm-nm %t | FileCheck %s
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
Modified: lld/trunk/test/ELF/lto/opt-level.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/opt-level.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/opt-level.ll (original)
+++ lld/trunk/test/ELF/lto/opt-level.ll Wed May 30 10:57:08 2018
@@ -1,30 +1,30 @@
; REQUIRES: x86
; RUN: llvm-as -o %t.o %s
-; RUN: ld.lld -o %t0 -m elf_x86_64 -e main --lto-O0 %t.o
+; RUN: ld.lld -o %t0 -e main --lto-O0 %t.o
; RUN: llvm-nm %t0 | FileCheck --check-prefix=CHECK-O0 %s
-; RUN: ld.lld -o %t0 -m elf_x86_64 -e main --plugin-opt=O0 %t.o
+; RUN: ld.lld -o %t0 -e main --plugin-opt=O0 %t.o
; RUN: llvm-nm %t0 | FileCheck --check-prefix=CHECK-O0 %s
-; RUN: ld.lld -o %t2 -m elf_x86_64 -e main --lto-O2 %t.o
+; RUN: ld.lld -o %t2 -e main --lto-O2 %t.o
; RUN: llvm-nm %t2 | FileCheck --check-prefix=CHECK-O2 %s
-; RUN: ld.lld -o %t2a -m elf_x86_64 -e main %t.o
+; RUN: ld.lld -o %t2a -e main %t.o
; RUN: llvm-nm %t2a | FileCheck --check-prefix=CHECK-O2 %s
-; RUN: ld.lld -o %t2 -m elf_x86_64 -e main %t.o --plugin-opt O2
+; RUN: ld.lld -o %t2 -e main %t.o --plugin-opt O2
; RUN: llvm-nm %t2 | FileCheck --check-prefix=CHECK-O2 %s
; Reject invalid optimization levels.
-; RUN: not ld.lld -o %t3 -m elf_x86_64 -e main --lto-O6 %t.o 2>&1 | \
+; RUN: not ld.lld -o %t3 -e main --lto-O6 %t.o 2>&1 | \
; RUN: FileCheck --check-prefix=INVALID1 %s
; INVALID1: invalid optimization level for LTO: 6
-; RUN: not ld.lld -o %t3 -m elf_x86_64 -e main --plugin-opt=O6 %t.o 2>&1 | \
+; RUN: not ld.lld -o %t3 -e main --plugin-opt=O6 %t.o 2>&1 | \
; RUN: FileCheck --check-prefix=INVALID1 %s
-; RUN: not ld.lld -o %t3 -m elf_x86_64 -e main --plugin-opt=Ofoo %t.o 2>&1 | \
+; RUN: not ld.lld -o %t3 -e main --plugin-opt=Ofoo %t.o 2>&1 | \
; RUN: FileCheck --check-prefix=INVALID2 %s
; INVALID2: --plugin-opt=Ofoo: number expected, but got 'foo'
-; RUN: not ld.lld -o %t3 -m elf_x86_64 -e main --lto-O-1 %t.o 2>&1 | \
+; RUN: not ld.lld -o %t3 -e main --lto-O-1 %t.o 2>&1 | \
; RUN: FileCheck --check-prefix=INVALIDNEGATIVE1 %s
; INVALIDNEGATIVE1: invalid optimization level for LTO: 4294967295
-; RUN: not ld.lld -o %t3 -m elf_x86_64 -e main --plugin-opt=O-1 %t.o 2>&1 | \
+; RUN: not ld.lld -o %t3 -e main --plugin-opt=O-1 %t.o 2>&1 | \
; RUN: FileCheck --check-prefix=INVALIDNEGATIVE2 %s
; INVALIDNEGATIVE2: invalid optimization level for LTO: 4294967295
Modified: lld/trunk/test/ELF/lto/parallel-internalize.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/parallel-internalize.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/parallel-internalize.ll (original)
+++ lld/trunk/test/ELF/lto/parallel-internalize.ll Wed May 30 10:57:08 2018
@@ -1,7 +1,7 @@
; REQUIRES: x86
; RUN: llvm-as -o %t.bc %s
; RUN: rm -f %t.lto.o %t1.lto.o
-; RUN: ld.lld -m elf_x86_64 --lto-partitions=2 -save-temps -o %t %t.bc \
+; RUN: ld.lld --lto-partitions=2 -save-temps -o %t %t.bc \
; RUN: -e foo --lto-O0
; RUN: llvm-readobj -t -dyn-symbols %t | FileCheck %s
; RUN: llvm-nm %t.lto.o | FileCheck --check-prefix=CHECK0 %s
Modified: lld/trunk/test/ELF/lto/parallel.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/parallel.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/parallel.ll (original)
+++ lld/trunk/test/ELF/lto/parallel.ll Wed May 30 10:57:08 2018
@@ -1,7 +1,7 @@
; REQUIRES: x86
; RUN: llvm-as -o %t.bc %s
; RUN: rm -f %t.lto.o %t1.lto.o
-; RUN: ld.lld -m elf_x86_64 --lto-partitions=2 -save-temps -o %t %t.bc -shared
+; RUN: ld.lld --lto-partitions=2 -save-temps -o %t %t.bc -shared
; RUN: llvm-nm %t.lto.o | FileCheck --check-prefix=CHECK0 %s
; RUN: llvm-nm %t1.lto.o | FileCheck --check-prefix=CHECK1 %s
Modified: lld/trunk/test/ELF/lto/relax-relocs.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/relax-relocs.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/relax-relocs.ll (original)
+++ lld/trunk/test/ELF/lto/relax-relocs.ll Wed May 30 10:57:08 2018
@@ -1,6 +1,6 @@
; REQUIRES: x86
; RUN: llvm-as %s -o %t.o
-; RUN: ld.lld -m elf_x86_64 -save-temps -shared %t.o -o %t.so
+; RUN: ld.lld -save-temps -shared %t.o -o %t.so
; RUN: llvm-readobj -r %t.so.lto.o | FileCheck %s
; Test that we produce R_X86_64_REX_GOTPCRELX instead of R_X86_64_GOTPCREL
Modified: lld/trunk/test/ELF/lto/save-temps.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/save-temps.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/save-temps.ll (original)
+++ lld/trunk/test/ELF/lto/save-temps.ll Wed May 30 10:57:08 2018
@@ -3,7 +3,7 @@
; RUN: rm -f a.out a.out.lto.bc a.out.lto.o
; RUN: llvm-as %s -o %t.o
; RUN: llvm-as %p/Inputs/save-temps.ll -o %t2.o
-; RUN: ld.lld -shared -m elf_x86_64 %t.o %t2.o -save-temps
+; RUN: ld.lld -shared %t.o %t2.o -save-temps
; RUN: llvm-nm a.out | FileCheck %s
; RUN: llvm-nm a.out.0.0.preopt.bc | FileCheck %s
; RUN: llvm-nm a.out.lto.o | FileCheck %s
Modified: lld/trunk/test/ELF/lto/start-lib.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/start-lib.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/start-lib.ll (original)
+++ lld/trunk/test/ELF/lto/start-lib.ll Wed May 30 10:57:08 2018
@@ -4,17 +4,17 @@
; RUN: llvm-as %p/Inputs/start-lib1.ll -o %t2.o
; RUN: llvm-as %p/Inputs/start-lib2.ll -o %t3.o
;
-; RUN: ld.lld -m elf_x86_64 -shared -o %t3 %t1.o %t2.o %t3.o
+; RUN: ld.lld -shared -o %t3 %t1.o %t2.o %t3.o
; RUN: llvm-readobj --symbols %t3 | FileCheck --check-prefix=TEST1 %s
; TEST1: Name: bar
; TEST1: Name: foo
;
-; RUN: ld.lld -m elf_x86_64 -shared -o %t3 -u bar %t1.o --start-lib %t2.o %t3.o
+; RUN: ld.lld -shared -o %t3 -u bar %t1.o --start-lib %t2.o %t3.o
; RUN: llvm-readobj --symbols %t3 | FileCheck --check-prefix=TEST2 %s
; TEST2: Name: bar
; TEST2-NOT: Name: foo
;
-; RUN: ld.lld -m elf_x86_64 -shared -o %t3 %t1.o --start-lib %t2.o %t3.o
+; RUN: ld.lld -shared -o %t3 %t1.o --start-lib %t2.o %t3.o
; RUN: llvm-readobj --symbols %t3 | FileCheck --check-prefix=TEST3 %s
; TEST3-NOT: Name: bar
; TEST3-NOT: Name: foo
Modified: lld/trunk/test/ELF/lto/thinlto-cant-write-index.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/thinlto-cant-write-index.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/thinlto-cant-write-index.ll (original)
+++ lld/trunk/test/ELF/lto/thinlto-cant-write-index.ll Wed May 30 10:57:08 2018
@@ -8,7 +8,7 @@
; RUN: rm -f %t2.o.thinlto.bc
; RUN: touch %t2.o.thinlto.bc
; RUN: chmod 400 %t2.o.thinlto.bc
-; RUN: not ld.lld -m elf_x86_64 --plugin-opt=thinlto-index-only -shared %t1.o %t2.o -o %t3 2>&1 | FileCheck %s
+; RUN: not ld.lld --plugin-opt=thinlto-index-only -shared %t1.o %t2.o -o %t3 2>&1 | FileCheck %s
; CHECK: cannot open {{.*}}2.o.thinlto.bc: {{P|p}}ermission denied
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
Modified: lld/trunk/test/ELF/lto/thinlto-emit-imports.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/thinlto-emit-imports.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/thinlto-emit-imports.ll (original)
+++ lld/trunk/test/ELF/lto/thinlto-emit-imports.ll Wed May 30 10:57:08 2018
@@ -31,14 +31,14 @@
; RUN: rm -f %t3.o.imports
; RUN: touch %t3.o.imports
; RUN: chmod 400 %t3.o.imports
-; RUN: not ld.lld -m elf_x86_64 --plugin-opt=thinlto-index-only --plugin-opt=thinlto-emit-imports-files -shared %t1.o %t2.o %t3.o -o %t4 2>&1 | FileCheck %s --check-prefix=ERR
+; RUN: not ld.lld --plugin-opt=thinlto-index-only --plugin-opt=thinlto-emit-imports-files -shared %t1.o %t2.o %t3.o -o %t4 2>&1 | FileCheck %s --check-prefix=ERR
; ERR: cannot open {{.*}}3.o.imports: {{P|p}}ermission denied
; Ensure lld doesn't generate import files when thinlto-index-only is not enabled
; RUN: rm -f %t1.o.imports
; RUN: rm -f %t2.o.imports
; RUN: rm -f %t3.o.imports
-; RUN: ld.lld -m elf_x86_64 --plugin-opt=thinlto-emit-imports-files -shared %t1.o %t2.o %t3.o -o %t4
+; RUN: ld.lld --plugin-opt=thinlto-emit-imports-files -shared %t1.o %t2.o %t3.o -o %t4
; RUN: not ls %t1.o.imports
; RUN: not ls %t2.o.imports
; RUN: not ls %t3.o.imports
Modified: lld/trunk/test/ELF/lto/thinlto-index-file.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/thinlto-index-file.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/thinlto-index-file.ll (original)
+++ lld/trunk/test/ELF/lto/thinlto-index-file.ll Wed May 30 10:57:08 2018
@@ -6,7 +6,7 @@
; RUN: opt -module-summary %p/Inputs/thinlto_empty.ll -o %t3.o
; Ensure lld writes linked files to linked objects file
-; RUN: ld.lld -m elf_x86_64 --plugin-opt=thinlto-index-only=%t.idx -shared %t1.o %t2.o %t3.o -o %t4
+; RUN: ld.lld --plugin-opt=thinlto-index-only=%t.idx -shared %t1.o %t2.o %t3.o -o %t4
; RUN: FileCheck %s < %t.idx
; CHECK: {{.*}}thinlto-index-file.ll.tmp1.o
; CHECK: {{.*}}thinlto-index-file.ll.tmp2.o
Modified: lld/trunk/test/ELF/lto/thinlto-index-only.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/thinlto-index-only.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/thinlto-index-only.ll (original)
+++ lld/trunk/test/ELF/lto/thinlto-index-only.ll Wed May 30 10:57:08 2018
@@ -5,10 +5,10 @@
; RUN: llvm-as %s -o %t1.o
; RUN: llvm-as %p/Inputs/thinlto.ll -o %t2.o
; RUN: rm -f %t3
-; RUN: ld.lld -m elf_x86_64 --plugin-opt=thinlto-index-only -shared %t1.o %t2.o -o %t3
+; RUN: ld.lld --plugin-opt=thinlto-index-only -shared %t1.o %t2.o -o %t3
; RUN: ls %t2.o.thinlto.bc
; RUN: not test -e %t3
-; RUN: ld.lld -m elf_x86_64 -shared %t1.o %t2.o -o %t3
+; RUN: ld.lld -shared %t1.o %t2.o -o %t3
; RUN: llvm-nm %t3 | FileCheck %s --check-prefix=NM
; Basic ThinLTO tests.
@@ -18,14 +18,14 @@
; Ensure lld generates an index and not a binary if requested.
; RUN: rm -f %t4
-; RUN: ld.lld -m elf_x86_64 --plugin-opt=thinlto-index-only -shared %t1.o %t2.o -o %t4
+; RUN: ld.lld --plugin-opt=thinlto-index-only -shared %t1.o %t2.o -o %t4
; RUN: llvm-bcanalyzer -dump %t1.o.thinlto.bc | FileCheck %s --check-prefix=BACKEND1
; RUN: llvm-bcanalyzer -dump %t2.o.thinlto.bc | FileCheck %s --check-prefix=BACKEND2
; RUN: not test -e %t4
; Ensure lld generates an index even if the file is wrapped in --start-lib/--end-lib
; RUN: rm -f %t2.o.thinlto.bc %t4
-; RUN: ld.lld -m elf_x86_64 --plugin-opt=thinlto-index-only -shared %t1.o %t3.o --start-lib %t2.o --end-lib -o %t4
+; RUN: ld.lld --plugin-opt=thinlto-index-only -shared %t1.o %t3.o --start-lib %t2.o --end-lib -o %t4
; RUN: ls %t2.o.thinlto.bc
; RUN: not test -e %t4
Modified: lld/trunk/test/ELF/lto/thinlto-no-index.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/thinlto-no-index.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/thinlto-no-index.ll (original)
+++ lld/trunk/test/ELF/lto/thinlto-no-index.ll Wed May 30 10:57:08 2018
@@ -7,7 +7,7 @@
; Ensure lld doesn't generates index files when thinlto-index-only is not enabled
; RUN: rm -f %t1.o.thinlto.bc %t2.o.thinlto.bc %t3.o.thinlto.bc
-; RUN: ld.lld -m elf_x86_64 -shared %t1.o %t2.o %t3.o -o %t4
+; RUN: ld.lld -shared %t1.o %t2.o %t3.o -o %t4
; RUN: not ls %t1.o.thinlto.bc
; RUN: not ls %t2.o.thinlto.bc
; RUN: not ls %t3.o.thinlto.bc
Modified: lld/trunk/test/ELF/lto/thinlto-object-suffix-replace.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/thinlto-object-suffix-replace.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/thinlto-object-suffix-replace.ll (original)
+++ lld/trunk/test/ELF/lto/thinlto-object-suffix-replace.ll Wed May 30 10:57:08 2018
@@ -9,7 +9,7 @@
; First perform the thin link on the normal bitcode file, and save the
; resulting index.
-; RUN: ld.lld -m elf_x86_64 --plugin-opt=thinlto-index-only -shared %t1.o -o %t3
+; RUN: ld.lld --plugin-opt=thinlto-index-only -shared %t1.o -o %t3
; RUN: cp %t1.o.thinlto.bc %t1.o.thinlto.bc.orig
; Next perform the thin link on the minimized bitcode file, and compare dump
@@ -17,21 +17,21 @@
; RUN: rm -f %t1.o.thinlto.bc
; Make sure it isn't inadvertently using the regular bitcode file.
; RUN: rm -f %t1.o
-; RUN: ld.lld -m elf_x86_64 --plugin-opt=thinlto-index-only \
+; RUN: ld.lld --plugin-opt=thinlto-index-only \
; RUN: --plugin-opt=thinlto-object-suffix-replace=".thinlink.bc;.o" \
; RUN: -shared %t1.thinlink.bc -o %t3
; RUN: diff %t1.o.thinlto.bc.orig %t1.o.thinlto.bc
; Ensure lld generates error if object suffix replace option does not have 'old;new' format
; RUN: rm -f %t1.o.thinlto.bc
-; RUN: not ld.lld -m elf_x86_64 --plugin-opt=thinlto-index-only \
+; RUN: not ld.lld --plugin-opt=thinlto-index-only \
; RUN: --plugin-opt=thinlto-object-suffix-replace="abc:def" -shared %t1.thinlink.bc \
; RUN: -o %t3 2>&1 | FileCheck %s --check-prefix=ERR1
; ERR1: --plugin-opt=thinlto-object-suffix-replace= expects 'old;new' format, but got abc:def
; Ensure lld generates error if old suffix doesn't exist in file name
; RUN: rm -f %t1.o
-; RUN: not ld.lld -m elf_x86_64 --plugin-opt=thinlto-index-only \
+; RUN: not ld.lld --plugin-opt=thinlto-index-only \
; RUN: --plugin-opt=thinlto-object-suffix-replace=".abc;.o" -shared %t1.thinlink.bc \
; RUN: -o %t3 2>&1 | FileCheck %s --check-prefix=ERR2
; ERR2: error: -thinlto-object-suffix-replace=.abc;.o was given, but {{.*}} does not end with the suffix
Modified: lld/trunk/test/ELF/lto/tls-mixed.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/tls-mixed.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/tls-mixed.ll (original)
+++ lld/trunk/test/ELF/lto/tls-mixed.ll Wed May 30 10:57:08 2018
@@ -1,7 +1,7 @@
; REQUIRES: x86
; RUN: llvm-as %s -o %t1.o
; RUN: llvm-mc %p/Inputs/tls-mixed.s -o %t2.o -filetype=obj -triple=x86_64-pc-linux
-; RUN: ld.lld -m elf_x86_64 %t1.o %t2.o -o %t.so -shared
+; RUN: ld.lld %t1.o %t2.o -o %t.so -shared
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
Modified: lld/trunk/test/ELF/lto/tls-preserve.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/tls-preserve.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/tls-preserve.ll (original)
+++ lld/trunk/test/ELF/lto/tls-preserve.ll Wed May 30 10:57:08 2018
@@ -1,7 +1,7 @@
; TLS attribute needs to be preserved.
; REQUIRES: x86
; RUN: llvm-as %s -o %t1.o
-; RUN: ld.lld -shared %t1.o -m elf_x86_64 -o %t1
+; RUN: ld.lld -shared %t1.o -o %t1
; RUN: llvm-readobj -t %t1 | FileCheck %s
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
Modified: lld/trunk/test/ELF/lto/type-merge.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/type-merge.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/type-merge.ll (original)
+++ lld/trunk/test/ELF/lto/type-merge.ll Wed May 30 10:57:08 2018
@@ -1,7 +1,7 @@
; REQUIRES: x86
; RUN: llvm-as %s -o %t.o
; RUN: llvm-as %p/Inputs/type-merge.ll -o %t2.o
-; RUN: ld.lld -m elf_x86_64 %t.o %t2.o -o %t -shared -save-temps
+; RUN: ld.lld %t.o %t2.o -o %t -shared -save-temps
; RUN: llvm-dis < %t.0.0.preopt.bc | FileCheck %s
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
Modified: lld/trunk/test/ELF/lto/type-merge2.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/type-merge2.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/type-merge2.ll (original)
+++ lld/trunk/test/ELF/lto/type-merge2.ll Wed May 30 10:57:08 2018
@@ -1,7 +1,7 @@
; REQUIRES: x86
; RUN: llvm-as %s -o %t.o
; RUN: llvm-as %p/Inputs/type-merge2.ll -o %t2.o
-; RUN: ld.lld -m elf_x86_64 %t.o %t2.o -o %t.so -shared -save-temps
+; RUN: ld.lld %t.o %t2.o -o %t.so -shared -save-temps
; RUN: llvm-dis %t.so.0.0.preopt.bc -o - | FileCheck %s
target triple = "x86_64-unknown-linux-gnu"
Modified: lld/trunk/test/ELF/lto/undef-weak.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/undef-weak.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/undef-weak.ll (original)
+++ lld/trunk/test/ELF/lto/undef-weak.ll Wed May 30 10:57:08 2018
@@ -1,13 +1,12 @@
; REQUIRES: x86
-
; RUN: llvm-as %S/Inputs/archive.ll -o %t1.o
; RUN: rm -f %t.a
; RUN: llvm-ar rcs %t.a %t1.o
-
; RUN: llvm-as %s -o %t2.o
-; RUN: ld.lld -m elf_x86_64 %t2.o -o %t2.so %t.a -shared
+; RUN: ld.lld %t2.o -o %t2.so %t.a -shared
; RUN: llvm-readobj -t %t2.so | FileCheck %s
+
target triple = "x86_64-unknown-linux-gnu"
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
Modified: lld/trunk/test/ELF/lto/undef.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/undef.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/undef.ll (original)
+++ lld/trunk/test/ELF/lto/undef.ll Wed May 30 10:57:08 2018
@@ -1,6 +1,6 @@
; REQUIRES: x86
; RUN: llvm-as %s -o %t.o
-; RUN: ld.lld -m elf_x86_64 %t.o -o %t.so -shared
+; RUN: ld.lld %t.o -o %t.so -shared
; RUN: llvm-readobj -t %t.so | FileCheck %s
target triple = "x86_64-unknown-linux-gnu"
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
Modified: lld/trunk/test/ELF/lto/undefined-puts.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/undefined-puts.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/undefined-puts.ll (original)
+++ lld/trunk/test/ELF/lto/undefined-puts.ll Wed May 30 10:57:08 2018
@@ -2,7 +2,7 @@
; RUN: llvm-mc %p/Inputs/shared.s -o %t1.o -filetype=obj -triple=x86_64-unknown-linux
; RUN: ld.lld %t1.o -o %t1.so -shared
; RUN: llvm-as %s -o %t2.o
-; RUN: ld.lld %t1.so %t2.o -m elf_x86_64 -o %t
+; RUN: ld.lld %t1.so %t2.o -o %t
; RUN: llvm-readobj -dyn-symbols -dyn-relocations %t | FileCheck %s
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
Modified: lld/trunk/test/ELF/lto/unnamed-addr-comdat.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/unnamed-addr-comdat.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/unnamed-addr-comdat.ll (original)
+++ lld/trunk/test/ELF/lto/unnamed-addr-comdat.ll Wed May 30 10:57:08 2018
@@ -1,6 +1,6 @@
; REQUIRES: x86
; RUN: llvm-as %s -o %t.o
-; RUN: ld.lld -m elf_x86_64 %t.o %t.o -o %t.so -save-temps -shared
+; RUN: ld.lld %t.o %t.o -o %t.so -save-temps -shared
; RUN: llvm-dis %t.so.0.2.internalize.bc -o - | FileCheck %s
target triple = "x86_64-unknown-linux-gnu"
Modified: lld/trunk/test/ELF/lto/unnamed-addr-drop.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/unnamed-addr-drop.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/unnamed-addr-drop.ll (original)
+++ lld/trunk/test/ELF/lto/unnamed-addr-drop.ll Wed May 30 10:57:08 2018
@@ -1,7 +1,7 @@
; REQUIRES: x86
; RUN: llvm-as %s -o %t1.o
; RUN: llvm-as %S/Inputs/unnamed-addr-drop.ll -o %t2.o
-; RUN: ld.lld -m elf_x86_64 %t1.o %t2.o -o %t.so -save-temps -shared
+; RUN: ld.lld %t1.o %t2.o -o %t.so -save-temps -shared
; RUN: llvm-dis %t.so.0.2.internalize.bc -o - | FileCheck %s
target triple = "x86_64-unknown-linux-gnu"
Modified: lld/trunk/test/ELF/lto/unnamed-addr-lib.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/unnamed-addr-lib.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/unnamed-addr-lib.ll (original)
+++ lld/trunk/test/ELF/lto/unnamed-addr-lib.ll Wed May 30 10:57:08 2018
@@ -2,7 +2,7 @@
; RUN: llvm-as %s -o %t.o
; RUN: llvm-mc %p/Inputs/unnamed-addr-lib.s -o %t2.o -filetype=obj -triple=x86_64-pc-linux
; RUN: ld.lld %t2.o -shared -o %t2.so
-; RUN: ld.lld -m elf_x86_64 %t.o %t2.so -o %t.so -save-temps -shared
+; RUN: ld.lld %t.o %t2.so -o %t.so -save-temps -shared
; RUN: llvm-dis %t.so.0.2.internalize.bc -o - | FileCheck %s
; This documents a small limitation of lld's internalization logic. We decide
Modified: lld/trunk/test/ELF/lto/unnamed-addr.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/unnamed-addr.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/unnamed-addr.ll (original)
+++ lld/trunk/test/ELF/lto/unnamed-addr.ll Wed May 30 10:57:08 2018
@@ -1,6 +1,6 @@
; REQUIRES: x86
; RUN: llvm-as %s -o %t.o
-; RUN: ld.lld -m elf_x86_64 %t.o -o %t.so -save-temps -shared
+; RUN: ld.lld %t.o -o %t.so -save-temps -shared
; RUN: llvm-dis %t.so.0.4.opt.bc -o - | FileCheck %s
target triple = "x86_64-unknown-linux-gnu"
Modified: lld/trunk/test/ELF/lto/verify-invalid.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/verify-invalid.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/verify-invalid.ll (original)
+++ lld/trunk/test/ELF/lto/verify-invalid.ll Wed May 30 10:57:08 2018
@@ -1,10 +1,10 @@
; REQUIRES: x86
; RUN: llvm-as %s -o %t.o
-; RUN: ld.lld -m elf_x86_64 %t.o -o %t2 -mllvm -debug-pass=Arguments \
+; RUN: ld.lld %t.o -o %t2 -mllvm -debug-pass=Arguments \
; RUN: 2>&1 | FileCheck -check-prefix=DEFAULT %s
-; RUN: ld.lld -m elf_x86_64 %t.o -o %t2 -mllvm -debug-pass=Arguments \
+; RUN: ld.lld %t.o -o %t2 -mllvm -debug-pass=Arguments \
; RUN: -disable-verify 2>&1 | FileCheck -check-prefix=DISABLE %s
-; RUN: ld.lld -m elf_x86_64 %t.o -o %t2 -mllvm -debug-pass=Arguments \
+; RUN: ld.lld %t.o -o %t2 -mllvm -debug-pass=Arguments \
; RUN: --plugin-opt=disable-verify 2>&1 | FileCheck -check-prefix=DISABLE %s
target triple = "x86_64-unknown-linux-gnu"
Modified: lld/trunk/test/ELF/lto/version-script.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/version-script.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/version-script.ll (original)
+++ lld/trunk/test/ELF/lto/version-script.ll Wed May 30 10:57:08 2018
@@ -1,7 +1,7 @@
; REQUIRES: x86
; RUN: llvm-as %s -o %t.o
; RUN: echo "VERSION_1.0{ global: foo; local: *; }; VERSION_2.0{ global: bar; local: *; };" > %t.script
-; RUN: ld.lld -m elf_x86_64 %t.o -o %t2 -shared --version-script %t.script -save-temps
+; RUN: ld.lld %t.o -o %t2 -shared --version-script %t.script -save-temps
; RUN: llvm-dis < %t2.0.0.preopt.bc | FileCheck %s
; RUN: llvm-readobj -V -dyn-symbols %t2 | FileCheck --check-prefix=DSO %s
Modified: lld/trunk/test/ELF/lto/weak.ll
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/lto/weak.ll?rev=333567&r1=333566&r2=333567&view=diff
==============================================================================
--- lld/trunk/test/ELF/lto/weak.ll (original)
+++ lld/trunk/test/ELF/lto/weak.ll Wed May 30 10:57:08 2018
@@ -1,6 +1,6 @@
; REQUIRES: x86
; RUN: llvm-as %s -o %t.o
-; RUN: ld.lld -m elf_x86_64 %t.o %t.o -o %t.so -shared
+; RUN: ld.lld %t.o %t.o -o %t.so -shared
; RUN: llvm-readobj -t %t.so | FileCheck %s
target triple = "x86_64-unknown-linux-gnu"
More information about the llvm-commits
mailing list