Skip to content

Commit

Permalink
[lld] Add REQUIRES: x86 where needed to tests
Browse files Browse the repository at this point in the history
If building lld without x86 support, tests that require that support should
be treated as unsupported, not errors.

Tested using:
  1. cmake '-DLLVM_TARGETS_TO_BUILD=AArch64;X86'
     make check-lld
     =>
     Expected Passes    : 1406
     Unsupported Tests  : 287

  2. cmake '-DLLVM_TARGETS_TO_BUILD=AArch64'
     make check-lld
     =>
     Expected Passes    : 410
     Unsupported Tests  : 1283

Patch by Joel Jones

Differential Revision: https://reviews.llvm.org/D47748

llvm-svn: 334095
  • Loading branch information
joelkevinjones committed Jun 6, 2018
1 parent 9b1182a commit a5752e1
Show file tree
Hide file tree
Showing 118 changed files with 5,914 additions and 3 deletions.
5,797 changes: 5,797 additions & 0 deletions lld/lld-2018June4

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lld/test/COFF/associative-comdat.s
@@ -1,3 +1,4 @@
# REQUIRES: x86
# RUN: llvm-mc -triple=x86_64-windows-msvc %s -filetype=obj -o %t1.obj
# RUN: llvm-mc -triple=x86_64-windows-msvc %S/Inputs/associative-comdat-2.s -filetype=obj -o %t2.obj

Expand Down
1 change: 1 addition & 0 deletions lld/test/COFF/dll.test
@@ -1,3 +1,4 @@
# REQUIRES: x86
# RUN: yaml2obj < %p/Inputs/export.yaml > %t.obj
# RUN: lld-link /out:%t.dll /dll %t.obj /export:exportfn1 /export:exportfn2 \
# RUN: /export:mangled
Expand Down
2 changes: 1 addition & 1 deletion lld/test/COFF/dllexport-mingw.s
@@ -1,4 +1,4 @@
# REQEUIRES: x86
# REQUIRES: x86

# RUN: llvm-mc -triple=i686-windows-gnu %s -filetype=obj -o %t.obj

Expand Down
1 change: 1 addition & 0 deletions lld/test/COFF/duplicate.test
@@ -1,3 +1,4 @@
# REQUIRES: x86
RUN: llc -mtriple x86_64-windows-msvc -filetype obj -o alpha.obj %S/Inputs/alpha.ll
RUN: llc -mtriple x86_64-windows-msvc -filetype obj -o beta.obj %S/Inputs/beta.ll
RUN: lld-link /out:alpha.dll /dll alpha.obj /implib:alpha.lib
Expand Down
2 changes: 1 addition & 1 deletion lld/test/COFF/export-all.s
@@ -1,4 +1,4 @@
# REQEUIRES: x86
# REQUIRES: x86

# RUN: llvm-mc -triple=i686-windows-gnu %s -filetype=obj -o %t.obj

Expand Down
1 change: 1 addition & 0 deletions lld/test/COFF/gfids-corrupt.s
@@ -1,3 +1,4 @@
# REQUIRES: x86
# RUN: llvm-mc -triple x86_64-windows-msvc %s -filetype=obj -o %t.obj
# RUN: lld-link %t.obj -opt:noref -guard:nolongjmp -out:%t.exe -entry:main 2>&1 | FileCheck %s --check-prefix=ERRS
# RUN: llvm-readobj -file-headers -coff-load-config %t.exe | FileCheck %s
Expand Down
1 change: 1 addition & 0 deletions lld/test/COFF/gfids-fallback.s
@@ -1,3 +1,4 @@
# REQUIRES: x86
# RUN: grep -B99999 [S]PLITMARKER %s | llvm-mc -triple x86_64-windows-msvc -filetype=obj -o %t1.obj
# RUN: grep -A99999 [S]PLITMARKER %s | llvm-mc -triple x86_64-windows-msvc -filetype=obj -o %t2.obj
# RUN: lld-link %t1.obj %t2.obj -guard:nolongjmp -out:%t.exe -entry:main -opt:noref
Expand Down
1 change: 1 addition & 0 deletions lld/test/COFF/gfids-gc.s
@@ -1,3 +1,4 @@
# REQUIRES: x86
# RUN: llvm-mc -triple x86_64-windows-msvc %s -filetype=obj -o %t.obj
# RUN: lld-link %t.obj -guard:nolongjmp -out:%t.exe -opt:noref -entry:main
# RUN: llvm-readobj -file-headers -coff-load-config %t.exe | FileCheck %s --check-prefix=CHECK-NOGC
Expand Down
1 change: 1 addition & 0 deletions lld/test/COFF/gfids-icf.s
@@ -1,3 +1,4 @@
# REQUIRES: x86
# RUN: llvm-mc -triple x86_64-windows-msvc %s -filetype=obj -o %t.obj
# RUN: lld-link %t.obj -guard:nolongjmp -out:%t.exe -opt:icf -entry:main
# RUN: llvm-readobj -file-headers -coff-load-config %t.exe | FileCheck %s --check-prefix=CHECK
Expand Down
1 change: 1 addition & 0 deletions lld/test/COFF/guard-longjmp.s
@@ -1,3 +1,4 @@
# REQUIRES: x86
# RUN: llvm-mc -triple x86_64-windows-msvc %s -filetype=obj -o %t.obj
# RUN: lld-link %t.obj -guard:cf -out:%t.exe -entry:main
# RUN: llvm-readobj -file-headers -coff-load-config %t.exe | FileCheck %s
Expand Down
1 change: 1 addition & 0 deletions lld/test/COFF/guardcf-lto.ll
@@ -1,3 +1,4 @@
; REQUIRES: x86
; Set up an import library for a DLL that will do the indirect call.
; RUN: echo -e 'LIBRARY library\nEXPORTS\n do_indirect_call\n' > %t.def
; RUN: lld-link -lib -def:%t.def -out:%t.lib -machine:x64
Expand Down
1 change: 1 addition & 0 deletions lld/test/COFF/icf-executable.s
@@ -1,3 +1,4 @@
# REQUIRES: x86
# RUN: llvm-mc -triple=x86_64-windows-msvc %s -filetype=obj -o %t.obj
# RUN: lld-link -entry:main %t.obj -out:%t.exe -verbose 2>&1 | FileCheck %s

Expand Down
1 change: 1 addition & 0 deletions lld/test/COFF/icf-pdata.s
@@ -1,3 +1,4 @@
# REQUIRES: x86
# RUN: llvm-mc %s -triple x86_64-windows-msvc -filetype=obj -o %t.obj
# RUN: lld-link %t.obj -dll -noentry -out:%t.dll -merge:.xdata=.xdata
# RUN: llvm-readobj -sections -coff-exports %t.dll | FileCheck %s
Expand Down
1 change: 1 addition & 0 deletions lld/test/COFF/icf-xdata.s
@@ -1,3 +1,4 @@
# REQUIRES: x86
# RUN: llvm-mc %s -triple x86_64-windows-msvc -filetype=obj -o %t.obj
# RUN: lld-link %t.obj -dll -noentry -out:%t.dll -merge:.xdata=.xdata 2>&1 \
# RUN: | FileCheck %s --check-prefix=WARN
Expand Down
1 change: 1 addition & 0 deletions lld/test/COFF/implib-name.test
@@ -1,3 +1,4 @@
# REQUIRES: x86
# RUN: mkdir -p %T
# RUN: llvm-mc -triple x86_64-unknown-windows-msvc -filetype obj -o %T/object.obj %S/Inputs/object.s

Expand Down
1 change: 1 addition & 0 deletions lld/test/COFF/loadcfg.ll
@@ -1,3 +1,4 @@
; REQUIRES: x86
; RUN: llvm-as -o %t.obj %s
; RUN: lld-link /out:%t.exe %t.obj /entry:main /subsystem:console
; RUN: llvm-readobj -file-headers %t.exe | FileCheck %s
Expand Down
1 change: 1 addition & 0 deletions lld/test/COFF/lto-chkstk.ll
@@ -1,3 +1,4 @@
; REQUIRES: x86
; RUN: llvm-as -o %t.obj %s
; RUN: llvm-mc -triple=x86_64-pc-windows-msvc -filetype=obj -o %T/lto-chkstk-foo.obj %S/Inputs/lto-chkstk-foo.s
; RUN: llvm-mc -triple=x86_64-pc-windows-msvc -filetype=obj -o %T/lto-chkstk-chkstk.obj %S/Inputs/lto-chkstk-chkstk.s
Expand Down
1 change: 1 addition & 0 deletions lld/test/COFF/lto-comdat.ll
@@ -1,3 +1,4 @@
; REQUIRES: x86
; RUN: llvm-as -o %T/comdat-main.lto.obj %s
; RUN: llvm-as -o %T/comdat1.lto.obj %S/Inputs/lto-comdat1.ll
; RUN: llvm-as -o %T/comdat2.lto.obj %S/Inputs/lto-comdat2.ll
Expand Down
1 change: 1 addition & 0 deletions lld/test/COFF/lto-icf.ll
@@ -1,3 +1,4 @@
; REQUIRES: x86
; Test that ICF works after LTO, i.e. both functions have the same address.
; Previously, when we didn't enable function sections, ICF didn't work.

Expand Down
1 change: 1 addition & 0 deletions lld/test/COFF/lto-lazy-reference.ll
@@ -1,3 +1,4 @@
; REQUIRES: x86
; RUN: llc -mtriple=i686-pc-windows-msvc -filetype=obj -o %T/lto-lazy-reference-quadruple.obj %S/Inputs/lto-lazy-reference-quadruple.ll
; RUN: llvm-as -o %T/lto-lazy-reference-dummy.bc %S/Inputs/lto-lazy-reference-dummy.ll
; RUN: rm -f %t.lib
Expand Down
1 change: 1 addition & 0 deletions lld/test/COFF/lto-linker-opts.ll
@@ -1,3 +1,4 @@
; REQUIRES: x86
; RUN: llvm-as -o %T/lto-linker-opts.obj %s
; RUN: env LIB=%S/Inputs lld-link /out:%T/lto-linker-opts.exe /entry:main /subsystem:console %T/lto-linker-opts.obj

Expand Down
1 change: 1 addition & 0 deletions lld/test/COFF/lto-new-symbol.ll
@@ -1,3 +1,4 @@
; REQUIRES: x86
; RUN: llvm-as -o %t.obj %s
; RUN: lld-link /out:%t.exe /entry:foo /subsystem:console %t.obj

Expand Down
1 change: 1 addition & 0 deletions lld/test/COFF/lto-opt-level.ll
@@ -1,3 +1,4 @@
; REQUIRES: x86
; RUN: llvm-as -o %t.obj %s
; RUN: lld-link /out:%t0.exe /entry:main /subsystem:console /opt:lldlto=0 /lldmap:%t0.map %t.obj
; RUN: FileCheck --check-prefix=CHECK-O0 %s < %t0.map
Expand Down
1 change: 1 addition & 0 deletions lld/test/COFF/lto-parallel.ll
@@ -1,3 +1,4 @@
; REQUIRES: x86
; RUN: llvm-as -o %t.obj %s
; RUN: lld-link -opt:noicf /out:%t.exe /entry:foo /include:bar /opt:lldltopartitions=2 /subsystem:console /lldmap:%t.map %t.obj
; RUN: FileCheck %s < %t.map
Expand Down
1 change: 1 addition & 0 deletions lld/test/COFF/lto-reloc-model.ll
@@ -1,3 +1,4 @@
; REQUIRES: x86
; RUN: llvm-as -o %t %s
; RUN: lld-link /entry:main /subsystem:console /out:%t.exe %t
; RUN: llvm-objdump -d %t.exe | FileCheck %s
Expand Down
1 change: 1 addition & 0 deletions lld/test/COFF/lto.ll
@@ -1,3 +1,4 @@
; REQUIRES: x86
; RUN: llvm-as -o %T/main.lto.obj %s
; RUN: llvm-as -o %T/foo.lto.obj %S/Inputs/lto-dep.ll
; RUN: rm -f %T/foo.lto.lib
Expand Down
1 change: 1 addition & 0 deletions lld/test/COFF/pdb-global-gc.yaml
@@ -1,3 +1,4 @@
# REQUIRES: x86
# RUN: yaml2obj %s -o %t.obj
# RUN: llvm-mc %S/Inputs/pdb-global-gc.s -triple x86_64-windows-msvc -filetype=obj -o %t2.obj
# RUN: lld-link %t.obj %t2.obj -debug -entry:main \
Expand Down
1 change: 1 addition & 0 deletions lld/test/COFF/reloc-discarded-dwarf.s
@@ -1,3 +1,4 @@
# REQUIRES: x86
# RUN: llvm-mc -triple=x86_64-windows-msvc -filetype=obj -o %t1.obj %s
# RUN: llvm-mc -triple=x86_64-windows-msvc -filetype=obj -o %t2.obj %s

Expand Down
1 change: 1 addition & 0 deletions lld/test/COFF/reloc-discarded-early.s
@@ -1,3 +1,4 @@
# REQUIRES: x86
# RUN: llvm-mc -triple=x86_64-windows-msvc -filetype=obj -o %t.obj %s
# RUN: lld-link -entry:__ImageBase -subsystem:console -debug %t.obj

Expand Down
1 change: 1 addition & 0 deletions lld/test/COFF/reloc-discarded-early2.s
@@ -1,3 +1,4 @@
# REQUIRES: x86
# RUN: llvm-mc -triple=x86_64-windows-msvc -filetype=obj -o %t.obj %s
# RUN: not lld-link -entry:__ImageBase -subsystem:console %t.obj 2>&1 | FileCheck %s

Expand Down
1 change: 1 addition & 0 deletions lld/test/COFF/reloc-discarded.s
@@ -1,3 +1,4 @@
# REQUIRES: x86
# RUN: echo -e '.section .bss,"bw",discard,main_global\n.global main_global\n main_global:\n .long 0' | \
# RUN: llvm-mc - -filetype=obj -o %t1.obj -triple x86_64-windows-msvc
# RUN: llvm-mc %s -filetype=obj -o %t2.obj -triple x86_64-windows-msvc
Expand Down
1 change: 1 addition & 0 deletions lld/test/COFF/reloc-x64.test
@@ -1,3 +1,4 @@
# REQUIRES: x86
# RUN: yaml2obj < %s > %t.obj
# RUN: lld-link /out:%t.exe /entry:main %t.obj
# RUN: llvm-objdump -d %t.exe | FileCheck %s
Expand Down
1 change: 1 addition & 0 deletions lld/test/COFF/reloc-x86.test
@@ -1,3 +1,4 @@
# REQUIRES: x86
# RUN: yaml2obj < %s > %t.obj
# RUN: lld-link /out:%t.exe /entry:main /base:0x400000 %t.obj
# RUN: llvm-objdump -d %t.exe | FileCheck %s
Expand Down
1 change: 1 addition & 0 deletions lld/test/COFF/safeseh-md.s
@@ -1,3 +1,4 @@
# REQUIRES: x86
# RUN: llvm-mc -triple i686-windows-msvc %s -filetype=obj -o %t.obj
# RUN: lld-link %t.obj %S/Inputs/except_handler3.lib -safeseh -out:%t.exe -opt:noref -entry:main
# RUN: llvm-readobj -coff-load-config %t.exe | FileCheck %s
Expand Down
1 change: 1 addition & 0 deletions lld/test/COFF/safeseh-notable.s
@@ -1,3 +1,4 @@
# REQUIRES: x86
# RUN: llvm-mc -triple i686-windows-msvc %s -filetype=obj -o %t.obj
# RUN: lld-link %t.obj -safeseh -out:%t.exe -entry:main
# RUN: llvm-readobj -file-headers %t.exe | FileCheck %s
Expand Down
1 change: 1 addition & 0 deletions lld/test/COFF/safeseh.s
@@ -1,3 +1,4 @@
# REQUIRES: x86
# RUN: llvm-mc -triple i686-windows-msvc %s -filetype=obj -o %t.obj
# RUN: lld-link %t.obj -safeseh -out:%t.exe -opt:noref -entry:main
# RUN: llvm-readobj -coff-basereloc -coff-load-config -file-headers %t.exe | FileCheck %s --check-prefix=CHECK-NOGC
Expand Down
1 change: 1 addition & 0 deletions lld/test/COFF/secidx-absolute.s
@@ -1,3 +1,4 @@
# REQUIRES: x86
# RUN: llvm-mc %s -filetype=obj -triple=x86_64-windows-msvc -o %t.obj
# RUN: lld-link -entry:main -nodefaultlib %t.obj -out:%t.exe
# RUN: llvm-readobj %t.exe -sections -section-data | FileCheck %s
Expand Down
1 change: 1 addition & 0 deletions lld/test/COFF/secrel-absolute.s
@@ -1,3 +1,4 @@
# REQUIRES: x86
# RUN: llvm-mc %s -filetype=obj -triple=x86_64-windows-msvc -o %t.obj
# RUN: not lld-link -entry:main -nodefaultlib %t.obj -out:%t.exe 2>&1 | FileCheck %s

Expand Down
1 change: 1 addition & 0 deletions lld/test/COFF/secrel-common.s
@@ -1,3 +1,4 @@
# REQUIRES: x86
# RUN: llvm-mc %s -filetype=obj -triple=x86_64-windows-msvc -o %t.obj
# RUN: lld-link -entry:main -nodefaultlib %t.obj -out:%t.exe
# RUN: llvm-readobj %t.exe -sections -section-data | FileCheck %s
Expand Down
1 change: 1 addition & 0 deletions lld/test/COFF/undefined-symbol-cv.s
@@ -1,3 +1,4 @@
# REQUIRES: x86
# RUN: llvm-mc -triple=x86_64-windows-msvc -filetype=obj -o %t.obj %s
# RUN: not lld-link /out:%t.exe %t.obj 2>&1 | FileCheck %s

Expand Down
1 change: 1 addition & 0 deletions lld/test/COFF/undefined-symbol.s
@@ -1,3 +1,4 @@
# REQUIRES: x86
# RUN: llvm-mc -triple=x86_64-windows-msvc -filetype=obj -o %t.obj %s
# RUN: not lld-link /out:%t.exe %t.obj 2>&1 | FileCheck %s

Expand Down
1 change: 1 addition & 0 deletions lld/test/COFF/weak-external.test
@@ -1,3 +1,4 @@
# REQUIRES: x86
# RUN: yaml2obj %s > %t.obj
# RUN: llvm-as -o %t.lto.obj %S/Inputs/weak-external.ll
# RUN: lld-link /out:%t1.exe /entry:g /subsystem:console %t.obj
Expand Down
1 change: 1 addition & 0 deletions lld/test/COFF/weak-external2.test
@@ -1,3 +1,4 @@
# REQUIRES: x86
# RUN: yaml2obj %s > %t.obj
# RUN: llvm-as -o %t.lto.obj %S/Inputs/weak-external2.ll
# RUN: lld-link /out:%t.exe /entry:g /subsystem:console %t.obj %t.lto.obj
Expand Down
1 change: 1 addition & 0 deletions lld/test/COFF/weak-external3.test
@@ -1,3 +1,4 @@
# REQUIRES: x86
# RUN: yaml2obj %s > %t.obj
# RUN: llvm-as -o %t.lto.obj %S/Inputs/weak-external3.ll
# RUN: lld-link /out:%t1.exe /entry:f /subsystem:console /lldmap:%t1.map %t.lto.obj
Expand Down
2 changes: 1 addition & 1 deletion lld/test/COFF/wholearchive.s
@@ -1,4 +1,4 @@
# REQEUIRES: x86
# REQUIRES: x86

# RUN: yaml2obj < %p/Inputs/export.yaml > %t.archive.obj
# RUN: llvm-ar rcs %t.archive.lib %t.archive.obj
Expand Down
1 change: 1 addition & 0 deletions lld/test/ELF/bsymbolic-undef.s
@@ -1,3 +1,4 @@
# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
# RUN: ld.lld -shared -Bsymbolic %t.o -o %t.so
# RUN: llvm-readobj -dyn-symbols %t.so | FileCheck %s
Expand Down
1 change: 1 addition & 0 deletions lld/test/ELF/bsymbolic.s
@@ -1,3 +1,4 @@
// REQUIRES: x86
// RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
// RUN: ld.lld -shared %t.o -o %t0.so
// RUN: ld.lld -shared -Bsymbolic %t.o -o %t1.so
Expand Down
1 change: 1 addition & 0 deletions lld/test/ELF/comdat-linkonce.s
@@ -1,3 +1,4 @@
// REQUIRES: x86
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/comdat.s -o %t2.o
// RUN: ld.lld -shared %t.o %t2.o -o %t
Expand Down
1 change: 1 addition & 0 deletions lld/test/ELF/compatible-section-types.s
@@ -1,3 +1,4 @@
// REQUIRES: x86
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
// RUN: ld.lld -shared %t.o -o %t
// RUN: llvm-objdump -section-headers %t | FileCheck %s
Expand Down
1 change: 1 addition & 0 deletions lld/test/ELF/conflict-debug-variable.s
@@ -1,3 +1,4 @@
// REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
# RUN: llvm-dwarfdump %t.o | FileCheck -check-prefix=INPUT %s
# RUN: not ld.lld %t.o %t.o -o %t 2>&1 | FileCheck %s
Expand Down
1 change: 1 addition & 0 deletions lld/test/ELF/conflict-debug-variable2.s
@@ -1,3 +1,4 @@
# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o

# RUN: llvm-dwarfdump -v %t.o | FileCheck -check-prefix=INPUT %s
Expand Down
1 change: 1 addition & 0 deletions lld/test/ELF/conflict-variable-linkage-name.s
@@ -1,3 +1,4 @@
# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
# RUN: llvm-dwarfdump %t.o | FileCheck -check-prefix=INPUT %s
# RUN: not ld.lld %t.o %t.o -o %t 2>&1 | FileCheck %s
Expand Down
1 change: 1 addition & 0 deletions lld/test/ELF/copy-rel-corrupted.s
@@ -1,3 +1,4 @@
// REQUIRES: x86
// RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux
// RUN: llvm-mc %p/Inputs/copy-rel-corrupted.s -o %t2.o -filetype=obj -triple=x86_64-pc-linux
// RUN: ld.lld %t2.o -o %t2.so -shared
Expand Down
1 change: 1 addition & 0 deletions lld/test/ELF/copy-rel-pie-error.s
@@ -1,3 +1,4 @@
// REQUIRES: x86
// RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux
// RUN: llvm-mc %p/Inputs/copy-rel-pie.s -o %t2.o -filetype=obj -triple=x86_64-pc-linux
// RUN: ld.lld %t2.o -o %t2.so -shared
Expand Down
1 change: 1 addition & 0 deletions lld/test/ELF/copy-rel-pie.s
@@ -1,3 +1,4 @@
// REQUIRES: x86
// RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux
// RUN: llvm-mc %p/Inputs/copy-rel-pie.s -o %t2.o -filetype=obj -triple=x86_64-pc-linux
// RUN: ld.lld %t2.o -o %t2.so -shared
Expand Down
1 change: 1 addition & 0 deletions lld/test/ELF/defined-tls_get_addr.s
@@ -1,3 +1,4 @@
// REQUIRES: x86
// RUN: llvm-mc %s -o %t.o -triple x86_64-pc-linux -filetype=obj
// RUN: ld.lld %t.o -o %t

Expand Down
1 change: 1 addition & 0 deletions lld/test/ELF/dont-export-hidden.s
@@ -1,3 +1,4 @@
// REQUIRES: x86
// RUN: llvm-mc %p/Inputs/shared.s -o %t.o -filetype=obj -triple=x86_64-pc-linux
// RUN: llvm-mc %s -o %t2.o -filetype=obj -triple=x86_64-pc-linux
// RUN: ld.lld %t.o -o %t.so -shared
Expand Down
1 change: 1 addition & 0 deletions lld/test/ELF/duplicated-synthetic-sym.s
@@ -1,3 +1,4 @@
// REQUIRES: x86
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
// RUN: rm -rf %t.dir
// RUN: mkdir %t.dir
Expand Down
1 change: 1 addition & 0 deletions lld/test/ELF/dynamic-reloc-index.s
@@ -1,3 +1,4 @@
// REQUIRES: x86
// RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
// RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/shared.s -o %t2.o
// RUN: ld.lld -shared %t2.o -o %t2.so
Expand Down
1 change: 1 addition & 0 deletions lld/test/ELF/eh-frame-marker.s
@@ -1,3 +1,4 @@
// REQUIRES: x86
// RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux
// RUN: ld.lld --eh-frame-hdr %t.o -o %t.so -shared
// RUN: llvm-readobj -t -s %t.so | FileCheck %s
Expand Down
1 change: 1 addition & 0 deletions lld/test/ELF/eh-frame-multilpe-cie.s
@@ -1,3 +1,4 @@
// REQUIRES: x86
// RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux
// RUN: ld.lld --eh-frame-hdr %t.o -o %t.so -shared
// We would fail to parse multiple cies in the same file.
Expand Down
1 change: 1 addition & 0 deletions lld/test/ELF/empty-archive.s
@@ -1,3 +1,4 @@
// REQUIRES: x86
// RUN: llvm-ar rc %t.a
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
// RUN: ld.lld -shared %t.o %t.a -o %t
1 change: 1 addition & 0 deletions lld/test/ELF/entry.s
@@ -1,3 +1,4 @@
# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1

# RUN: ld.lld -e foobar %t1 -o %t2 2>&1 | FileCheck -check-prefix=WARN1 %s
Expand Down
1 change: 1 addition & 0 deletions lld/test/ELF/filter.s
@@ -1,3 +1,4 @@
# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
# RUN: ld.lld %t.o -shared -F foo.so -F boo.so -o %t1
# RUN: llvm-readobj --dynamic-table %t1 | FileCheck %s
Expand Down
1 change: 1 addition & 0 deletions lld/test/ELF/gc-debuginfo-tls.s
@@ -1,3 +1,4 @@
# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
# RUN: ld.lld %t.o --gc-sections -shared -o %t1
# RUN: ld.lld %t.o -shared -o %t2
Expand Down
1 change: 1 addition & 0 deletions lld/test/ELF/gc-merge-local-sym.s
@@ -1,3 +1,4 @@
// REQUIRES: x86
// RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux
// RUN: ld.lld %t.o -o %t.so -shared -O3 --gc-sections
// RUN: llvm-readobj -s -section-data -t %t.so | FileCheck %s
Expand Down
1 change: 1 addition & 0 deletions lld/test/ELF/gc-sections-merge-addend.s
@@ -1,3 +1,4 @@
// REQUIRES: x86
// RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux
// RUN: ld.lld %t.o -o %t.so -shared --gc-sections
// RUN: llvm-readobj -s -section-data %t.so | FileCheck %s
Expand Down
1 change: 1 addition & 0 deletions lld/test/ELF/gc-sections-merge-implicit-addend.s
@@ -1,3 +1,4 @@
// REQUIRES: x86
// RUN: llvm-mc %s -o %t.o -filetype=obj -triple=i386-pc-linux
// RUN: ld.lld %t.o -o %t.so -shared --gc-sections
// RUN: llvm-readobj -s -section-data %t.so | FileCheck %s
Expand Down
1 change: 1 addition & 0 deletions lld/test/ELF/gc-sections-merge.s
@@ -1,3 +1,4 @@
// REQUIRES: x86
// RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux
// RUN: ld.lld %t.o -o %t.so -shared
// RUN: ld.lld %t.o -o %t.gc.so -shared --gc-sections
Expand Down
1 change: 1 addition & 0 deletions lld/test/ELF/gc-sections-protected.s
@@ -1,3 +1,4 @@
// REQUIRES: x86
// RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux
// RUN: ld.lld %t.o -o %t.so -shared --gc-sections
// RUN: llvm-readobj -s %t.so | FileCheck %s
Expand Down
1 change: 1 addition & 0 deletions lld/test/ELF/global_offset_table.s
@@ -1,3 +1,4 @@
// REQUIRES: x86
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
// RUN: ld.lld %t -o %t2
.global _start
Expand Down
1 change: 1 addition & 0 deletions lld/test/ELF/global_offset_table_shared.s
@@ -1,3 +1,4 @@
// REQUIRES: x86
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
// RUN: ld.lld --hash-style=sysv -shared %t -o %t2
// RUN: llvm-readobj -t %t2 | FileCheck %s
Expand Down
1 change: 1 addition & 0 deletions lld/test/ELF/got-plt-header.s
@@ -1,3 +1,4 @@
// REQUIRES: x86
// RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux
// RUN: ld.lld %t.o -o %t.so -shared
// RUN: llvm-readobj -s -section-data %t.so | FileCheck %s
Expand Down
1 change: 1 addition & 0 deletions lld/test/ELF/gotpcrelx.s
@@ -1,3 +1,4 @@
// REQUIRES: x86
// RUN: llvm-mc -filetype=obj -relax-relocations -triple x86_64-pc-linux-gnu \
// RUN: %s -o %t.o
// RUN: llvm-readobj -r %t.o | FileCheck --check-prefix=RELS %s
Expand Down
1 change: 1 addition & 0 deletions lld/test/ELF/i386-got-value.s
@@ -1,3 +1,4 @@
# REQUIRES: x86
# RUN: llvm-mc %s -o %t.o -filetype=obj -triple=i386-pc-linux
# RUN: ld.lld %t.o -o %t.so -shared
# RUN: llvm-readobj --relocations --sections --section-data %t.so | FileCheck %s
Expand Down
1 change: 1 addition & 0 deletions lld/test/ELF/i386-tls-ie-shared.s
@@ -1,3 +1,4 @@
// REQUIRES: x86
// RUN: llvm-mc -filetype=obj -triple=i686-pc-linux %s -o %t.o
// RUN: llvm-mc -filetype=obj -triple=i686-pc-linux %p/Inputs/tls-opt-iele-i686-nopic.s -o %tso.o
// RUN: ld.lld -shared %tso.o -o %tso
Expand Down
1 change: 1 addition & 0 deletions lld/test/ELF/incompatible-section-flags.s
@@ -1,3 +1,4 @@
// REQUIRES: x86
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
// RUN: not ld.lld -shared %t.o -o %t 2>&1 | FileCheck %s

Expand Down
1 change: 1 addition & 0 deletions lld/test/ELF/incompatible-section-types2.s
@@ -1,3 +1,4 @@
// REQUIRES: x86
// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
// RUN: not ld.lld %t.o -o %t 2>&1 | FileCheck %s

Expand Down
1 change: 1 addition & 0 deletions lld/test/ELF/invalid/invalid-elf.test
@@ -1,3 +1,4 @@
# REQUIRES: x86
# RUN: llvm-mc %s -o %t -filetype=obj -triple x86_64-pc-linux

# RUN: not ld.lld %t %p/Inputs/data-encoding.a -o %t2 2>&1 | \
Expand Down

0 comments on commit a5752e1

Please sign in to comment.