Index: test/COFF/arm-thumb-branch-error.s =================================================================== --- test/COFF/arm-thumb-branch-error.s +++ test/COFF/arm-thumb-branch-error.s @@ -1,7 +1,7 @@ // RUN: llvm-mc -filetype=obj -triple=thumbv7a-windows-gnu %s -o %t // RUN: llvm-mc -filetype=obj -triple=thumbv7a-windows-gnu %S/Inputs/far-arm-thumb-abs.s -o %tfar // RUN: not lld-link -entry:_start -subsystem:console %t %tfar -out:%t2 2>&1 | FileCheck %s -// REQUIRES: arm +// REQUIRES: arm-registered-target .syntax unified .globl _start _start: Index: test/COFF/arm-thumb-branch20-error.s =================================================================== --- test/COFF/arm-thumb-branch20-error.s +++ test/COFF/arm-thumb-branch20-error.s @@ -1,4 +1,4 @@ -// REQUIRES: arm +// REQUIRES: arm-registered-target // RUN: llvm-mc -filetype=obj -triple=thumbv7a-windows-gnu %s -o %t.obj // RUN: llvm-mc -filetype=obj -triple=thumbv7a-windows-gnu %S/Inputs/far-arm-thumb-abs20.s -o %t.far.obj // RUN: not lld-link -entry:_start -subsystem:console %t.obj %t.far.obj -out:%t.exe 2>&1 | FileCheck %s Index: test/COFF/arm64-dynamicbase.s =================================================================== --- test/COFF/arm64-dynamicbase.s +++ test/COFF/arm64-dynamicbase.s @@ -1,4 +1,4 @@ -// REQUIRES: aarch64 +// REQUIRES: aarch64-registered-target // RUN: llvm-mc -filetype=obj -triple=aarch64-windows %s -o %t.obj // RUN: not lld-link -entry:_start -subsystem:console %t.obj -out:%t.exe -dynamicbase:no 2>&1 | FileCheck %s .globl _start Index: test/COFF/arm64-import2.test =================================================================== --- test/COFF/arm64-import2.test +++ test/COFF/arm64-import2.test @@ -1,4 +1,4 @@ -# REQUIRES: aarch64 +# REQUIRES: aarch64-registered-target # RUN: yaml2obj < %s > %t.obj # RUN: llvm-objdump -d %t.obj | FileCheck %s -check-prefix BEFORE Index: test/COFF/arm64-relocs-imports.test =================================================================== --- test/COFF/arm64-relocs-imports.test +++ test/COFF/arm64-relocs-imports.test @@ -1,4 +1,4 @@ -# REQUIRES: aarch64 +# REQUIRES: aarch64-registered-target # RUN: yaml2obj < %s > %t.obj # RUN: llvm-objdump -d %t.obj | FileCheck %s -check-prefix BEFORE Index: test/COFF/armnt-blx23t.test =================================================================== --- test/COFF/armnt-blx23t.test +++ test/COFF/armnt-blx23t.test @@ -1,4 +1,4 @@ -# REQUIRES: arm +# REQUIRES: arm-registered-target # RUN: yaml2obj < %s > %t.obj # RUN: llvm-objdump -d %t.obj | FileCheck %s -check-prefix BEFORE Index: test/COFF/armnt-branch24t.test =================================================================== --- test/COFF/armnt-branch24t.test +++ test/COFF/armnt-branch24t.test @@ -1,4 +1,4 @@ -# REQUIRES: arm +# REQUIRES: arm-registered-target # RUN: yaml2obj < %s > %t.obj # RUN: llvm-objdump -d %t.obj | FileCheck %s -check-prefix BEFORE Index: test/COFF/armnt-mov32t-exec.test =================================================================== --- test/COFF/armnt-mov32t-exec.test +++ test/COFF/armnt-mov32t-exec.test @@ -1,4 +1,4 @@ -# REQUIRES: arm +# REQUIRES: arm-registered-target # RUN: yaml2obj < %s > %t.obj # RUN: llvm-objdump -d %t.obj | FileCheck %s -check-prefix BEFORE Index: test/COFF/armnt-movt32t.test =================================================================== --- test/COFF/armnt-movt32t.test +++ test/COFF/armnt-movt32t.test @@ -1,4 +1,4 @@ -# REQUIRES: arm +# REQUIRES: arm-registered-target # RUN: yaml2obj < %s > %t.obj # RUN: llvm-objdump -d %t.obj | FileCheck %s -check-prefix BEFORE Index: test/COFF/common-alignment.test =================================================================== --- test/COFF/common-alignment.test +++ test/COFF/common-alignment.test @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: yaml2obj %s > %t.obj # RUN: lld-link /out:%t.exe /entry:main %t.obj %t.obj # RUN: llvm-objdump -d %t.exe | FileCheck %s Index: test/COFF/common.test =================================================================== --- test/COFF/common.test +++ test/COFF/common.test @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: yaml2obj %s > %t.obj # RUN: lld-link /out:%t.exe /entry:main %t.obj %t.obj # RUN: llvm-objdump -d %t.exe | FileCheck %s Index: test/COFF/conflict.test =================================================================== --- test/COFF/conflict.test +++ test/COFF/conflict.test @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: yaml2obj < %s > %t1.obj # RUN: yaml2obj < %s > %t2.obj # RUN: not lld-link /out:%t.exe %t1.obj %t2.obj >& %t.log Index: test/COFF/constant.test =================================================================== --- test/COFF/constant.test +++ test/COFF/constant.test @@ -1,4 +1,4 @@ -REQUIRES: x86 +REQUIRES: x86-registered-target RUN: mkdir -p %t RUN: llvm-mc -triple i686-unknown-windows-msvc -filetype obj -o %t/import.o %S/Inputs/constant-import.s RUN: llc -mtriple i686-unknown-windows-msvc -filetype obj -o %t/export.o %S/Inputs/constant-export.ll Index: test/COFF/ctors_dtors_priority.s =================================================================== --- test/COFF/ctors_dtors_priority.s +++ test/COFF/ctors_dtors_priority.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -triple=x86_64-windows-gnu -filetype=obj -o %t.obj %s # RUN: lld-link -entry:main %t.obj -out:%t.exe # RUN: llvm-objdump -s %t.exe | FileCheck %s Index: test/COFF/def-export-stdcall.s =================================================================== --- test/COFF/def-export-stdcall.s +++ test/COFF/def-export-stdcall.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=i686-windows-msvc %s -o %t.obj # RUN: echo -e "LIBRARY foo\nEXPORTS\n stdcall\n fastcall\n vectorcall\n _underscored" > %t.def # RUN: lld-link -entry:dllmain -dll -def:%t.def %t.obj -out:%t.dll -implib:%t.lib Index: test/COFF/delayimports-armnt.yaml =================================================================== --- test/COFF/delayimports-armnt.yaml +++ test/COFF/delayimports-armnt.yaml @@ -1,4 +1,4 @@ -# REQUIRES: arm +# REQUIRES: arm-registered-target # RUN: yaml2obj < %s > %t.obj # RUN: lld-link %t.obj %p/Inputs/library.lib /subsystem:console \ # RUN: /entry:mainCRTStartup /alternatename:__delayLoadHelper2=mainCRTStartup \ Index: test/COFF/delayimports32.test =================================================================== --- test/COFF/delayimports32.test +++ test/COFF/delayimports32.test @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: yaml2obj < %p/Inputs/hello32.yaml > %t.obj # RUN: lld-link %t.obj %p/Inputs/std32.lib /subsystem:console \ # RUN: /entry:main@0 /alternatename:___delayLoadHelper2@8=_main@0 \ Index: test/COFF/dllexport.s =================================================================== --- test/COFF/dllexport.s +++ test/COFF/dllexport.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=i686-windows-msvc %s -o %t.obj # RUN: lld-link -entry:dllmain -dll %t.obj -out:%t.dll -implib:%t.lib Index: test/COFF/entry-mangled.test =================================================================== --- test/COFF/entry-mangled.test +++ test/COFF/entry-mangled.test @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: yaml2obj < %s > %t.obj # RUN: lld-link /out:%t.exe /entry:main %t.obj # RUN: llvm-as -o %t.lto.obj %S/Inputs/entry-mangled.ll Index: test/COFF/entrylib.ll =================================================================== --- test/COFF/entrylib.ll +++ test/COFF/entrylib.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as -o %t.obj %s ; RUN: rm -f %t.lib ; RUN: llvm-ar cru %t.lib %t.obj Index: test/COFF/export-arm64.yaml =================================================================== --- test/COFF/export-arm64.yaml +++ test/COFF/export-arm64.yaml @@ -1,4 +1,4 @@ -# REQUIRES: aarch64 +# REQUIRES: aarch64-registered-target # RUN: yaml2obj < %s > %t.obj # RUN: lld-link /out:%t.dll /dll %t.obj /export:exportfn1 /export:exportfn2 /implib:%t.lib Index: test/COFF/export-armnt.yaml =================================================================== --- test/COFF/export-armnt.yaml +++ test/COFF/export-armnt.yaml @@ -1,4 +1,4 @@ -# REQUIRES: arm +# REQUIRES: arm-registered-target # RUN: yaml2obj < %s > %t.obj # Index: test/COFF/filename-casing.s =================================================================== --- test/COFF/filename-casing.s +++ test/COFF/filename-casing.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-windows-msvc -o %T/MixedCase.obj %s # RUN: not lld-link /entry:main %T/MixedCase.obj 2>&1 | FileCheck -check-prefix=OBJECT %s Index: test/COFF/imports.test =================================================================== --- test/COFF/imports.test +++ test/COFF/imports.test @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # Verify that the lld can handle .lib files and emit .idata sections. # # RUN: lld-link /out:%t.exe /entry:main /subsystem:console \ Index: test/COFF/include-lto.ll =================================================================== --- test/COFF/include-lto.ll +++ test/COFF/include-lto.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as -o %t.obj %s ; RUN: lld-link /dll /out:%t.dll %t.obj ; RUN: llvm-objdump -d %t.dll | FileCheck %s Index: test/COFF/linkrepro-manifest.test =================================================================== --- test/COFF/linkrepro-manifest.test +++ test/COFF/linkrepro-manifest.test @@ -1,4 +1,4 @@ -REQUIRES: x86, gnutar, manifest_tool +REQUIRES: x86-registered-target, gnutar, manifest_tool RUN: rm -rf %t && mkdir %t && cd %t RUN: lld-link -entry:__ImageBase -nodefaultlib -linkrepro:%t -manifest:embed %p/Inputs/std32.lib -subsystem:console Index: test/COFF/linkrepro-pdb.test =================================================================== --- test/COFF/linkrepro-pdb.test +++ test/COFF/linkrepro-pdb.test @@ -1,4 +1,4 @@ -REQUIRES: x86, gnutar +REQUIRES: x86-registered-target, gnutar RUN: rm -rf %t && mkdir -p %t && cd %t RUN: yaml2obj %S/Inputs/pdb-type-server-simple-a.yaml -o a.obj Index: test/COFF/linkrepro-res.test =================================================================== --- test/COFF/linkrepro-res.test +++ test/COFF/linkrepro-res.test @@ -1,4 +1,4 @@ -# REQUIRES: x86, shell +# REQUIRES: x86-registered-target, shell # RUN: rm -rf %t.dir # RUN: mkdir -p %t.dir/build Index: test/COFF/linkrepro.test =================================================================== --- test/COFF/linkrepro.test +++ test/COFF/linkrepro.test @@ -1,4 +1,4 @@ -# REQUIRES: x86, shell +# REQUIRES: x86-registered-target, shell # RUN: rm -rf %t.dir # RUN: mkdir -p %t.dir/build1 %t.dir/build2 %t.dir/build3 Index: test/COFF/locally-imported-warn-multiple.s =================================================================== --- test/COFF/locally-imported-warn-multiple.s +++ test/COFF/locally-imported-warn-multiple.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-windows-msvc -o %T/locally-imported-def.obj %S/Inputs/locally-imported-def.s # RUN: llvm-mc -filetype=obj -triple=x86_64-windows-msvc -o %T/locally-imported-imp1.obj %S/Inputs/locally-imported-imp.s Index: test/COFF/lto-cache.ll =================================================================== --- test/COFF/lto-cache.ll +++ test/COFF/lto-cache.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: opt -module-hash -module-summary %s -o %t.o ; RUN: opt -module-hash -module-summary %p/Inputs/lto-cache.ll -o %t2.o Index: test/COFF/lto-debug-pass-arguments.ll =================================================================== --- test/COFF/lto-debug-pass-arguments.ll +++ test/COFF/lto-debug-pass-arguments.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as %s -o %t.obj ; RUN: lld-link /dll /out:%t.dll %t.obj /mllvm:-debug-pass=Arguments 2>&1 | FileCheck %s Index: test/COFF/msvclto-archive.ll =================================================================== --- test/COFF/msvclto-archive.ll +++ test/COFF/msvclto-archive.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ;; Make sure we re-create archive files to strip bitcode files. ;; Do not create empty archives because the MSVC linker Index: test/COFF/msvclto-order.ll =================================================================== --- test/COFF/msvclto-order.ll +++ test/COFF/msvclto-order.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: opt -thinlto-bc %s -o %t.obj ; RUN: llc -filetype=obj %S/Inputs/msvclto-order-a.ll -o %T/msvclto-order-a.obj ; RUN: llvm-ar crs %T/msvclto-order-a.lib %T/msvclto-order-a.obj Index: test/COFF/msvclto.ll =================================================================== --- test/COFF/msvclto.ll +++ test/COFF/msvclto.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as -o %t.obj %s ; RUN: mkdir -p %t.dir ; RUN: llvm-mc -triple=x86_64-pc-windows-msvc -filetype=obj -o %t.dir/bitcode.obj %p/Inputs/msvclto.s Index: test/COFF/pdb-lib.s =================================================================== --- test/COFF/pdb-lib.s +++ test/COFF/pdb-lib.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: rm -rf %t && mkdir -p %t && cd %t # RUN: llvm-mc -filetype=obj -triple=i686-windows-msvc %s -o foo.obj # RUN: llc %S/Inputs/bar.ll -filetype=obj -mtriple=i686-windows-msvc -o bar.obj Index: test/COFF/savetemps.ll =================================================================== --- test/COFF/savetemps.ll +++ test/COFF/savetemps.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: rm -fr %T/savetemps ; RUN: mkdir %T/savetemps ; RUN: llvm-as -o %T/savetemps/savetemps.obj %s Index: test/COFF/section-size.s =================================================================== --- test/COFF/section-size.s +++ test/COFF/section-size.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-windows-msvc %s -o %tmain.obj # RUN: echo '.lcomm s, 0x80000000' | llvm-mc -filetype=obj -triple=x86_64-windows-msvc -o %t1.obj # RUN: cp %t1.obj %t2.obj Index: test/COFF/strtab-size.s =================================================================== --- test/COFF/strtab-size.s +++ test/COFF/strtab-size.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # Test that the strtab size is included in the allocation even if the # strtab itself is empty. To achieve this, we need a number of symbols N Index: test/COFF/thinlto-archives.ll =================================================================== --- test/COFF/thinlto-archives.ll +++ test/COFF/thinlto-archives.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: rm -fr %T/thinlto-archives ; RUN: mkdir %T/thinlto-archives %T/thinlto-archives/a %T/thinlto-archives/b ; RUN: opt -thinlto-bc -o %T/thinlto-archives/main.obj %s Index: test/COFF/thinlto-mangled.ll =================================================================== --- test/COFF/thinlto-mangled.ll +++ test/COFF/thinlto-mangled.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: opt -thinlto-bc %s -o %t.obj ; RUN: opt -thinlto-bc %S/Inputs/thinlto-mangled-qux.ll -o %T/thinlto-mangled-qux.obj ; RUN: lld-link -out:%t.exe -entry:main %t.obj %T/thinlto-mangled-qux.obj Index: test/COFF/thinlto.ll =================================================================== --- test/COFF/thinlto.ll +++ test/COFF/thinlto.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: rm -fr %T/thinlto ; RUN: mkdir %T/thinlto ; RUN: opt -thinlto-bc -o %T/thinlto/main.obj %s Index: test/COFF/wx.s =================================================================== --- test/COFF/wx.s +++ test/COFF/wx.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -triple=x86_64-windows-msvc -filetype=obj -o %t.obj %s # RUN: not lld-link /out:%t.exe /entry:main -notarealoption /WX %t.obj 2>&1 | \ Index: test/ELF/aarch64-abs16.s =================================================================== --- test/ELF/aarch64-abs16.s +++ test/ELF/aarch64-abs16.s @@ -1,4 +1,4 @@ -// REQUIRES: aarch64 +// REQUIRES: aarch64-registered-target // RUN: llvm-mc -filetype=obj -triple=aarch64-none-freebsd %s -o %t.o // RUN: llvm-mc -filetype=obj -triple=aarch64-none-freebsd %S/Inputs/abs255.s -o %t255.o // RUN: llvm-mc -filetype=obj -triple=aarch64-none-freebsd %S/Inputs/abs256.s -o %t256.o Index: test/ELF/aarch64-abs32.s =================================================================== --- test/ELF/aarch64-abs32.s +++ test/ELF/aarch64-abs32.s @@ -1,4 +1,4 @@ -// REQUIRES: aarch64 +// REQUIRES: aarch64-registered-target // RUN: llvm-mc -filetype=obj -triple=aarch64-none-freebsd %s -o %t.o // RUN: llvm-mc -filetype=obj -triple=aarch64-none-freebsd %S/Inputs/abs255.s -o %t255.o // RUN: llvm-mc -filetype=obj -triple=aarch64-none-freebsd %S/Inputs/abs256.s -o %t256.o Index: test/ELF/aarch64-abs64-dyn.s =================================================================== --- test/ELF/aarch64-abs64-dyn.s +++ test/ELF/aarch64-abs64-dyn.s @@ -1,4 +1,4 @@ -// REQUIRES: aarch64 +// REQUIRES: aarch64-registered-target // RUN: llvm-mc -filetype=obj -triple=aarch64-none-linux %s -o %t.o // Creates a R_AARCH64_ABS64 relocation against foo and bar Index: test/ELF/aarch64-call26-thunk.s =================================================================== --- test/ELF/aarch64-call26-thunk.s +++ test/ELF/aarch64-call26-thunk.s @@ -2,7 +2,7 @@ // RUN: llvm-mc -filetype=obj -triple=aarch64-pc-freebsd %s -o %t // RUN: ld.lld %t %tabs -o %t2 2>&1 // RUN: llvm-objdump -d -triple=aarch64-pc-freebsd %t2 | FileCheck %s -// REQUIRES: aarch64 +// REQUIRES: aarch64-registered-target .text .globl _start Index: test/ELF/aarch64-condb-reloc.s =================================================================== --- test/ELF/aarch64-condb-reloc.s +++ test/ELF/aarch64-condb-reloc.s @@ -5,7 +5,7 @@ # RUN: ld.lld -shared %t1 %t2 -o %t3 # RUN: llvm-objdump -d %t3 | FileCheck -check-prefix=DSO %s # RUN: llvm-readobj -s -r %t3 | FileCheck -check-prefix=DSOREL %s -# REQUIRES: aarch64 +# REQUIRES: aarch64-registered-target # 0x11024 - 36 = 0x11000 # 0x11028 - 24 = 0x11010 Index: test/ELF/aarch64-copy.s =================================================================== --- test/ELF/aarch64-copy.s +++ test/ELF/aarch64-copy.s @@ -1,4 +1,4 @@ -// REQUIRES: aarch64 +// REQUIRES: aarch64-registered-target // RUN: llvm-mc -filetype=obj -triple=aarch64-pc-freebsd %s -o %t.o // RUN: llvm-mc -filetype=obj -triple=aarch64-pc-freebsd %p/Inputs/relocation-copy.s -o %t2.o // RUN: ld.lld -shared %t2.o -o %t2.so Index: test/ELF/aarch64-copy2.s =================================================================== --- test/ELF/aarch64-copy2.s +++ test/ELF/aarch64-copy2.s @@ -1,4 +1,4 @@ -// REQUIRES: aarch64 +// REQUIRES: aarch64-registered-target // RUN: llvm-mc %s -o %t.o -filetype=obj -triple=aarch64-pc-linux // RUN: llvm-mc %p/Inputs/aarch64-copy2.s -o %t2.o -filetype=obj -triple=aarch64-pc-linux // RUN: ld.lld %t2.o -o %t2.so -shared Index: test/ELF/aarch64-cortex-a53-843419-address.s =================================================================== --- test/ELF/aarch64-cortex-a53-843419-address.s +++ test/ELF/aarch64-cortex-a53-843419-address.s @@ -1,4 +1,4 @@ -// REQUIRES: aarch64 +// REQUIRES: aarch64-registered-target // RUN: llvm-mc -filetype=obj -triple=aarch64-none-linux %s -o %t.o // RUN: echo "SECTIONS { \ // RUN: .text : { *(.text) *(.text.*) *(.newisd) } \ Index: test/ELF/aarch64-cortex-a53-843419-cli.s =================================================================== --- test/ELF/aarch64-cortex-a53-843419-cli.s +++ test/ELF/aarch64-cortex-a53-843419-cli.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t // RUN: not ld.lld %t -fix-cortex-a53-843419 -o %t2 2>&1 | FileCheck %s Index: test/ELF/aarch64-cortex-a53-843419-large.s =================================================================== --- test/ELF/aarch64-cortex-a53-843419-large.s +++ test/ELF/aarch64-cortex-a53-843419-large.s @@ -1,4 +1,4 @@ -// REQUIRES: aarch64 +// REQUIRES: aarch64-registered-target // RUN: llvm-mc -filetype=obj -triple=aarch64-none-linux %s -o %t.o // RUN: ld.lld --fix-cortex-a53-843419 %t.o -o %t2 // RUN: llvm-objdump -triple=aarch64-linux-gnu -d %t2 -start-address=131072 -stop-address=131084 | FileCheck --check-prefix=CHECK1 %s Index: test/ELF/aarch64-cortex-a53-843419-nopatch.s =================================================================== --- test/ELF/aarch64-cortex-a53-843419-nopatch.s +++ test/ELF/aarch64-cortex-a53-843419-nopatch.s @@ -1,4 +1,4 @@ -// REQUIRES: aarch64 +// REQUIRES: aarch64-registered-target // RUN: llvm-mc -filetype=obj -triple=aarch64-none-linux %s -o %t.o // RUN: ld.lld -fix-cortex-a53-843419 -verbose -t %t.o -o %t2 | FileCheck %s // Test cases for Cortex-A53 Erratum 843419 that we don't expect to recognize Index: test/ELF/aarch64-cortex-a53-843419-recognize.s =================================================================== --- test/ELF/aarch64-cortex-a53-843419-recognize.s +++ test/ELF/aarch64-cortex-a53-843419-recognize.s @@ -1,4 +1,4 @@ -// REQUIRES: aarch64 +// REQUIRES: aarch64-registered-target // RUN: llvm-mc -filetype=obj -triple=aarch64-none-linux %s -o %t.o // RUN: ld.lld -fix-cortex-a53-843419 -verbose %t.o -o %t2 2>&1 | FileCheck -check-prefix CHECK-PRINT %s // RUN: llvm-objdump -triple=aarch64-linux-gnu -d %t2 | FileCheck %s -check-prefixes=CHECK,CHECK-FIX Index: test/ELF/aarch64-cortex-a53-843419-thunk.s =================================================================== --- test/ELF/aarch64-cortex-a53-843419-thunk.s +++ test/ELF/aarch64-cortex-a53-843419-thunk.s @@ -1,4 +1,4 @@ -// REQUIRES: aarch64 +// REQUIRES: aarch64-registered-target // RUN: llvm-mc -filetype=obj -triple=aarch64-none-linux %s -o %t.o // RUN: echo "SECTIONS { \ // RUN: .text1 0x10000 : { *(.text.01) *(.text.02) *(.text.03) } \ Index: test/ELF/aarch64-data-relocs.s =================================================================== --- test/ELF/aarch64-data-relocs.s +++ test/ELF/aarch64-data-relocs.s @@ -2,7 +2,7 @@ // RUN: llvm-mc -filetype=obj -triple=aarch64-none-freebsd %S/Inputs/abs256.s -o %t256.o // RUN: ld.lld %t %t256.o -o %t2 // RUN: llvm-objdump -s %t2 | FileCheck %s -// REQUIRES: aarch64 +// REQUIRES: aarch64-registered-target .globl _start _start: Index: test/ELF/aarch64-fpic-abs16.s =================================================================== --- test/ELF/aarch64-fpic-abs16.s +++ test/ELF/aarch64-fpic-abs16.s @@ -1,4 +1,4 @@ -// REQUIRES: aarch64 +// REQUIRES: aarch64-registered-target // RUN: llvm-mc -filetype=obj -triple=aarch64-none-freebsd %s -o %t.o // RUN: not ld.lld -shared %t.o -o %t.so 2>&1 | FileCheck %s // CHECK: relocation R_AARCH64_ABS16 cannot be used against symbol foo; recompile with -fPIC Index: test/ELF/aarch64-fpic-add_abs_lo12_nc.s =================================================================== --- test/ELF/aarch64-fpic-add_abs_lo12_nc.s +++ test/ELF/aarch64-fpic-add_abs_lo12_nc.s @@ -1,4 +1,4 @@ -// REQUIRES: aarch64 +// REQUIRES: aarch64-registered-target // RUN: llvm-mc -filetype=obj -triple=aarch64-none-freebsd %s -o %t.o // RUN: not ld.lld -shared %t.o -o %t.so 2>&1 | FileCheck %s // CHECK: can't create dynamic relocation R_AARCH64_ADD_ABS_LO12_NC against symbol: dat Index: test/ELF/aarch64-fpic-adr_prel_lo21.s =================================================================== --- test/ELF/aarch64-fpic-adr_prel_lo21.s +++ test/ELF/aarch64-fpic-adr_prel_lo21.s @@ -1,4 +1,4 @@ -// REQUIRES: aarch64 +// REQUIRES: aarch64-registered-target // RUN: llvm-mc -filetype=obj -triple=aarch64-none-freebsd %s -o %t.o // RUN: not ld.lld -shared %t.o -o %t.so 2>&1 | FileCheck %s // CHECK: relocation R_AARCH64_ADR_PREL_LO21 cannot be used against symbol dat; recompile with -fPIC Index: test/ELF/aarch64-fpic-adr_prel_pg_hi21.s =================================================================== --- test/ELF/aarch64-fpic-adr_prel_pg_hi21.s +++ test/ELF/aarch64-fpic-adr_prel_pg_hi21.s @@ -1,4 +1,4 @@ -// REQUIRES: aarch64 +// REQUIRES: aarch64-registered-target // RUN: llvm-mc -filetype=obj -triple=aarch64-none-freebsd %s -o %t.o // RUN: not ld.lld -shared %t.o -o %t.so 2>&1 | FileCheck %s // CHECK: relocation R_AARCH64_ADR_PREL_PG_HI21 cannot be used against symbol dat; recompile with -fPIC Index: test/ELF/aarch64-fpic-got.s =================================================================== --- test/ELF/aarch64-fpic-got.s +++ test/ELF/aarch64-fpic-got.s @@ -1,4 +1,4 @@ -# REQUIRES: aarch64 +# REQUIRES: aarch64-registered-target # RUN: llvm-mc -filetype=obj -triple=aarch64-none-linux %s -o %t.o # RUN: llvm-mc -filetype=obj -triple=aarch64-none-linux %p/Inputs/shared.s -o %t-lib.o Index: test/ELF/aarch64-fpic-ldst32_abs_lo12_nc.s =================================================================== --- test/ELF/aarch64-fpic-ldst32_abs_lo12_nc.s +++ test/ELF/aarch64-fpic-ldst32_abs_lo12_nc.s @@ -1,4 +1,4 @@ -// REQUIRES: aarch64 +// REQUIRES: aarch64-registered-target // RUN: llvm-mc -filetype=obj -triple=aarch64-none-freebsd %s -o %t.o // RUN: not ld.lld -shared %t.o -o %t.so 2>&1 | FileCheck %s // CHECK: can't create dynamic relocation R_AARCH64_LDST32_ABS_LO12_NC against symbol: dat Index: test/ELF/aarch64-fpic-ldst64_abs_lo12_nc.s =================================================================== --- test/ELF/aarch64-fpic-ldst64_abs_lo12_nc.s +++ test/ELF/aarch64-fpic-ldst64_abs_lo12_nc.s @@ -1,4 +1,4 @@ -// REQUIRES: aarch64 +// REQUIRES: aarch64-registered-target // RUN: llvm-mc -filetype=obj -triple=aarch64-none-freebsd %s -o %t.o // RUN: not ld.lld -shared %t.o -o %t.so 2>&1 | FileCheck %s // CHECK: can't create dynamic relocation R_AARCH64_LDST64_ABS_LO12_NC against symbol: dat Index: test/ELF/aarch64-fpic-ldst8_abs_lo12_nc.s =================================================================== --- test/ELF/aarch64-fpic-ldst8_abs_lo12_nc.s +++ test/ELF/aarch64-fpic-ldst8_abs_lo12_nc.s @@ -1,4 +1,4 @@ -// REQUIRES: aarch64 +// REQUIRES: aarch64-registered-target // RUN: llvm-mc -filetype=obj -triple=aarch64-none-freebsd %s -o %t.o // RUN: not ld.lld -shared %t.o -o %t.so 2>&1 | FileCheck %s // CHECK: can't create dynamic relocation R_AARCH64_LDST8_ABS_LO12_NC against symbol: dat Index: test/ELF/aarch64-fpic-prel16.s =================================================================== --- test/ELF/aarch64-fpic-prel16.s +++ test/ELF/aarch64-fpic-prel16.s @@ -1,4 +1,4 @@ -// REQUIRES: aarch64 +// REQUIRES: aarch64-registered-target // RUN: llvm-mc -filetype=obj -triple=aarch64-none-freebsd %s -o %t.o // RUN: not ld.lld -shared %t.o -o %t.so 2>&1 | FileCheck %s // CHECK: R_AARCH64_PREL16 cannot be used against symbol foo; recompile with -fPIC Index: test/ELF/aarch64-fpic-prel32.s =================================================================== --- test/ELF/aarch64-fpic-prel32.s +++ test/ELF/aarch64-fpic-prel32.s @@ -1,4 +1,4 @@ -// REQUIRES: aarch64 +// REQUIRES: aarch64-registered-target // RUN: llvm-mc -filetype=obj -triple=aarch64-none-freebsd %s -o %t.o // RUN: not ld.lld -shared %t.o -o %t.so 2>&1 | FileCheck %s // CHECK: relocation R_AARCH64_PREL32 cannot be used against symbol foo; recompile with -fPIC Index: test/ELF/aarch64-fpic-prel64.s =================================================================== --- test/ELF/aarch64-fpic-prel64.s +++ test/ELF/aarch64-fpic-prel64.s @@ -1,4 +1,4 @@ -// REQUIRES: aarch64 +// REQUIRES: aarch64-registered-target // RUN: llvm-mc -filetype=obj -triple=aarch64-none-freebsd %s -o %t.o // RUN: not ld.lld -shared %t.o -o %t.so 2>&1 | FileCheck %s // CHECK: relocation R_AARCH64_PREL64 cannot be used against symbol foo; recompile with -fPIC Index: test/ELF/aarch64-gnu-ifunc-nosym.s =================================================================== --- test/ELF/aarch64-gnu-ifunc-nosym.s +++ test/ELF/aarch64-gnu-ifunc-nosym.s @@ -1,7 +1,7 @@ // RUN: llvm-mc -filetype=obj -triple=aarch64-none-linux-gnu %s -o %t.o // RUN: ld.lld -static %t.o -o %tout // RUN: llvm-readobj -symbols %tout | FileCheck %s -// REQUIRES: aarch64 +// REQUIRES: aarch64-registered-target // Check that no __rela_iplt_end/__rela_iplt_start // appear in symtab if there is no references to them. Index: test/ELF/aarch64-gnu-ifunc-plt.s =================================================================== --- test/ELF/aarch64-gnu-ifunc-plt.s +++ test/ELF/aarch64-gnu-ifunc-plt.s @@ -5,7 +5,7 @@ // RUN: llvm-objdump -d %tout | FileCheck %s --check-prefix=DISASM // RUN: llvm-objdump -s %tout | FileCheck %s --check-prefix=GOTPLT // RUN: llvm-readobj -r -dynamic-table %tout | FileCheck %s -// REQUIRES: aarch64 +// REQUIRES: aarch64-registered-target // Check that the IRELATIVE relocations are after the JUMP_SLOT in the plt // CHECK: Relocations [ Index: test/ELF/aarch64-gnu-ifunc.s =================================================================== --- test/ELF/aarch64-gnu-ifunc.s +++ test/ELF/aarch64-gnu-ifunc.s @@ -2,7 +2,7 @@ // RUN: ld.lld -static %t.o -o %tout // RUN: llvm-objdump -d %tout | FileCheck %s --check-prefix=DISASM // RUN: llvm-readobj -r -symbols -sections %tout | FileCheck %s -// REQUIRES: aarch64 +// REQUIRES: aarch64-registered-target // CHECK: Sections [ // CHECK: Section { Index: test/ELF/aarch64-got-reloc.s =================================================================== --- test/ELF/aarch64-got-reloc.s +++ test/ELF/aarch64-got-reloc.s @@ -1,4 +1,4 @@ -// REQUIRES: aarch64 +// REQUIRES: aarch64-registered-target // RUN: llvm-mc -filetype=obj -triple=aarch64-none-freebsd %s -o %t.o // RUN: ld.lld %t.o -o %t // RUN: llvm-readobj -s --section-data %t | FileCheck %s Index: test/ELF/aarch64-got-relocations.s =================================================================== --- test/ELF/aarch64-got-relocations.s +++ test/ELF/aarch64-got-relocations.s @@ -1,4 +1,4 @@ -# REQUIRES: aarch64 +# REQUIRES: aarch64-registered-target # RUN: llvm-mc -filetype=obj -triple=aarch64-unknown-cloudabi %s -o %t.o # RUN: ld.lld --hash-style=sysv -pie %t.o -o %t # RUN: llvm-readobj -r %t | FileCheck %s Index: test/ELF/aarch64-got.s =================================================================== --- test/ELF/aarch64-got.s +++ test/ELF/aarch64-got.s @@ -1,4 +1,4 @@ -# REQUIRES: aarch64 +# REQUIRES: aarch64-registered-target # RUN: llvm-mc -filetype=obj -triple=aarch64-unknown-freebsd %s -o %t.o # RUN: ld.lld %t.o -o %t # RUN: llvm-readobj -s %t | FileCheck %s Index: test/ELF/aarch64-hi21-error.s =================================================================== --- test/ELF/aarch64-hi21-error.s +++ test/ELF/aarch64-hi21-error.s @@ -1,7 +1,7 @@ // RUN: llvm-mc -filetype=obj -triple=aarch64-pc-freebsd %S/Inputs/abs.s -o %tabs // RUN: llvm-mc -filetype=obj -triple=aarch64-pc-freebsd %s -o %t // RUN: not ld.lld %tabs %t -o %t2 2>&1 | FileCheck %s -// REQUIRES: aarch64 +// REQUIRES: aarch64-registered-target .globl _start _start: Index: test/ELF/aarch64-jump26-thunk.s =================================================================== --- test/ELF/aarch64-jump26-thunk.s +++ test/ELF/aarch64-jump26-thunk.s @@ -2,7 +2,7 @@ // RUN: llvm-mc -filetype=obj -triple=aarch64-pc-freebsd %s -o %t // RUN: ld.lld %t %tabs -o %t2 2>&1 // RUN: llvm-objdump -d -triple=aarch64-pc-freebsd %t2 | FileCheck %s -// REQUIRES: aarch64 +// REQUIRES: aarch64-registered-target .text .globl _start Index: test/ELF/aarch64-ldprel-lo19-invalid.s =================================================================== --- test/ELF/aarch64-ldprel-lo19-invalid.s +++ test/ELF/aarch64-ldprel-lo19-invalid.s @@ -1,4 +1,4 @@ -# REQUIRES: aarch64 +# REQUIRES: aarch64-registered-target # RUN: llvm-mc -filetype=obj -triple=aarch64-linux-none %s -o %t.o # RUN: not ld.lld -shared %t.o -o %t 2>&1 | FileCheck %s Index: test/ELF/aarch64-lo12-alignment.s =================================================================== --- test/ELF/aarch64-lo12-alignment.s +++ test/ELF/aarch64-lo12-alignment.s @@ -1,4 +1,4 @@ -// REQUIRES: aarch64 +// REQUIRES: aarch64-registered-target // RUN: llvm-mc -filetype=obj -triple=aarch64-none-linux %s -o %t // RUN: not ld.lld %t -o %t2 2>&1 | FileCheck %s Index: test/ELF/aarch64-lo21-error.s =================================================================== --- test/ELF/aarch64-lo21-error.s +++ test/ELF/aarch64-lo21-error.s @@ -1,7 +1,7 @@ // RUN: llvm-mc -filetype=obj -triple=aarch64-pc-freebsd %S/Inputs/abs.s -o %tabs // RUN: llvm-mc -filetype=obj -triple=aarch64-pc-freebsd %s -o %t // RUN: not ld.lld %tabs %t -o %t2 2>&1 | FileCheck %s -// REQUIRES: aarch64 +// REQUIRES: aarch64-registered-target .globl _start _start: Index: test/ELF/aarch64-load-alignment.s =================================================================== --- test/ELF/aarch64-load-alignment.s +++ test/ELF/aarch64-load-alignment.s @@ -1,4 +1,4 @@ -# REQUIRES: aarch64 +# REQUIRES: aarch64-registered-target # RUN: llvm-mc -filetype=obj -triple=aarch64-linux-none %s -o %t.o # RUN: not ld.lld -shared %t.o -o %t 2>&1 | FileCheck %s Index: test/ELF/aarch64-prel16.s =================================================================== --- test/ELF/aarch64-prel16.s +++ test/ELF/aarch64-prel16.s @@ -1,4 +1,4 @@ -// REQUIRES: aarch64 +// REQUIRES: aarch64-registered-target // RUN: llvm-mc -filetype=obj -triple=aarch64-none-freebsd %s -o %t.o // RUN: llvm-mc -filetype=obj -triple=aarch64-none-freebsd %S/Inputs/abs255.s -o %t255.o // RUN: llvm-mc -filetype=obj -triple=aarch64-none-freebsd %S/Inputs/abs256.s -o %t256.o Index: test/ELF/aarch64-prel32.s =================================================================== --- test/ELF/aarch64-prel32.s +++ test/ELF/aarch64-prel32.s @@ -1,4 +1,4 @@ -// REQUIRES: aarch64 +// REQUIRES: aarch64-registered-target // RUN: llvm-mc -filetype=obj -triple=aarch64-none-freebsd %s -o %t.o // RUN: llvm-mc -filetype=obj -triple=aarch64-none-freebsd %S/Inputs/abs255.s -o %t255.o // RUN: llvm-mc -filetype=obj -triple=aarch64-none-freebsd %S/Inputs/abs256.s -o %t256.o Index: test/ELF/aarch64-relative.s =================================================================== --- test/ELF/aarch64-relative.s +++ test/ELF/aarch64-relative.s @@ -1,4 +1,4 @@ -// REQUIRES: aarch64 +// REQUIRES: aarch64-registered-target // RUN: llvm-mc -filetype=obj -triple=aarch64-unknown-freebsd %s -o %t.o // RUN: ld.lld %t.o -o %t.so -shared // RUN: llvm-readobj -r %t.so | FileCheck %s Index: test/ELF/aarch64-relocs.s =================================================================== --- test/ELF/aarch64-relocs.s +++ test/ELF/aarch64-relocs.s @@ -2,7 +2,7 @@ # RUN: llvm-mc -filetype=obj -triple=aarch64-unknown-freebsd %p/Inputs/uabs_label.s -o %t2.o # RUN: ld.lld %t %t2.o -o %t2 # RUN: llvm-objdump -d %t2 | FileCheck %s -# REQUIRES: aarch64 +# REQUIRES: aarch64-registered-target .section .R_AARCH64_ADR_PREL_LO21,"ax",@progbits .globl _start Index: test/ELF/aarch64-relro.s =================================================================== --- test/ELF/aarch64-relro.s +++ test/ELF/aarch64-relro.s @@ -1,4 +1,4 @@ -# REQUIRES: aarch64 +# REQUIRES: aarch64-registered-target # RUN: llvm-mc -filetype=obj -triple=aarch64-unknown-freebsd %s -o %t # RUN: ld.lld %t -o %t2 # RUN: llvm-readobj -program-headers %t2 | FileCheck %s Index: test/ELF/aarch64-thunk-pi.s =================================================================== --- test/ELF/aarch64-thunk-pi.s +++ test/ELF/aarch64-thunk-pi.s @@ -5,7 +5,7 @@ // RUN: } " > %t.script // RUN: ld.lld --script %t.script --shared %t -o %t2 2>&1 // RUN: llvm-objdump -d -triple=aarch64-linux-gnu %t2 | FileCheck %s -// REQUIRES: aarch64 +// REQUIRES: aarch64-registered-target // Check that Position Independent thunks are generated for shared libraries. .section .text_low, "ax", %progbits Index: test/ELF/aarch64-thunk-script.s =================================================================== --- test/ELF/aarch64-thunk-script.s +++ test/ELF/aarch64-thunk-script.s @@ -5,7 +5,7 @@ // RUN: } " > %t.script // RUN: ld.lld --script %t.script %t -o %t2 2>&1 // RUN: llvm-objdump -d -triple=aarch64-linux-gnu %t2 | FileCheck %s -// REQUIRES: aarch64 +// REQUIRES: aarch64-registered-target // Check that we have the out of branch range calculation right. The immediate // field is signed so we have a slightly higher negative displacement. Index: test/ELF/aarch64-thunk-section-location.s =================================================================== --- test/ELF/aarch64-thunk-section-location.s +++ test/ELF/aarch64-thunk-section-location.s @@ -1,7 +1,7 @@ // RUN: llvm-mc -filetype=obj -triple=aarch64-linux-gnu %s -o %t // RUN: ld.lld %t -o %t2 2>&1 // RUN: llvm-objdump -d -start-address=134086664 -stop-address=134086676 -triple=aarch64-linux-gnu %t2 | FileCheck %s -// REQUIRES: aarch64 +// REQUIRES: aarch64-registered-target // Check that the range extension thunks are dumped close to the aarch64 branch // range of 128 MiB .section .text.1, "ax", %progbits Index: test/ELF/aarch64-tls-gdie.s =================================================================== --- test/ELF/aarch64-tls-gdie.s +++ test/ELF/aarch64-tls-gdie.s @@ -1,4 +1,4 @@ -// REQUIRES: aarch64 +// REQUIRES: aarch64-registered-target // RUN: llvm-mc %s -o %t.o -filetype=obj -triple=aarch64-pc-linux // RUN: llvm-mc %p/Inputs/aarch64-tls-gdie.s -o %t2.o -filetype=obj -triple=aarch64-pc-linux // RUN: ld.lld %t2.o -o %t2.so -shared Index: test/ELF/aarch64-tls-gdle.s =================================================================== --- test/ELF/aarch64-tls-gdle.s +++ test/ELF/aarch64-tls-gdle.s @@ -3,7 +3,7 @@ # RUN: ld.lld %tmain.o %ttlsie.o -o %tout # RUN: llvm-objdump -d %tout | FileCheck %s # RUN: llvm-readobj -s -r %tout | FileCheck -check-prefix=RELOC %s -# REQUIRES: aarch64 +# REQUIRES: aarch64-registered-target #Local-Dynamic to Initial-Exec relax creates no #RELOC: Relocations [ Index: test/ELF/aarch64-tls-ie.s =================================================================== --- test/ELF/aarch64-tls-ie.s +++ test/ELF/aarch64-tls-ie.s @@ -1,11 +1,11 @@ -// REQUIRES: aarch64 +// REQUIRES: aarch64-registered-target # RUN: llvm-mc -filetype=obj -triple=aarch64-unknown-freebsd %p/Inputs/aarch64-tls-ie.s -o %tdso.o # RUN: llvm-mc -filetype=obj -triple=aarch64-unknown-freebsd %s -o %tmain.o # RUN: ld.lld -shared %tdso.o -o %tdso.so # RUN: ld.lld --hash-style=sysv %tmain.o %tdso.so -o %tout # RUN: llvm-objdump -d %tout | FileCheck %s # RUN: llvm-readobj -s -r %tout | FileCheck -check-prefix=RELOC %s -# REQUIRES: aarch64 +# REQUIRES: aarch64-registered-target #RELOC: Section { #RELOC: Index: Index: test/ELF/aarch64-tls-iele.s =================================================================== --- test/ELF/aarch64-tls-iele.s +++ test/ELF/aarch64-tls-iele.s @@ -3,7 +3,7 @@ # RUN: ld.lld %tmain.o %ttlsie.o -o %tout # RUN: llvm-objdump -d %tout | FileCheck %s # RUN: llvm-readobj -s -r %tout | FileCheck -check-prefix=RELOC %s -# REQUIRES: aarch64 +# REQUIRES: aarch64-registered-target # Initial-Exec to Local-Exec relax creates no dynamic relocations. # RELOC: Relocations [ Index: test/ELF/aarch64-tls-le.s =================================================================== --- test/ELF/aarch64-tls-le.s +++ test/ELF/aarch64-tls-le.s @@ -2,7 +2,7 @@ # RUN: ld.lld %tmain.o -o %tout # RUN: llvm-objdump -d %tout | FileCheck %s # RUN: llvm-readobj -s -r %tout | FileCheck -check-prefix=RELOC %s -# REQUIRES: aarch64 +# REQUIRES: aarch64-registered-target #Local-Dynamic to Initial-Exec relax creates no #RELOC: Relocations [ Index: test/ELF/aarch64-tls-pie.s =================================================================== --- test/ELF/aarch64-tls-pie.s +++ test/ELF/aarch64-tls-pie.s @@ -1,4 +1,4 @@ -# REQUIRES: aarch64 +# REQUIRES: aarch64-registered-target # RUN: llvm-mc -filetype=obj -triple=aarch64-unknown-cloudabi %s -o %t1.o # RUN: ld.lld -pie %t1.o -o %t # RUN: llvm-readobj -r %t | FileCheck %s Index: test/ELF/aarch64-tls-static.s =================================================================== --- test/ELF/aarch64-tls-static.s +++ test/ELF/aarch64-tls-static.s @@ -1,4 +1,4 @@ -// REQUIRES: aarch64 +// REQUIRES: aarch64-registered-target // RUN: llvm-mc %s -o %t.o -triple aarch64-pc-linux -filetype=obj // RUN: ld.lld --hash-style=sysv %t.o -o %t.so -shared // RUN: llvm-readobj -s %t.so | FileCheck --check-prefix=SEC %s Index: test/ELF/aarch64-tlsdesc.s =================================================================== --- test/ELF/aarch64-tlsdesc.s +++ test/ELF/aarch64-tlsdesc.s @@ -1,4 +1,4 @@ -// REQUIRES: aarch64 +// REQUIRES: aarch64-registered-target // RUN: llvm-mc -filetype=obj -triple=aarch64-pc-linux %s -o %t.o // RUN: ld.lld --hash-style=sysv -shared %t.o -o %t.so // RUN: llvm-objdump -d %t.so | FileCheck %s Index: test/ELF/aarch64-tstbr14-reloc.s =================================================================== --- test/ELF/aarch64-tstbr14-reloc.s +++ test/ELF/aarch64-tstbr14-reloc.s @@ -5,7 +5,7 @@ # RUN: ld.lld -shared %t1 %t2 -o %t3 # RUN: llvm-objdump -d %t3 | FileCheck -check-prefix=DSO %s # RUN: llvm-readobj -s -r %t3 | FileCheck -check-prefix=DSOREL %s -# REQUIRES: aarch64 +# REQUIRES: aarch64-registered-target # 0x1101c - 28 = 0x20000 # 0x11020 - 16 = 0x20010 Index: test/ELF/aarch64-undefined-weak.s =================================================================== --- test/ELF/aarch64-undefined-weak.s +++ test/ELF/aarch64-undefined-weak.s @@ -1,7 +1,7 @@ // RUN: llvm-mc -filetype=obj -triple=aarch64-none-linux %s -o %t // RUN: ld.lld %t -o %t2 2>&1 // RUN: llvm-objdump -triple=aarch64-none-linux -d %t2 | FileCheck %s -// REQUIRES: aarch64 +// REQUIRES: aarch64-registered-target // Check that the ARM 64-bit ABI rules for undefined weak symbols are applied. // Branch instructions are resolved to the next instruction. Undefined Index: test/ELF/abs-conflict.s =================================================================== --- test/ELF/abs-conflict.s +++ test/ELF/abs-conflict.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: ld.lld %t.o %t.o -o %t.so -shared // RUN: llvm-readobj --dyn-symbols %t.so | FileCheck %s Index: test/ELF/abs-hidden.s =================================================================== --- test/ELF/abs-hidden.s +++ test/ELF/abs-hidden.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // 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/abs-hidden.s -o %t2.o // RUN: ld.lld --hash-style=sysv %t.o %t2.o -o %t.so -shared Index: test/ELF/allow-multiple-definition.s =================================================================== --- test/ELF/allow-multiple-definition.s +++ test/ELF/allow-multiple-definition.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/allow-multiple-definition.s -o %t2 Index: test/ELF/allow-shlib-undefined.s =================================================================== --- test/ELF/allow-shlib-undefined.s +++ test/ELF/allow-shlib-undefined.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # --allow-shlib-undefined and --no-allow-shlib-undefined are fully # ignored in linker implementation. # --allow-shlib-undefined is set by default Index: test/ELF/amdgpu-elf-flags-err.s =================================================================== --- test/ELF/amdgpu-elf-flags-err.s +++ test/ELF/amdgpu-elf-flags-err.s @@ -2,6 +2,6 @@ # RUN: llvm-mc -triple amdgcn-amd-amdhsa -mcpu=gfx803 -filetype=obj %S/Inputs/amdgpu-kernel-1.s -o %t-1.o # RUN: not ld.lld -shared %t-0.o %t-1.o -o %t.so 2>&1 | FileCheck %s -# REQUIRES: amdgpu +# REQUIRES: amdgpu-registered-target # CHECK: error: incompatible e_flags: {{.*}}-1.o Index: test/ELF/amdgpu-elf-flags.s =================================================================== --- test/ELF/amdgpu-elf-flags.s +++ test/ELF/amdgpu-elf-flags.s @@ -3,7 +3,7 @@ # RUN: ld.lld -shared %t-0.o %t-1.o -o %t.so # RUN: llvm-readobj -file-headers %t.so | FileCheck %s -# REQUIRES: amdgpu +# REQUIRES: amdgpu-registered-target # CHECK: Flags [ # CHECK: EF_AMDGPU_MACH_AMDGCN_GFX803 (0x2A) Index: test/ELF/amdgpu-globals.s =================================================================== --- test/ELF/amdgpu-globals.s +++ test/ELF/amdgpu-globals.s @@ -2,7 +2,7 @@ # RUN: ld.lld -shared %t.o -o %t # RUN: llvm-readobj -sections -symbols -program-headers %t | FileCheck %s -# REQUIRES: amdgpu +# REQUIRES: amdgpu-registered-target .type glob0, @object .data Index: test/ELF/amdgpu-kernels.s =================================================================== --- test/ELF/amdgpu-kernels.s +++ test/ELF/amdgpu-kernels.s @@ -2,7 +2,7 @@ # RUN: ld.lld -shared %t.o -o %t # RUN: llvm-readobj -sections -symbols -program-headers %t | FileCheck %s -# REQUIRES: amdgpu +# REQUIRES: amdgpu-registered-target .hsa_code_object_version 1,0 .hsa_code_object_isa 7,0,0,"AMD","AMDGPU" Index: test/ELF/amdgpu-relocs.s =================================================================== --- test/ELF/amdgpu-relocs.s +++ test/ELF/amdgpu-relocs.s @@ -3,7 +3,7 @@ # RUN: llvm-readobj -r %t.so | FileCheck %s # RUN: llvm-objdump -s %t.so | FileCheck %s --check-prefix=OBJDUMP -# REQUIRES: amdgpu +# REQUIRES: amdgpu-registered-target .text Index: test/ELF/archive.s =================================================================== --- test/ELF/archive.s +++ test/ELF/archive.s @@ -10,7 +10,7 @@ # RUN: llvm-ar --format=gnu rcsT %t.thin %t2 %t3 %t4 # RUN: ld.lld %t %t.thin %t5 -o %t.out # RUN: llvm-nm %t.out | FileCheck %s -# REQUIRES: x86 +# REQUIRES: x86-registered-target # Nothing here. Just needed for the linker to create a undefined _start symbol. Index: test/ELF/arm-abs32-dyn.s =================================================================== --- test/ELF/arm-abs32-dyn.s +++ test/ELF/arm-abs32-dyn.s @@ -1,4 +1,4 @@ -// REQUIRES: arm +// REQUIRES: arm-registered-target // RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux %s -o %t.o // Creates a R_ARM_ABS32 relocation against foo and bar, bar has hidden Index: test/ELF/arm-attributes.s =================================================================== --- test/ELF/arm-attributes.s +++ test/ELF/arm-attributes.s @@ -7,7 +7,7 @@ // RUN: llvm-readobj -arm-attributes %t2 | FileCheck %s // RUN: ld.lld %t1.o %t2.o -r -o %t3 // RUN: llvm-readobj -arm-attributes %t3 | FileCheck %s -// REQUIRES: arm +// REQUIRES: arm-registered-target // Check that we retain only 1 SHT_ARM_ATTRIBUTES section. At present we do not // try and merge or use the contents of SHT_ARM_ATTRIBUTES sections. We just Index: test/ELF/arm-bl-v6.s =================================================================== --- test/ELF/arm-bl-v6.s +++ test/ELF/arm-bl-v6.s @@ -1,6 +1,6 @@ // RUN: llvm-mc -filetype=obj -triple=arm-none-linux-gnueabi %s -o %t // RUN: ld.lld %t -o %t2 2>&1 | FileCheck %s -// REQUIRES: arm +// REQUIRES: arm-registered-target // On Arm v6 the range of a Thumb BL instruction is only 4 megabytes as the // extended range encoding is not supported. The following example has a Thumb Index: test/ELF/arm-blx-v4t.s =================================================================== --- test/ELF/arm-blx-v4t.s +++ test/ELF/arm-blx-v4t.s @@ -1,6 +1,6 @@ // RUN: llvm-mc -filetype=obj -triple=arm-none-linux-gnueabi %s -o %t // RUN: ld.lld %t -o %t2 2>&1 | FileCheck %s -// REQUIRES: arm +// REQUIRES: arm-registered-target // On Arm v4t there is no blx instruction so all interworking must go via // a thunk. At present we don't support v4t so we give a warning for unsupported Index: test/ELF/arm-blx.s =================================================================== --- test/ELF/arm-blx.s +++ test/ELF/arm-blx.s @@ -10,7 +10,7 @@ // RUN: ld.lld --script %t.script %t %tfar -o %t2 2>&1 // RUN: llvm-objdump -d -triple=armv7a-none-linux-gnueabi %t2 | FileCheck -check-prefix=CHECK-ARM %s // RUN: llvm-objdump -d -triple=thumbv7a-none-linux-gnueabi %t2 | FileCheck -check-prefix=CHECK-THUMB %s -// REQUIRES: arm +// REQUIRES: arm-registered-target // Test BLX instruction is chosen for ARM BL/BLX instruction and Thumb callee // Using two callees to ensure at least one has 2-byte alignment. Index: test/ELF/arm-branch-rangethunk.s =================================================================== --- test/ELF/arm-branch-rangethunk.s +++ test/ELF/arm-branch-rangethunk.s @@ -2,7 +2,7 @@ // RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %S/Inputs/far-arm-abs.s -o %tfar // RUN: ld.lld %t %tfar -o %t2 2>&1 // RUN: llvm-objdump -d -triple=armv7a-none-linux-gnueabi %t2 | FileCheck %s -// REQUIRES: arm +// REQUIRES: arm-registered-target .syntax unified .section .text, "ax",%progbits .globl _start Index: test/ELF/arm-branch-undef-weak-plt-thunk.s =================================================================== --- test/ELF/arm-branch-undef-weak-plt-thunk.s +++ test/ELF/arm-branch-undef-weak-plt-thunk.s @@ -3,7 +3,7 @@ // RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t2 // RUN: ld.lld %t2 %t.so -o %t3 // RUN: llvm-objdump -d -triple=armv7a-none-linux-gnueabi -start-address=69632 -stop-address=69664 %t3 | FileCheck %s -// REQUIRES: arm +// REQUIRES: arm-registered-target // When we are dynamic linking, undefined weak references have a PLT entry so // we must create a thunk for the branch to the PLT entry. Index: test/ELF/arm-branch.s =================================================================== --- test/ELF/arm-branch.s +++ test/ELF/arm-branch.s @@ -7,7 +7,7 @@ // RUN: .callee2 : { *(.callee_high) } } " > %t.script // RUN: ld.lld --script %t.script %t %tfar -o %t2 2>&1 // RUN: llvm-objdump -d -triple=armv7a-none-linux-gnueabi %t2 | FileCheck %s -// REQUIRES: arm +// REQUIRES: arm-registered-target .syntax unified .section .callee_low, "ax",%progbits .align 2 Index: test/ELF/arm-copy.s =================================================================== --- test/ELF/arm-copy.s +++ test/ELF/arm-copy.s @@ -1,4 +1,4 @@ -// REQUIRES: arm +// REQUIRES: arm-registered-target // RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t.o // RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %p/Inputs/relocation-copy-arm.s -o %t2.o // RUN: ld.lld -shared %t2.o -o %t2.so Index: test/ELF/arm-data-prel.s =================================================================== --- test/ELF/arm-data-prel.s +++ test/ELF/arm-data-prel.s @@ -6,7 +6,7 @@ // RUN: .TEST1 : { *(.TEST1) } } " > %t.script // RUN: ld.lld --script %t.script %t.o -o %t // RUN: llvm-readobj -s -sd %t | FileCheck --check-prefix=CHECK %s -// REQUIRES: arm +// REQUIRES: arm-registered-target // The R_ARM_PREL31 relocation is used in by the .ARM.exidx exception tables // bit31 of the place denotes whether the field is an inline table entry Index: test/ELF/arm-data-relocs.s =================================================================== --- test/ELF/arm-data-relocs.s +++ test/ELF/arm-data-relocs.s @@ -2,7 +2,7 @@ // RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %S/Inputs/abs256.s -o %t256.o // RUN: ld.lld %t %t256.o -o %t2 // RUN: llvm-objdump -d %t2 | FileCheck %s -// REQUIRES: arm +// REQUIRES: arm-registered-target .syntax unified .globl _start _start: Index: test/ELF/arm-eabi-version.s =================================================================== --- test/ELF/arm-eabi-version.s +++ test/ELF/arm-eabi-version.s @@ -1,7 +1,7 @@ // RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t.o // RUN: ld.lld -static %t.o -o %tout // RUN: llvm-readobj -file-headers %tout | FileCheck %s -// REQUIRES: arm +// REQUIRES: arm-registered-target .syntax unified .text .globl _start Index: test/ELF/arm-exidx-canunwind.s =================================================================== --- test/ELF/arm-exidx-canunwind.s +++ test/ELF/arm-exidx-canunwind.s @@ -3,7 +3,7 @@ // RUN: llvm-objdump -d -triple=armv7a-none-linux-gnueabi %t2 | FileCheck %s // RUN: llvm-objdump -s -triple=armv7a-none-linux-gnueabi %t2 | FileCheck -check-prefix=CHECK-EXIDX %s // RUN: llvm-readobj --program-headers --sections %t2 | FileCheck -check-prefix=CHECK-PT %s -// REQUIRES: arm +// REQUIRES: arm-registered-target // Test that inline unwinding table entries and references to .ARM.extab // entries survive the re-ordering of the .ARM.exidx section Index: test/ELF/arm-exidx-dedup-and-sentinel.s =================================================================== --- test/ELF/arm-exidx-dedup-and-sentinel.s +++ test/ELF/arm-exidx-dedup-and-sentinel.s @@ -1,4 +1,4 @@ -// REQUIRES: arm +// REQUIRES: arm-registered-target // RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t.o // RUN: ld.lld %t.o -shared -o %t.so --section-start .text=0x2000 --section-start .ARM.exidx=0x1000 // RUN: llvm-objdump -s -triple=armv7a-none-linux-gnueabi %t.so | FileCheck %s Index: test/ELF/arm-exidx-dedup.s =================================================================== --- test/ELF/arm-exidx-dedup.s +++ test/ELF/arm-exidx-dedup.s @@ -3,7 +3,7 @@ // RUN: llvm-objdump -s %t2 | FileCheck --check-prefix CHECK-DUPS %s // RUN: ld.lld %t -o %t3 // RUN: llvm-objdump -s %t3 | FileCheck %s -// REQUIRES: arm +// REQUIRES: arm-registered-target // Test that lld can at least remove duplicate .ARM.exidx sections. A more // fine grained implementation will be able to remove duplicate entries within // a .ARM.exidx section. Index: test/ELF/arm-exidx-discard.s =================================================================== --- test/ELF/arm-exidx-discard.s +++ test/ELF/arm-exidx-discard.s @@ -2,7 +2,7 @@ // RUN: echo "ENTRY(__entrypoint) SECTIONS { . = 0x10000; .text : { *(.text .text.*) } /DISCARD/ : { *(.ARM.exidx*) *(.gnu.linkonce.armexidx.*) } }" > %t.script // RUN: ld.lld -T %t.script %t.o -o %t.elf 2>&1 // RUN: llvm-readobj -sections %t.elf | FileCheck %s -// REQUIRES: arm +// REQUIRES: arm-registered-target .globl __entrypoint __entrypoint: Index: test/ELF/arm-exidx-gc.s =================================================================== --- test/ELF/arm-exidx-gc.s +++ test/ELF/arm-exidx-gc.s @@ -2,7 +2,7 @@ // RUN: ld.lld %t --no-merge-exidx-entries -o %t2 --gc-sections 2>&1 // RUN: llvm-objdump -d -triple=armv7a-none-linux-gnueabi %t2 | FileCheck %s // RUN: llvm-objdump -s -triple=armv7a-none-linux-gnueabi %t2 | FileCheck -check-prefix=CHECK-EXIDX %s -// REQUIRES: arm +// REQUIRES: arm-registered-target // Test the behavior of .ARM.exidx sections under garbage collection // A .ARM.exidx section is live if it has a relocation to a live executable Index: test/ELF/arm-exidx-link.s =================================================================== --- test/ELF/arm-exidx-link.s +++ test/ELF/arm-exidx-link.s @@ -1,4 +1,4 @@ -// REQUIRES: arm +// REQUIRES: arm-registered-target // RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t.o // RUN: ld.lld %t.o -o %t.so -shared // RUN: llvm-readobj -s %t.so | FileCheck %s Index: test/ELF/arm-exidx-order.s =================================================================== --- test/ELF/arm-exidx-order.s +++ test/ELF/arm-exidx-order.s @@ -11,7 +11,7 @@ // RUN: ld.lld --no-merge-exidx-entries --script %t.script %tcantunwind %t -o %t3 2>&1 // RUN: llvm-objdump -d -triple=armv7a-none-linux-gnueabi %t3 | FileCheck -check-prefix=CHECK-SCRIPT %s // RUN: llvm-objdump -s -triple=armv7a-none-linux-gnueabi %t3 | FileCheck -check-prefix=CHECK-SCRIPT-EXIDX %s -// REQUIRES: arm +// REQUIRES: arm-registered-target // Each assembler created .ARM.exidx section has the SHF_LINK_ORDER flag set // with the sh_link containing the section index of the executable section Index: test/ELF/arm-exidx-output.s =================================================================== --- test/ELF/arm-exidx-output.s +++ test/ELF/arm-exidx-output.s @@ -1,7 +1,7 @@ // RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t // RUN: ld.lld %t -o %t2 2>&1 // RUN: llvm-readobj -sections %t2 | FileCheck %s -// REQUIRES: arm +// REQUIRES: arm-registered-target // Check that only a single .ARM.exidx output section is created when // there are input sections of the form .ARM.exidx.. The Index: test/ELF/arm-exidx-relocatable.s =================================================================== --- test/ELF/arm-exidx-relocatable.s +++ test/ELF/arm-exidx-relocatable.s @@ -3,7 +3,7 @@ // Check that relocatable link maintains SHF_LINK_ORDER // RUN: ld.lld -r %t %tcantunwind -o %t4 2>&1 // RUN: llvm-readobj -s %t4 | FileCheck %s -// REQUIRES: arm +// REQUIRES: arm-registered-target // Each assembler created .ARM.exidx section has the SHF_LINK_ORDER flag set // with the sh_link containing the section index of the executable section Index: test/ELF/arm-exidx-sentinel-norelocatable.s =================================================================== --- test/ELF/arm-exidx-sentinel-norelocatable.s +++ test/ELF/arm-exidx-sentinel-norelocatable.s @@ -1,6 +1,6 @@ // RUN: llvm-mc %s -triple=armv7-unknown-linux-gnueabi -filetype=obj -o %t.o // RUN: ld.lld -r %t.o -o %t -// REQUIRES: arm +// REQUIRES: arm-registered-target // RUN: llvm-readobj -s %t | FileCheck %s // Check that when doing a relocatable link we don't add a terminating entry // to the .ARM.exidx section Index: test/ELF/arm-exidx-sentinel-orphan.s =================================================================== --- test/ELF/arm-exidx-sentinel-orphan.s +++ test/ELF/arm-exidx-sentinel-orphan.s @@ -6,7 +6,7 @@ // RUN: } " > %t.script // RUN: ld.lld --no-merge-exidx-entries --script %t.script %t -o %t2 // RUN: llvm-objdump -s -triple=armv7a-none-linux-gnueabi %t2 | FileCheck %s -// REQUIRES: arm +// REQUIRES: arm-registered-target .syntax unified .text Index: test/ELF/arm-exidx-shared.s =================================================================== --- test/ELF/arm-exidx-shared.s +++ test/ELF/arm-exidx-shared.s @@ -2,7 +2,7 @@ // RUN: ld.lld --hash-style=sysv %t --shared -o %t2 2>&1 // RUN: llvm-readobj --relocations %t2 | FileCheck %s // RUN: llvm-objdump -s -triple=armv7a-none-linux-gnueabi %t2 | FileCheck -check-prefix=CHECK-EXTAB %s -// REQUIRES: arm +// REQUIRES: arm-registered-target // Check that the relative R_ARM_PREL31 relocation can access a PLT entry // for when the personality routine is referenced from a shared library. Index: test/ELF/arm-fpic-got.s =================================================================== --- test/ELF/arm-fpic-got.s +++ test/ELF/arm-fpic-got.s @@ -1,4 +1,4 @@ -// REQUIRES: arm +// REQUIRES: arm-registered-target // RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t.o // RUN: ld.lld %t.o -o %t // RUN: llvm-readobj -s %t | FileCheck %s Index: test/ELF/arm-gnu-ifunc-nosym.s =================================================================== --- test/ELF/arm-gnu-ifunc-nosym.s +++ test/ELF/arm-gnu-ifunc-nosym.s @@ -1,7 +1,7 @@ // RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t.o // RUN: ld.lld -static %t.o -o %tout // RUN: llvm-readobj -symbols %tout | FileCheck %s -// REQUIRES: arm +// REQUIRES: arm-registered-target // Check that no __rel_iplt_end/__rel_iplt_start // appear in symtab if there are no references to them. Index: test/ELF/arm-gnu-ifunc-plt.s =================================================================== --- test/ELF/arm-gnu-ifunc-plt.s +++ test/ELF/arm-gnu-ifunc-plt.s @@ -5,7 +5,7 @@ // RUN: llvm-objdump -triple=armv7a-linux-gnueabihf -d %tout | FileCheck %s --check-prefix=DISASM // RUN: llvm-objdump -s %tout | FileCheck %s --check-prefix=GOTPLT // RUN: llvm-readobj -r -dynamic-table %tout | FileCheck %s -// REQUIRES: arm +// REQUIRES: arm-registered-target // Check that the IRELATIVE relocations are last in the .got // CHECK: Relocations [ Index: test/ELF/arm-gnu-ifunc.s =================================================================== --- test/ELF/arm-gnu-ifunc.s +++ test/ELF/arm-gnu-ifunc.s @@ -2,7 +2,7 @@ // RUN: ld.lld -static %t.o -o %tout // RUN: llvm-objdump -triple armv7a-none-linux-gnueabi -d %tout | FileCheck %s --check-prefix=DISASM // RUN: llvm-readobj -r -symbols -sections %tout | FileCheck %s -// REQUIRES: arm +// REQUIRES: arm-registered-target .syntax unified .text .type foo STT_GNU_IFUNC Index: test/ELF/arm-got-relative.s =================================================================== --- test/ELF/arm-got-relative.s +++ test/ELF/arm-got-relative.s @@ -1,4 +1,4 @@ -// REQUIRES: arm +// REQUIRES: arm-registered-target // RUN: llvm-mc -position-independent -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t.o // RUN: ld.lld --hash-style=sysv %t.o -shared -o %t // RUN: llvm-readobj -s -symbols -dyn-relocations %t | FileCheck %s Index: test/ELF/arm-gotoff.s =================================================================== --- test/ELF/arm-gotoff.s +++ test/ELF/arm-gotoff.s @@ -2,7 +2,7 @@ // RUN: ld.lld %t.o -o %t // RUN: llvm-readobj -s -r -t %t | FileCheck %s // RUN: llvm-objdump -triple=armv7a-linux-gnueabi -d %t | FileCheck --check-prefix=DISASM %s -// REQUIRES: arm +// REQUIRES: arm-registered-target // Test the R_ARM_GOTOFF32 relocation Index: test/ELF/arm-icf-exidx.s =================================================================== --- test/ELF/arm-icf-exidx.s +++ test/ELF/arm-icf-exidx.s @@ -1,4 +1,4 @@ -// REQUIRES: arm +// REQUIRES: arm-registered-target // RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t // RUN: ld.lld %t -o %t2 --icf=all // RUN: llvm-objdump -s -d -triple=armv7a-none-linux-gnueabi %t2 | FileCheck %s Index: test/ELF/arm-mov-relocs.s =================================================================== --- test/ELF/arm-mov-relocs.s +++ test/ELF/arm-mov-relocs.s @@ -4,7 +4,7 @@ // RUN: llvm-mc -filetype=obj -triple=thumbv7a-unknown-linux-gnueabi %s -o %t3 // RUN: ld.lld %t3 -o %t4 // RUN: llvm-objdump -d %t4 -triple=thumbv7a-unknown-linux-gnueabi | FileCheck %s -// REQUIRES: arm +// REQUIRES: arm-registered-target // Test the R_ARM_MOVW_ABS_NC and R_ARM_MOVT_ABS relocations as well as // the R_ARM_THM_MOVW_ABS_NC and R_ARM_THM_MOVT_ABS relocations. Index: test/ELF/arm-pie-relative.s =================================================================== --- test/ELF/arm-pie-relative.s +++ test/ELF/arm-pie-relative.s @@ -2,7 +2,7 @@ // RUN: ld.lld --hash-style=sysv %t --pie -o %t2 // RUN: llvm-readobj -r %t2 | FileCheck %s // RUN: llvm-objdump -s %t2 | FileCheck %s --check-prefix=GOT -// REQUIRES: arm +// REQUIRES: arm-registered-target // Test that a R_ARM_GOT_BREL relocation with PIE results in a R_ARM_RELATIVE // dynamic relocation Index: test/ELF/arm-plt-reloc.s =================================================================== --- test/ELF/arm-plt-reloc.s +++ test/ELF/arm-plt-reloc.s @@ -5,7 +5,7 @@ // RUN: ld.lld --hash-style=sysv -shared %t1 %t2 -o %t3 // RUN: llvm-objdump -triple=armv7a-none-linux-gnueabi -d %t3 | FileCheck -check-prefix=DSO %s // RUN: llvm-readobj -s -r %t3 | FileCheck -check-prefix=DSOREL %s -// REQUIRES: arm +// REQUIRES: arm-registered-target // // Test PLT entry generation .syntax unified Index: test/ELF/arm-sbrel32.s =================================================================== --- test/ELF/arm-sbrel32.s +++ test/ELF/arm-sbrel32.s @@ -1,7 +1,7 @@ // RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t // RUN: ld.lld %t -o %t2 2>&1 // RUN: llvm-objdump -d -triple=armv7a-none-linux-gnueabi %t2 | FileCheck %s -// REQUIRES: arm +// REQUIRES: arm-registered-target // Test the R_ARM_SBREL32 relocation which calculates the offset of the Symbol // from the static base. We define the static base to be the address of the Index: test/ELF/arm-static-defines.s =================================================================== --- test/ELF/arm-static-defines.s +++ test/ELF/arm-static-defines.s @@ -1,7 +1,7 @@ // RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t // RUN: ld.lld --no-merge-exidx-entries %t --static -o %t2 2>&1 // RUN: llvm-readobj --symbols %t2 | FileCheck %s -// REQUIRES: arm +// REQUIRES: arm-registered-target // Check that on ARM we don't get a multiply defined symbol for __tls_get_addr // and undefined symbols for references to __exidx_start and __exidx_end Index: test/ELF/arm-target1.s =================================================================== --- test/ELF/arm-target1.s +++ test/ELF/arm-target1.s @@ -1,4 +1,4 @@ -// REQUIRES: arm +// REQUIRES: arm-registered-target // RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t.o // RUN: llvm-readobj -r %t.o | FileCheck %s --check-prefix=RELOC // RUN: ld.lld -shared %t.o -o %t2.so --target1-rel Index: test/ELF/arm-target2.s =================================================================== --- test/ELF/arm-target2.s +++ test/ELF/arm-target2.s @@ -7,7 +7,7 @@ // RUN: llvm-objdump -s -triple=armv7a-none-linux-gnueabi %t3 | FileCheck -check-prefix=CHECK-ABS %s // RUN: ld.lld %t.o --target2=rel -o %t4 2>&1 // RUN: llvm-objdump -s -triple=armv7a-none-linux-gnueabi %t4 | FileCheck -check-prefix=CHECK-REL %s -// REQUIRES: arm +// REQUIRES: arm-registered-target // The R_ARM_TARGET2 is present in .ARM.extab sections. It can be handled as // either R_ARM_ABS32, R_ARM_REL32 or R_ARM_GOT_PREL. For ARM linux the default Index: test/ELF/arm-thumb-blx.s =================================================================== --- test/ELF/arm-thumb-blx.s +++ test/ELF/arm-thumb-blx.s @@ -9,7 +9,7 @@ // RUN: ld.lld --script %t.script %t %ttarget -o %t2 2>&1 // RUN: llvm-objdump -d -triple=thumbv7a-none-linux-gnueabi %t2 | FileCheck -check-prefix=CHECK-THUMB %s // RUN: llvm-objdump -d -triple=armv7a-none-linux-gnueabi %t2 | FileCheck -check-prefix=CHECK-ARM %s -// REQUIRES: arm +// REQUIRES: arm-registered-target // Test BLX instruction is chosen for Thumb BL/BLX instruction and ARM callee // 2 byte nops are used to test the pc-rounding behaviour. As a BLX from a // 2 byte aligned destination is defined as Align(PC,4) + immediate:00 Index: test/ELF/arm-thumb-branch-rangethunk.s =================================================================== --- test/ELF/arm-thumb-branch-rangethunk.s +++ test/ELF/arm-thumb-branch-rangethunk.s @@ -2,7 +2,7 @@ // RUN: llvm-mc -filetype=obj -triple=thumbv7a-none-linux-gnueabi %S/Inputs/far-arm-thumb-abs.s -o %tfar // RUN: ld.lld %t %tfar -o %t2 2>&1 // RUN: llvm-objdump -d -triple=thumbv7a-none-linux-gnueabi %t2 -// REQUIRES: arm +// REQUIRES: arm-registered-target .syntax unified .thumb .section .text, "ax",%progbits Index: test/ELF/arm-thumb-branch.s =================================================================== --- test/ELF/arm-thumb-branch.s +++ test/ELF/arm-thumb-branch.s @@ -7,7 +7,7 @@ // RUN: .callee2 : { *(.callee_high) } } " > %t.script // RUN: ld.lld --script %t.script %t %tfar -o %t2 2>&1 // RUN: llvm-objdump -d -triple=thumbv7a-none-linux-gnueabi %t2 | FileCheck %s -// REQUIRES: arm +// REQUIRES: arm-registered-target .syntax unified .thumb Index: test/ELF/arm-thumb-condbranch-thunk.s =================================================================== --- test/ELF/arm-thumb-condbranch-thunk.s +++ test/ELF/arm-thumb-condbranch-thunk.s @@ -1,4 +1,4 @@ -// REQUIRES: arm +// REQUIRES: arm-registered-target // RUN: llvm-mc -filetype=obj -triple=thumbv7a-none-linux-gnueabi %s -o %t // RUN: ld.lld %t -o %t2 2>&1 // The output file is large, most of it zeroes. We dissassemble only the Index: test/ELF/arm-thumb-interwork-shared.s =================================================================== --- test/ELF/arm-thumb-interwork-shared.s +++ test/ELF/arm-thumb-interwork-shared.s @@ -2,7 +2,7 @@ // RUN: ld.lld %t --shared -o %t.so // RUN: llvm-objdump -d -triple=thumbv7a-none-linux-gnueabi %t.so | FileCheck %s // RUN: llvm-objdump -d -triple=armv7a-none-linux-gnueabi %t.so | FileCheck %s -check-prefix=PLT -// REQUIRES: arm +// REQUIRES: arm-registered-target .syntax unified .global sym1 .global elsewhere Index: test/ELF/arm-thumb-interwork-thunk-range.s =================================================================== --- test/ELF/arm-thumb-interwork-thunk-range.s +++ test/ELF/arm-thumb-interwork-thunk-range.s @@ -1,4 +1,4 @@ -// REQUIRES: arm +// REQUIRES: arm-registered-target // RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t.o // RUN: ld.lld %t.o -o %t -image-base=0x80000000 Index: test/ELF/arm-thumb-interwork-thunk.s =================================================================== --- test/ELF/arm-thumb-interwork-thunk.s +++ test/ELF/arm-thumb-interwork-thunk.s @@ -19,7 +19,7 @@ // RUN: llvm-objdump -d -triple=thumbv7a-none-linux-gnueabi %t4 | FileCheck -check-prefix=CHECK-THUMB -check-prefix=CHECK-PI-PLT-THUMB %s // RUN: llvm-objdump -d -triple=armv7a-none-linux-gnueabi %t4 | FileCheck -check-prefix=CHECK-ARM -check-prefix=CHECK-PI-PLT-ARM %s // RUN: llvm-readobj -s -r %t4 | FileCheck -check-prefix=CHECK-DSO-REL %s -// REQUIRES: arm +// REQUIRES: arm-registered-target // Test ARM Thumb Interworking // The file is linked and checked 3 times to check the following contexts Index: test/ELF/arm-thumb-mix-range-thunk-os.s =================================================================== --- test/ELF/arm-thumb-mix-range-thunk-os.s +++ test/ELF/arm-thumb-mix-range-thunk-os.s @@ -1,4 +1,4 @@ -// REQUIRES: arm +// REQUIRES: arm-registered-target // RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t // RUN: ld.lld %t -o %t2 2>&1 // The output file is large, most of it zeroes. We dissassemble only the Index: test/ELF/arm-thumb-narrow-branch-check.s =================================================================== --- test/ELF/arm-thumb-narrow-branch-check.s +++ test/ELF/arm-thumb-narrow-branch-check.s @@ -7,7 +7,7 @@ // RUN: .text : { *(.text) } } " > %t.script // RUN: ld.lld --script %t.script %t %S/Inputs/arm-thumb-narrow-branch.o -o %t2 2>&1 // RUN: llvm-objdump -d -triple=thumbv7a-none-linux-gnueabi %t2 | FileCheck %s -// REQUIRES: arm +// REQUIRES: arm-registered-target // Test the R_ARM_PC11 relocation which is used with the narrow encoding of B.N // the source of these relocations is a binary file arm-thumb-narrow-branch.o Index: test/ELF/arm-thumb-no-undefined-thunk.s =================================================================== --- test/ELF/arm-thumb-no-undefined-thunk.s +++ test/ELF/arm-thumb-no-undefined-thunk.s @@ -1,7 +1,7 @@ // RUN: llvm-mc -filetype=obj -triple=thumbv7a-none-linux-gnueabi %s -o %t // RUN: ld.lld %t -o %t2 2>&1 // RUN: llvm-objdump -triple=thumbv7a-none-linux-gnueabi -d %t2 | FileCheck %s -// REQUIRES: arm +// REQUIRES: arm-registered-target // Check that no thunks are created for an undefined weak symbol .syntax unified Index: test/ELF/arm-thumb-plt-range-thunk-os.s =================================================================== --- test/ELF/arm-thumb-plt-range-thunk-os.s +++ test/ELF/arm-thumb-plt-range-thunk-os.s @@ -1,4 +1,4 @@ -// REQUIRES: arm +// REQUIRES: arm-registered-target // RUN: llvm-mc -filetype=obj -triple=thumbv7a-none-linux-gnueabi %s -o %t // RUN: ld.lld %t --shared -o %t.so // The output file is large, most of it zeroes. We dissassemble only the Index: test/ELF/arm-thumb-plt-reloc.s =================================================================== --- test/ELF/arm-thumb-plt-reloc.s +++ test/ELF/arm-thumb-plt-reloc.s @@ -6,7 +6,7 @@ // RUN: llvm-objdump -triple=thumbv7a-none-linux-gnueabi -d %t3 | FileCheck -check-prefix=DSOTHUMB %s // RUN: llvm-objdump -triple=armv7a-none-linux-gnueabi -d %t3 | FileCheck -check-prefix=DSOARM %s // RUN: llvm-readobj -s -r %t3 | FileCheck -check-prefix=DSOREL %s -// REQUIRES: arm +// REQUIRES: arm-registered-target // // Test PLT entry generation .syntax unified Index: test/ELF/arm-thumb-range-thunk-os.s =================================================================== --- test/ELF/arm-thumb-range-thunk-os.s +++ test/ELF/arm-thumb-range-thunk-os.s @@ -1,4 +1,4 @@ -// REQUIRES: arm +// REQUIRES: arm-registered-target // RUN: llvm-mc -filetype=obj -triple=thumbv7a-none-linux-gnueabi %s -o %t // RUN: ld.lld %t -o %t2 2>&1 // The output file is large, most of it zeroes. We dissassemble only the Index: test/ELF/arm-thumb-thunk-empty-pass.s =================================================================== --- test/ELF/arm-thumb-thunk-empty-pass.s +++ test/ELF/arm-thumb-thunk-empty-pass.s @@ -1,4 +1,4 @@ -// REQUIRES: arm +// REQUIRES: arm-registered-target // RUN: llvm-mc -filetype=obj -triple=thumbv7a-none-linux-gnueabi %s -o %t // RUN: ld.lld %t -o %t2 2>&1 // RUN: llvm-objdump -d %t2 -start-address=69632 -stop-address=69646 -triple=thumbv7a-linux-gnueabihf | FileCheck -check-prefix=CHECK1 %s Index: test/ELF/arm-thumb-thunk-symbols.s =================================================================== --- test/ELF/arm-thumb-thunk-symbols.s +++ test/ELF/arm-thumb-thunk-symbols.s @@ -3,7 +3,7 @@ // RUN: llvm-readobj --symbols %t2 | FileCheck %s // RUN: ld.lld --shared %t -o %t3 2>&1 // RUN: llvm-readobj --symbols %t3 | FileCheck -check-prefix=CHECK-PI %s -// REQUIRES: arm +// REQUIRES: arm-registered-target // Check that the symbols generated for Thunks have the correct symbol type // of STT_FUNC and the correct value of bit 0 (0 for ARM 1 for Thumb) Index: test/ELF/arm-thumb-undefined-weak.s =================================================================== --- test/ELF/arm-thumb-undefined-weak.s +++ test/ELF/arm-thumb-undefined-weak.s @@ -1,7 +1,7 @@ // RUN: llvm-mc -filetype=obj -triple=thumbv7a-none-linux-gnueabi %s -o %t // RUN: ld.lld %t -o %t2 2>&1 // RUN: llvm-objdump -triple=thumbv7a-none-linux-gnueabi -d %t2 | FileCheck %s -// REQUIRES: arm +// REQUIRES: arm-registered-target // Check that the ARM ABI rules for undefined weak symbols are applied. // Branch instructions are resolved to the next instruction. Relative Index: test/ELF/arm-thunk-edgecase.s =================================================================== --- test/ELF/arm-thunk-edgecase.s +++ test/ELF/arm-thunk-edgecase.s @@ -1,4 +1,4 @@ -// REQUIRES: arm +// REQUIRES: arm-registered-target // RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t.o // RUN: echo "SECTIONS { \ // RUN: .text_armfunc 0x1000 : { *(.text_armfunc) } \ Index: test/ELF/arm-thunk-largesection.s =================================================================== --- test/ELF/arm-thunk-largesection.s +++ test/ELF/arm-thunk-largesection.s @@ -5,7 +5,7 @@ // RUN: llvm-objdump -d -triple=thumbv7a-none-linux-gnueabi -start-address=16850944 -stop-address=16850948 %t2 | FileCheck -check-prefix=CHECK3 %s // RUN: llvm-objdump -d -triple=thumbv7a-none-linux-gnueabi -start-address=33628160 -stop-address=33628164 %t2 | FileCheck -check-prefix=CHECK4 %s // RUN: llvm-objdump -d -triple=thumbv7a-none-linux-gnueabi -start-address=50405364 -stop-address=50405376 %t2 | FileCheck -check-prefix=CHECK5 %s -// REQUIRES: arm +// REQUIRES: arm-registered-target .syntax unified .balign 0x1000 .thumb Index: test/ELF/arm-thunk-linkerscript-dotexpr.s =================================================================== --- test/ELF/arm-thunk-linkerscript-dotexpr.s +++ test/ELF/arm-thunk-linkerscript-dotexpr.s @@ -6,7 +6,7 @@ // RUN: ld.lld --script %t.script %t -o %t2 2>&1 // RUN: llvm-objdump -d %t2 -start-address=148 -stop-address=188 -triple=thumbv7a-linux-gnueabihf | FileCheck -check-prefix=CHECK1 %s // RUN: llvm-objdump -d %t2 -start-address=33554620 -stop-address=33554654 -triple=thumbv7a-linux-gnueabihf | FileCheck -check-prefix=CHECK2 %s -// REQUIRES: arm +// REQUIRES: arm-registered-target // Test that range extension thunks can handle location expressions within // a Section Description .syntax unified Index: test/ELF/arm-thunk-linkerscript-large.s =================================================================== --- test/ELF/arm-thunk-linkerscript-large.s +++ test/ELF/arm-thunk-linkerscript-large.s @@ -1,4 +1,4 @@ -// REQUIRES: arm +// REQUIRES: arm-registered-target // RUN: llvm-mc -filetype=obj -triple=thumbv7a-none-linux-gnueabi %s -o %t // RUN: echo "SECTIONS { \ // RUN: .text 0x100000 : { *(.text) } \ Index: test/ELF/arm-thunk-linkerscript-orphan.s =================================================================== --- test/ELF/arm-thunk-linkerscript-orphan.s +++ test/ELF/arm-thunk-linkerscript-orphan.s @@ -1,4 +1,4 @@ -// REQUIRES: arm +// REQUIRES: arm-registered-target // RUN: llvm-mc -filetype=obj -triple=thumbv7a-none-linux-gnueabi %s -o %t // RUN: echo "SECTIONS { \ // RUN: .text_low 0x100000 : { *(.text_low) } \ Index: test/ELF/arm-thunk-linkerscript-sort.s =================================================================== --- test/ELF/arm-thunk-linkerscript-sort.s +++ test/ELF/arm-thunk-linkerscript-sort.s @@ -1,4 +1,4 @@ -// REQUIRES: arm +// REQUIRES: arm-registered-target // RUN: llvm-mc -filetype=obj -triple=thumbv7a-none-linux-gnueabi %s -o %t // RUN: echo "SECTIONS { \ // RUN: .text 0x100000 : { *(SORT_BY_NAME(.text.*)) } \ Index: test/ELF/arm-thunk-linkerscript.s =================================================================== --- test/ELF/arm-thunk-linkerscript.s +++ test/ELF/arm-thunk-linkerscript.s @@ -6,7 +6,7 @@ // RUN: } " > %t.script // RUN: ld.lld --script %t.script %t -o %t2 2>&1 // RUN: llvm-objdump -d -triple=thumbv7a-none-linux-gnueabi %t2 | FileCheck %s -// REQUIRES: arm +// REQUIRES: arm-registered-target // Simple test that we can support range extension thunks with linker scripts .syntax unified .section .text_low, "ax", %progbits Index: test/ELF/arm-thunk-multipass.s =================================================================== --- test/ELF/arm-thunk-multipass.s +++ test/ELF/arm-thunk-multipass.s @@ -1,4 +1,4 @@ -// REQUIRES: arm +// REQUIRES: arm-registered-target // RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t // RUN: ld.lld %t -o %t2 2>&1 // The output file is large, most of it zeroes. We dissassemble only the Index: test/ELF/arm-thunk-re-add.s =================================================================== --- test/ELF/arm-thunk-re-add.s +++ test/ELF/arm-thunk-re-add.s @@ -1,4 +1,4 @@ -// REQUIRES: arm +// REQUIRES: arm-registered-target // RUN: llvm-mc -filetype=obj -triple=thumbv7a-none-linux-gnueabi %s -o %t // RUN: ld.lld %t --shared -o %t.so // The output file is large, most of it zeroes. We dissassemble only the Index: test/ELF/arm-thunk-toolargesection.s =================================================================== --- test/ELF/arm-thunk-toolargesection.s +++ test/ELF/arm-thunk-toolargesection.s @@ -1,6 +1,6 @@ // RUN: llvm-mc -filetype=obj -triple=thumbv7a-none-linux-gnueabi %s -o %t // RUN: not ld.lld %t -o %t2 2>&1 | FileCheck %s -// REQUIRES: arm +// REQUIRES: arm-registered-target .syntax unified .balign 0x1000 .thumb Index: test/ELF/arm-tls-gd-nonpreemptible.s =================================================================== --- test/ELF/arm-tls-gd-nonpreemptible.s +++ test/ELF/arm-tls-gd-nonpreemptible.s @@ -4,7 +4,7 @@ // RUN: llvm-objdump -s %t2 | FileCheck %s // RUN: ld.lld --hash-style=sysv %t --shared -o %t3.so // RUN: llvm-objdump -s %t3.so | FileCheck -check-prefix=CHECK-SHARED %s -// REQUIRES: arm +// REQUIRES: arm-registered-target // For an executable, we write the module index 1 and the offset into the TLS // directly into the GOT. For a shared library we can only write the offset Index: test/ELF/arm-tls-gd32.s =================================================================== --- test/ELF/arm-tls-gd32.s +++ test/ELF/arm-tls-gd32.s @@ -2,7 +2,7 @@ // RUN: ld.lld --hash-style=sysv %t.o -o %t.so -shared // RUN: llvm-readobj -s -dyn-relocations %t.so | FileCheck --check-prefix=SEC %s // RUN: llvm-objdump -d -triple=armv7a-linux-gnueabi %t.so | FileCheck %s -// REQUIRES: arm +// REQUIRES: arm-registered-target // Test the handling of the global-dynamic TLS model. Dynamic Loader finds // module index R_ARM_TLS_DTPMOD32 and the offset within the module Index: test/ELF/arm-tls-ie32.s =================================================================== --- test/ELF/arm-tls-ie32.s +++ test/ELF/arm-tls-ie32.s @@ -2,7 +2,7 @@ // RUN: ld.lld --hash-style=sysv %t.o -o %t.so -shared // RUN: llvm-readobj -s -dyn-relocations %t.so | FileCheck --check-prefix=SEC %s // RUN: llvm-objdump -d -triple=armv7a-linux-gnueabi %t.so | FileCheck %s -// REQUIRES: arm +// REQUIRES: arm-registered-target // Test the handling of the initial-exec TLS model. Relative location within // static TLS is a run-time constant computed by dynamic loader as a result Index: test/ELF/arm-tls-ldm32.s =================================================================== --- test/ELF/arm-tls-ldm32.s +++ test/ELF/arm-tls-ldm32.s @@ -2,7 +2,7 @@ // RUN: ld.lld --hash-style=sysv %t.o -o %t.so -shared // RUN: llvm-readobj -s -dyn-relocations %t.so | FileCheck --check-prefix=SEC %s // RUN: llvm-objdump -d -triple=armv7a-linux-gnueabi %t.so | FileCheck %s -// REQUIRES: arm +// REQUIRES: arm-registered-target // Test the handling of the local-dynamic TLS model. Dynamic loader finds // module index R_ARM_TLS_DTPMOD32. The offset in the next GOT slot is 0 Index: test/ELF/arm-tls-le32.s =================================================================== --- test/ELF/arm-tls-le32.s +++ test/ELF/arm-tls-le32.s @@ -2,7 +2,7 @@ // RUN: ld.lld %t.o -o %t // RUN: llvm-readobj -s -dyn-relocations %t | FileCheck --check-prefix=SEC %s // RUN: llvm-objdump -d -triple=armv7a-linux-gnueabi %t | FileCheck %s -// REQUIRES: arm +// REQUIRES: arm-registered-target // Test the handling of the local exec TLS model. TLS can be resolved // statically for an application. The code sequences assume a thread pointer Index: test/ELF/arm-tls-norelax-gd-ie.s =================================================================== --- test/ELF/arm-tls-norelax-gd-ie.s +++ test/ELF/arm-tls-norelax-gd-ie.s @@ -3,7 +3,7 @@ // RUN: llvm-mc %s -o %t.o -filetype=obj -triple=armv7a-linux-gnueabi // RUN: ld.lld --hash-style=sysv %t1.so %t.o -o %t // RUN: llvm-readobj -s -dyn-relocations %t | FileCheck %s -// REQUIRES: arm +// REQUIRES: arm-registered-target // This tls global-dynamic sequence is with respect to a preemptible symbol but // is in an application so a relaxation to Initial Exec would normally be Index: test/ELF/arm-tls-norelax-gd-le.s =================================================================== --- test/ELF/arm-tls-norelax-gd-le.s +++ test/ELF/arm-tls-norelax-gd-le.s @@ -3,7 +3,7 @@ // RUN: llvm-mc %s -o %t.o -filetype=obj -triple=armv7a-linux-gnueabi // RUN: ld.lld --hash-style=sysv %t1.so %t.o -o %t // RUN: llvm-objdump -s %t | FileCheck %s -// REQUIRES: arm +// REQUIRES: arm-registered-target // This tls global-dynamic sequence is with respect to a non-preemptible // symbol in an application so a relaxation to Local Exec would normally be Index: test/ELF/arm-tls-norelax-ie-le.s =================================================================== --- test/ELF/arm-tls-norelax-ie-le.s +++ test/ELF/arm-tls-norelax-ie-le.s @@ -3,7 +3,7 @@ // RUN: llvm-mc %s -o %t.o -filetype=obj -triple=armv7a-linux-gnueabi // RUN: ld.lld --hash-style=sysv %t1.so %t.o -o %t // RUN: llvm-objdump -s -triple=armv7a-linux-gnueabi %t | FileCheck %s -// REQUIRES: arm +// REQUIRES: arm-registered-target // This tls Initial Exec sequence is with respect to a non-preemptible symbol // so a relaxation would normally be possible. This would result in an assertion Index: test/ELF/arm-tls-norelax-ld-le.s =================================================================== --- test/ELF/arm-tls-norelax-ld-le.s +++ test/ELF/arm-tls-norelax-ld-le.s @@ -3,7 +3,7 @@ // RUN: llvm-mc %s -o %t.o -filetype=obj -triple=armv7a-linux-gnueabi // RUN: ld.lld --hash-style=sysv %t1.so %t.o -o %t // RUN: llvm-objdump -s %t | FileCheck %s -// REQUIRES: arm +// REQUIRES: arm-registered-target .global __tls_get_addr .text Index: test/ELF/arm-undefined-weak.s =================================================================== --- test/ELF/arm-undefined-weak.s +++ test/ELF/arm-undefined-weak.s @@ -1,7 +1,7 @@ // RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t // RUN: ld.lld %t -o %t2 2>&1 // RUN: llvm-objdump -triple=armv7a-none-linux-gnueabi -d %t2 | FileCheck %s -// REQUIRES: arm +// REQUIRES: arm-registered-target // Check that the ARM ABI rules for undefined weak symbols are applied. // Branch instructions are resolved to the next instruction. Undefined Index: test/ELF/arm-use-r-output.s =================================================================== --- test/ELF/arm-use-r-output.s +++ test/ELF/arm-use-r-output.s @@ -1,4 +1,4 @@ -// REQUIRES: arm +// REQUIRES: arm-registered-target // RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t.o // RUN: ld.lld -r %t.o -o %t2.o // RUN: ld.lld -shared %t2.o -o %t.so Index: test/ELF/as-needed-lazy.s =================================================================== --- test/ELF/as-needed-lazy.s +++ test/ELF/as-needed-lazy.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/as-needed-lazy.s -o %t2.o # RUN: ld.lld %t2.o -o %t2.so -shared Index: test/ELF/as-needed-no-reloc.s =================================================================== --- test/ELF/as-needed-no-reloc.s +++ test/ELF/as-needed-no-reloc.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/shared.s -o %t2.o # RUN: ld.lld -shared %t2.o -o %t2.so # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o Index: test/ELF/as-needed.s =================================================================== --- test/ELF/as-needed.s +++ test/ELF/as-needed.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=i686-unknown-linux %s -o %t.o // RUN: llvm-mc -filetype=obj -triple=i686-unknown-linux %p/Inputs/shared.s -o %t2.o // RUN: llvm-mc -filetype=obj -triple=i686-unknown-linux %p/Inputs/shared2.s -o %t3.o Index: test/ELF/assignment-archive.s =================================================================== --- test/ELF/assignment-archive.s +++ test/ELF/assignment-archive.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %ta.o # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux -o %t.o < /dev/null # RUN: rm -f %tar.a Index: test/ELF/auxiliary.s =================================================================== --- test/ELF/auxiliary.s +++ test/ELF/auxiliary.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: ld.lld %t.o -shared -f aaa --auxiliary bbb -o %t # RUN: llvm-readobj --dynamic-table %t | FileCheck %s Index: test/ELF/avoid-empty-program-headers.s =================================================================== --- test/ELF/avoid-empty-program-headers.s +++ test/ELF/avoid-empty-program-headers.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t // RUN: ld.lld %t -o %tout // RUN: llvm-readobj -program-headers %tout | FileCheck %s Index: test/ELF/bad-archive.s =================================================================== --- test/ELF/bad-archive.s +++ test/ELF/bad-archive.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // Check bad archive error reporting with --whole-archive // and without it. Index: test/ELF/basic-aarch64.s =================================================================== --- test/ELF/basic-aarch64.s +++ test/ELF/basic-aarch64.s @@ -2,7 +2,7 @@ # RUN: ld.lld %t -o %t2 # RUN: llvm-readobj -file-headers -sections -program-headers -symbols %t2 \ # RUN: | FileCheck %s -# REQUIRES: aarch64 +# REQUIRES: aarch64-registered-target # exits with return code 42 on FreeBSD/AArch64 .globl _start Index: test/ELF/basic-avr.s =================================================================== --- test/ELF/basic-avr.s +++ test/ELF/basic-avr.s @@ -1,4 +1,4 @@ -# REQUIRES: avr +# REQUIRES: avr-registered-target # RUN: llvm-mc -filetype=obj -triple=avr-unknown-linux -mcpu=atmega328p %s -o %t.o # RUN: ld.lld %t.o -o %t.exe -Ttext=0 # RUN: llvm-objdump -d %t.exe | FileCheck %s Index: test/ELF/basic-freebsd.s =================================================================== --- test/ELF/basic-freebsd.s +++ test/ELF/basic-freebsd.s @@ -3,7 +3,7 @@ # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-freebsd %s -o %t # RUN: ld.lld %t -o %t2 # RUN: llvm-readobj -file-headers %t2 | FileCheck %s -# REQUIRES: x86 +# REQUIRES: x86-registered-target .globl _start _start: Index: test/ELF/basic-mips.s =================================================================== --- test/ELF/basic-mips.s +++ test/ELF/basic-mips.s @@ -3,7 +3,7 @@ # RUN: llvm-readobj -file-headers -sections -program-headers -symbols %t.exe \ # RUN: | FileCheck %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # Exits with return code 1 on Linux. .globl __start Index: test/ELF/basic-ppc.s =================================================================== --- test/ELF/basic-ppc.s +++ test/ELF/basic-ppc.s @@ -1,7 +1,7 @@ # RUN: llvm-mc -filetype=obj -triple=powerpc-unknown-freebsd %s -o %t # RUN: ld.lld --hash-style=sysv -discard-all -shared %t -o %t2 # RUN: llvm-readobj -file-headers -sections -section-data -program-headers %t2 | FileCheck %s -# REQUIRES: ppc +# REQUIRES: powerpc-registered-target # exits with return code 42 on FreeBSD .text Index: test/ELF/basic-sparcv9.s =================================================================== --- test/ELF/basic-sparcv9.s +++ test/ELF/basic-sparcv9.s @@ -2,7 +2,7 @@ # RUN: ld.lld %t -o %t2 # RUN: llvm-readobj -file-headers -sections -program-headers -symbols %t2 \ # RUN: | FileCheck %s -# REQUIRES: sparc +# REQUIRES: sparc-registered-target # exits with return code 42 on OpenBSD/sparc64 .global _start Index: test/ELF/basic.s =================================================================== --- test/ELF/basic.s +++ test/ELF/basic.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: ld.lld %t -o %t2 Index: test/ELF/basic32.s =================================================================== --- test/ELF/basic32.s +++ test/ELF/basic32.s @@ -1,7 +1,7 @@ # RUN: llvm-mc -filetype=obj -triple=i686-unknown-linux %s -o %t # RUN: ld.lld %t -o %t2 # RUN: llvm-readobj -file-headers -sections -program-headers %t2 | FileCheck %s -# REQUIRES: x86 +# REQUIRES: x86-registered-target # exits with return code 42 on linux .globl _start Index: test/ELF/basic64be.s =================================================================== --- test/ELF/basic64be.s +++ test/ELF/basic64be.s @@ -1,7 +1,7 @@ # RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %s -o %t # RUN: ld.lld -discard-all %t -o %t2 # RUN: llvm-readobj -file-headers -sections -section-data -program-headers %t2 | FileCheck %s -# REQUIRES: ppc +# REQUIRES: powerpc-registered-target # exits with return code 42 on linux .section ".opd","aw" Index: test/ELF/bss-start-common.s =================================================================== --- test/ELF/bss-start-common.s +++ test/ELF/bss-start-common.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: ld.lld %t -o %t2 # RUN: llvm-objdump -t -section-headers %t2 | FileCheck %s Index: test/ELF/bss.s =================================================================== --- test/ELF/bss.s +++ test/ELF/bss.s @@ -1,7 +1,7 @@ // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t // RUN: ld.lld %t -o %t2 // RUN: llvm-readobj -sections %t2 | FileCheck %s -// REQUIRES: x86 +// REQUIRES: x86-registered-target // Test that bss takes no space on disk. Index: test/ELF/build-id.s =================================================================== --- test/ELF/build-id.s +++ test/ELF/build-id.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t Index: test/ELF/chroot.s =================================================================== --- test/ELF/chroot.s +++ test/ELF/chroot.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: rm -rf %t.dir # RUN: mkdir %t.dir # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.dir/chroot.o Index: test/ELF/combrelocs.s =================================================================== --- test/ELF/combrelocs.s +++ test/ELF/combrelocs.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: ld.lld -shared %t.o -o %t.out Index: test/ELF/comdat.s =================================================================== --- test/ELF/comdat.s +++ test/ELF/comdat.s @@ -3,7 +3,7 @@ // RUN: ld.lld -shared %t.o %t.o %t2.o -o %t // RUN: llvm-objdump -d %t | FileCheck %s // RUN: llvm-readobj -s -t %t | FileCheck --check-prefix=READ %s -// REQUIRES: x86 +// REQUIRES: x86-registered-target // Check that we don't crash with --gc-section and that we print a list of // reclaimed sections on stderr. Index: test/ELF/comment-gc.s =================================================================== --- test/ELF/comment-gc.s +++ test/ELF/comment-gc.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # 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/comment-gc.s -o %t2.o # RUN: ld.lld %t.o %t2.o -o %t1 --gc-sections -shared Index: test/ELF/common-gc.s =================================================================== --- test/ELF/common-gc.s +++ test/ELF/common-gc.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t # RUN: ld.lld %t -o %t2 Index: test/ELF/common-gc2.s =================================================================== --- test/ELF/common-gc2.s +++ test/ELF/common-gc2.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t # RUN: ld.lld -gc-sections -export-dynamic %t -o %t1 # RUN: llvm-readobj --dyn-symbols %t1 | FileCheck %s Index: test/ELF/common-gc3.s =================================================================== --- test/ELF/common-gc3.s +++ test/ELF/common-gc3.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: ld.lld %t.o -o %t1 --gc-sections # RUN: llvm-objdump -s %t1 | FileCheck %s Index: test/ELF/common.s =================================================================== --- test/ELF/common.s +++ test/ELF/common.s @@ -2,7 +2,7 @@ // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/common.s -o %t2 // RUN: ld.lld %t %t2 -o %t3 // RUN: llvm-readobj -t -s %t3 | FileCheck %s -// REQUIRES: x86 +// REQUIRES: x86-registered-target // CHECK: Name: .bss // CHECK-NEXT: Type: SHT_NOBITS Index: test/ELF/compress-debug-sections-reloc.s =================================================================== --- test/ELF/compress-debug-sections-reloc.s +++ test/ELF/compress-debug-sections-reloc.s @@ -1,4 +1,4 @@ -# REQUIRES: x86, zlib +# REQUIRES: x86-registered-target, zlib # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %S/Inputs/compress-debug.s -o %t2.o Index: test/ELF/compress-debug-sections.s =================================================================== --- test/ELF/compress-debug-sections.s +++ test/ELF/compress-debug-sections.s @@ -1,4 +1,4 @@ -# REQUIRES: x86, zlib +# REQUIRES: x86-registered-target, zlib # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: ld.lld %t.o -o %t1 --compress-debug-sections=zlib Index: test/ELF/compressed-debug-conflict.s =================================================================== --- test/ELF/compressed-debug-conflict.s +++ test/ELF/compressed-debug-conflict.s @@ -1,4 +1,4 @@ -# REQUIRES: x86, zlib +# REQUIRES: x86-registered-target, zlib # RUN: llvm-mc -filetype=obj -triple i686-linux-gnu -compress-debug-sections=zlib %s -o %t.o # RUN: llvm-readobj -sections %t.o | FileCheck -check-prefix=OBJ %s # RUN: not ld.lld %t.o %t.o -o %tout 2>&1 | FileCheck -check-prefix=ERROR %s Index: test/ELF/compressed-debug-input.s =================================================================== --- test/ELF/compressed-debug-input.s +++ test/ELF/compressed-debug-input.s @@ -1,4 +1,4 @@ -# REQUIRES: zlib, x86 +# REQUIRES: zlib, x86-registered-target # RUN: llvm-mc -compress-debug-sections=zlib -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: llvm-readobj -sections %t | FileCheck -check-prefix=ZLIB %s Index: test/ELF/conflict.s =================================================================== --- test/ELF/conflict.s +++ test/ELF/conflict.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o # RUN: not ld.lld %t1.o %t1.o -o %t2 2>&1 | FileCheck -check-prefix=DEMANGLE %s Index: test/ELF/copy-errors.s =================================================================== --- test/ELF/copy-errors.s +++ test/ELF/copy-errors.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // 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/protected-shared.s -o %t2.o // RUN: ld.lld %t2.o -o %t2.so -shared Index: test/ELF/copy-in-shared.s =================================================================== --- test/ELF/copy-in-shared.s +++ test/ELF/copy-in-shared.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/copy-in-shared.s -o %t1.o // RUN: ld.lld -shared %t1.o -o %t1.so // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t2.o Index: test/ELF/copy-rel-abs.s =================================================================== --- test/ELF/copy-rel-abs.s +++ test/ELF/copy-rel-abs.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/copy-rel-abs.s -o %t1.o // RUN: ld.lld --hash-style=gnu -shared %t1.o -o %t1.so // RUN: llvm-readelf --dyn-symbols %t1.so | FileCheck --check-prefix=SYMS %s Index: test/ELF/copy-rel-large.s =================================================================== --- test/ELF/copy-rel-large.s +++ test/ELF/copy-rel-large.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/copy-rel-large.s -o %t1.o // RUN: ld.lld -shared %t1.o -o %t1.so // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t2.o Index: test/ELF/corrupted-version-reference.s =================================================================== --- test/ELF/corrupted-version-reference.s +++ test/ELF/corrupted-version-reference.s @@ -1,6 +1,6 @@ # RUN: llvm-mc -triple=mips64-unknown-freebsd %s -filetype=obj -o %t.o # RUN: not ld.lld %t.o %S/Inputs/corrupt-version-reference.so -o %t.exe 2>&1 | FileCheck %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # CHECK: error: corrupt input file: version definition index 9 for symbol __cxa_finalize is out of bounds # CHECK: >>> defined in {{.+}}/corrupt-version-reference.so Index: test/ELF/ctors_dtors_priority.s =================================================================== --- test/ELF/ctors_dtors_priority.s +++ test/ELF/ctors_dtors_priority.s @@ -7,7 +7,7 @@ // RUN: %p/Inputs/ctors_dtors_priority3.s -o %t-crtend.o // RUN: ld.lld %t1 %t2 %t-crtend.o %t-crtbegin.o -o %t.exe // RUN: llvm-objdump -s %t.exe | FileCheck %s -// REQUIRES: x86 +// REQUIRES: x86-registered-target .globl _start _start: Index: test/ELF/debug-gc.s =================================================================== --- test/ELF/debug-gc.s +++ test/ELF/debug-gc.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: ld.lld %t.o -o %t1 --gc-sections # RUN: llvm-objdump -s %t1 | FileCheck %s Index: test/ELF/debug-gnu-pubnames.s =================================================================== --- test/ELF/debug-gnu-pubnames.s +++ test/ELF/debug-gnu-pubnames.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: ld.lld %t.o -o %t1.exe Index: test/ELF/default-fill.s =================================================================== --- test/ELF/default-fill.s +++ test/ELF/default-fill.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # Verify that the fill between sections has a default of interrupt instructions # (0xcc on x86/x86_64) for executable sections and zero for other sections. Index: test/ELF/default-output.s =================================================================== --- test/ELF/default-output.s +++ test/ELF/default-output.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # Verify that default output filename is a.out. # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t Index: test/ELF/defsym-dynamic.s =================================================================== --- test/ELF/defsym-dynamic.s +++ test/ELF/defsym-dynamic.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: ld.lld -o %t.so -shared %t.o --defsym=foo2=foo1 # RUN: llvm-readobj --dyn-symbols %t.so | FileCheck %s Index: test/ELF/defsym-reserved-syms.s =================================================================== --- test/ELF/defsym-reserved-syms.s +++ test/ELF/defsym-reserved-syms.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: ld.lld -o %t %t.o --defsym=foo2=etext # RUN: llvm-readobj -t -s %t | FileCheck %s Index: test/ELF/defsym.s =================================================================== --- test/ELF/defsym.s +++ test/ELF/defsym.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: ld.lld -o %t %t.o --defsym=foo2=foo1 # RUN: llvm-readobj -t -s %t | FileCheck %s Index: test/ELF/discard-locals.s =================================================================== --- test/ELF/discard-locals.s +++ test/ELF/discard-locals.s @@ -1,7 +1,7 @@ // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux -save-temp-labels %s -o %t // RUN: ld.lld -discard-locals %t -o %t2 // RUN: llvm-readobj -s -sd -t %t2 | FileCheck %s -// REQUIRES: x86 +// REQUIRES: x86-registered-target .global _start _start: Index: test/ELF/discard-merge-locals.s =================================================================== --- test/ELF/discard-merge-locals.s +++ test/ELF/discard-merge-locals.s @@ -1,7 +1,7 @@ // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t // RUN: ld.lld %t -o %t2 -shared // RUN: llvm-readobj -t %t2 | FileCheck %s -// REQUIRES: x86 +// REQUIRES: x86-registered-target leaq .L.str(%rip), %rdi Index: test/ELF/discard-none.s =================================================================== --- test/ELF/discard-none.s +++ test/ELF/discard-none.s @@ -1,7 +1,7 @@ // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux -save-temp-labels %s -o %t // RUN: ld.lld -discard-none -shared %t -o %t2 // RUN: llvm-readobj -s -sd -t %t2 | FileCheck %s -// REQUIRES: x86 +// REQUIRES: x86-registered-target .text .Lmyvar: Index: test/ELF/driver-access.test =================================================================== --- test/ELF/driver-access.test +++ test/ELF/driver-access.test @@ -1,4 +1,4 @@ -# REQUIRES: x86, shell +# REQUIRES: x86-registered-target, shell # Make sure that LLD works even if the current directory is not writable. # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o Index: test/ELF/driver.test =================================================================== --- test/ELF/driver.test +++ test/ELF/driver.test @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: not ld.lld --unknown1 --unknown2 -m foo /no/such/file -lnosuchlib \ # RUN: 2>&1 | FileCheck -check-prefix=UNKNOWN %s Index: test/ELF/dso-undef-size.s =================================================================== --- test/ELF/dso-undef-size.s +++ test/ELF/dso-undef-size.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %S/Inputs/dso-undef-size.s -o %t1.o # RUN: ld.lld -shared %t1.o -o %t1.so # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t2.o Index: test/ELF/dso_handle.s =================================================================== --- test/ELF/dso_handle.s +++ test/ELF/dso_handle.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: ld.lld -shared %t.o -o %t Index: test/ELF/dt_flags.s =================================================================== --- test/ELF/dt_flags.s +++ test/ELF/dt_flags.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: ld.lld -shared %t -o %t.so Index: test/ELF/dt_tags.s =================================================================== --- test/ELF/dt_tags.s +++ test/ELF/dt_tags.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-freebsd %s -o %t # RUN: ld.lld -shared %t -o %t.so Index: test/ELF/duplicated-plt-entry.s =================================================================== --- test/ELF/duplicated-plt-entry.s +++ test/ELF/duplicated-plt-entry.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/duplicated-plt-entry.s -o %t.o // RUN: ld.lld -shared %t.o -o %t.so Index: test/ELF/dynamic-got-rela.s =================================================================== --- test/ELF/dynamic-got-rela.s +++ test/ELF/dynamic-got-rela.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: ld.lld %t.o -o %t.so -shared --apply-dynamic-relocs // RUN: llvm-readobj -r -s -l -section-data %t.so | FileCheck -check-prefix CHECK -check-prefix APPLYDYNREL %s Index: test/ELF/dynamic-got.s =================================================================== --- test/ELF/dynamic-got.s +++ test/ELF/dynamic-got.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=i386-pc-linux %s -o %t.o // RUN: ld.lld --hash-style=sysv %t.o -o %t.so -shared // RUN: llvm-readobj -s -l -section-data -r %t.so | FileCheck %s Index: test/ELF/dynamic-list-archive.s =================================================================== --- test/ELF/dynamic-list-archive.s +++ test/ELF/dynamic-list-archive.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: rm -f %t.a # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/archive2.s -o %t1.o Index: test/ELF/dynamic-list-empty.s =================================================================== --- test/ELF/dynamic-list-empty.s +++ test/ELF/dynamic-list-empty.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # BFD reports a parse error on empty lists, but it is clear how to # handle it. Index: test/ELF/dynamic-list-extern.s =================================================================== --- test/ELF/dynamic-list-extern.s +++ test/ELF/dynamic-list-extern.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # Test that we can parse multiple externs. Index: test/ELF/dynamic-list-preempt.s =================================================================== --- test/ELF/dynamic-list-preempt.s +++ test/ELF/dynamic-list-preempt.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: echo "{ foo; zed; };" > %t.list Index: test/ELF/dynamic-list-weak-archive.s =================================================================== --- test/ELF/dynamic-list-weak-archive.s +++ test/ELF/dynamic-list-weak-archive.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/dynamic-list-weak-archive.s -o %t2.o Index: test/ELF/dynamic-list-wildcard.s =================================================================== --- test/ELF/dynamic-list-wildcard.s +++ test/ELF/dynamic-list-wildcard.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t Index: test/ELF/dynamic-list.s =================================================================== --- test/ELF/dynamic-list.s +++ test/ELF/dynamic-list.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/shared.s -o %t2.o # RUN: ld.lld --hash-style=sysv -shared %t2.o -soname shared -o %t2.so Index: test/ELF/dynamic-no-rosegment.s =================================================================== --- test/ELF/dynamic-no-rosegment.s +++ test/ELF/dynamic-no-rosegment.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: ld.lld -shared --no-rosegment -z rodynamic -o %t %t.o # RUN: llvm-readobj -dynamic-table -s %t | FileCheck %s Index: test/ELF/dynamic-reloc-in-ro.s =================================================================== --- test/ELF/dynamic-reloc-in-ro.s +++ test/ELF/dynamic-reloc-in-ro.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: not ld.lld %t.o -o %t.so -shared 2>&1 | FileCheck %s Index: test/ELF/dynamic-reloc-weak.s =================================================================== --- test/ELF/dynamic-reloc-weak.s +++ test/ELF/dynamic-reloc-weak.s @@ -3,7 +3,7 @@ // RUN: ld.lld -shared %t2.o -o %t2.so // RUN: ld.lld %t.o %t2.so -o %t // RUN: llvm-readobj -r %t | FileCheck %s -// REQUIRES: x86 +// REQUIRES: x86-registered-target .globl _start _start: Index: test/ELF/dynamic-reloc.s =================================================================== --- test/ELF/dynamic-reloc.s +++ test/ELF/dynamic-reloc.s @@ -4,7 +4,7 @@ // RUN: ld.lld -shared %t2.o -o %t2.so // RUN: ld.lld --hash-style=sysv %t.o %t3.o %t2.so -o %t // RUN: llvm-readobj -dynamic-table -r --expand-relocs -s %t | FileCheck %s -// REQUIRES: x86 +// REQUIRES: x86-registered-target // CHECK: Index: 1 // CHECK-NEXT: Name: .dynsym Index: test/ELF/dynamic.s =================================================================== --- test/ELF/dynamic.s +++ test/ELF/dynamic.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-freebsd %s -o %t.o ## Check that _DYNAMIC symbol is created when creating dynamic output, Index: test/ELF/dynstr-no-rosegment.s =================================================================== --- test/ELF/dynstr-no-rosegment.s +++ test/ELF/dynstr-no-rosegment.s @@ -1,6 +1,6 @@ # Verify that a .dynstr in the .text segment has null byte terminators -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: ld.lld %t.o -no-rosegment -o %t.so -shared # RUN: llvm-objdump %t.so -s -j .dynstr | FileCheck %s Index: test/ELF/dynsym-no-rosegment.s =================================================================== --- test/ELF/dynsym-no-rosegment.s +++ test/ELF/dynsym-no-rosegment.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: ld.lld -shared --no-rosegment -o %t %t.o # RUN: llvm-readobj -dyn-symbols -s %t | FileCheck %s Index: test/ELF/dynsym-pie.s =================================================================== --- test/ELF/dynsym-pie.s +++ test/ELF/dynsym-pie.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t # RUN: ld.lld -pie %t -o %t.out # RUN: llvm-readobj -t -dyn-symbols %t.out | FileCheck %s Index: test/ELF/early-exit-for-bad-paths.s =================================================================== --- test/ELF/early-exit-for-bad-paths.s +++ test/ELF/early-exit-for-bad-paths.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: not ld.lld %t.o -o does_not_exist/output 2>&1 | \ Index: test/ELF/edata-etext.s =================================================================== --- test/ELF/edata-etext.s +++ test/ELF/edata-etext.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: ld.lld %t.o -o %t # RUN: llvm-objdump -t -section-headers %t | FileCheck %s Index: test/ELF/edata-no-bss.s =================================================================== --- test/ELF/edata-no-bss.s +++ test/ELF/edata-no-bss.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: ld.lld %t.o -o %t --gc-sections # RUN: llvm-objdump -t -section-headers %t | FileCheck %s Index: test/ELF/eh-align-cie.s =================================================================== --- test/ELF/eh-align-cie.s +++ test/ELF/eh-align-cie.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target .cfi_startproc .cfi_personality 0x1b, bar Index: test/ELF/eh-frame-begin-end.s =================================================================== --- test/ELF/eh-frame-begin-end.s +++ test/ELF/eh-frame-begin-end.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=amd64-unknown-openbsd %s -o %t.o // RUN: llvm-mc -filetype=obj -triple=amd64-unknown-openbsd %p/Inputs/eh-frame-end.s -o %t2.o // RUN: ld.lld %t.o %t2.o -o %t Index: test/ELF/eh-frame-dyn-rel.s =================================================================== --- test/ELF/eh-frame-dyn-rel.s +++ test/ELF/eh-frame-dyn-rel.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: not ld.lld %t.o %t.o -o %t -shared 2>&1 | FileCheck %s Index: test/ELF/eh-frame-gc.s =================================================================== --- test/ELF/eh-frame-gc.s +++ test/ELF/eh-frame-gc.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=i686-pc-linux %s -o %t.o # RUN: ld.lld -shared --gc-sections %t.o -o %t # RUN: llvm-readobj -s %t | FileCheck %s Index: test/ELF/eh-frame-gc2.s =================================================================== --- test/ELF/eh-frame-gc2.s +++ test/ELF/eh-frame-gc2.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=i686-pc-linux %s -o %t.o // RUN: ld.lld --gc-sections %t.o -o %t // RUN: llvm-readobj -s %t | FileCheck %s Index: test/ELF/eh-frame-hdr-abs-fde.s =================================================================== --- test/ELF/eh-frame-hdr-abs-fde.s +++ test/ELF/eh-frame-hdr-abs-fde.s @@ -6,7 +6,7 @@ # RUN: ld.lld --eh-frame-hdr %t.o -o %t # RUN: llvm-objdump -s -dwarf=frames %t | FileCheck %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # CHECK: Contents of section .eh_frame_hdr: # CHECK-NEXT: 10128 011b033b 00000010 00000001 0000fed8 Index: test/ELF/eh-frame-hdr-augmentation.s =================================================================== --- test/ELF/eh-frame-hdr-augmentation.s +++ test/ELF/eh-frame-hdr-augmentation.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: ld.lld --hash-style=sysv --eh-frame-hdr %t.o -o %t -shared // RUN: llvm-objdump --dwarf=frames %t | FileCheck %s Index: test/ELF/eh-frame-hdr-icf-fde.s =================================================================== --- test/ELF/eh-frame-hdr-icf-fde.s +++ test/ELF/eh-frame-hdr-icf-fde.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target ## Testcase checks that we correctly deduplicate FDEs when ICF ## merges two sections. Index: test/ELF/eh-frame-hdr-icf.s =================================================================== --- test/ELF/eh-frame-hdr-icf.s +++ test/ELF/eh-frame-hdr-icf.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: ld.lld %t -o %t2 --icf=all --eh-frame-hdr Index: test/ELF/eh-frame-hdr-no-out2.s =================================================================== --- test/ELF/eh-frame-hdr-no-out2.s +++ test/ELF/eh-frame-hdr-no-out2.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: ld.lld --eh-frame-hdr %t.o -o %t // RUN: llvm-readobj -s -program-headers %t | FileCheck %s --check-prefix=NOHDR Index: test/ELF/eh-frame-hdr.s =================================================================== --- test/ELF/eh-frame-hdr.s +++ test/ELF/eh-frame-hdr.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: ld.lld %t.o -o %t Index: test/ELF/eh-frame-merge.s =================================================================== --- test/ELF/eh-frame-merge.s +++ test/ELF/eh-frame-merge.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: ld.lld --hash-style=sysv %t.o %t.o -o %t -shared // RUN: llvm-readobj -s -section-data %t | FileCheck %s Index: test/ELF/eh-frame-padding-no-rosegment.s =================================================================== --- test/ELF/eh-frame-padding-no-rosegment.s +++ test/ELF/eh-frame-padding-no-rosegment.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target .cfi_startproc .cfi_personality 0x1b, bar Index: test/ELF/eh-frame-plt.s =================================================================== --- test/ELF/eh-frame-plt.s +++ test/ELF/eh-frame-plt.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/shared.s -o %t.o // RUN: ld.lld %t.o -o %t.so -shared // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t2.o Index: test/ELF/eh-frame-rel.s =================================================================== --- test/ELF/eh-frame-rel.s +++ test/ELF/eh-frame-rel.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=i686-pc-linux %s -o %t.o // RUN: ld.lld %t.o %t.o -o %t -shared // We used to try to read the relocations as RELA and error out Index: test/ELF/eh-frame.s =================================================================== --- test/ELF/eh-frame.s +++ test/ELF/eh-frame.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/eh-frame.s -o %t2.o // RUN: ld.lld %t1.o %t2.o -o %t Index: test/ELF/ehdr_start.s =================================================================== --- test/ELF/ehdr_start.s +++ test/ELF/ehdr_start.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: ld.lld %t.o -o %t Index: test/ELF/ehframe-relocation.s =================================================================== --- test/ELF/ehframe-relocation.s +++ test/ELF/ehframe-relocation.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // 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/ehframe-relocation.s -o %t2.o // RUN: ld.lld %t.o %t2.o -o %t Index: test/ELF/emit-relocs-gc.s =================================================================== --- test/ELF/emit-relocs-gc.s +++ test/ELF/emit-relocs-gc.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o ## Show that we emit .rela.bar and .rela.text when GC is disabled. Index: test/ELF/emit-relocs-merge.s =================================================================== --- test/ELF/emit-relocs-merge.s +++ test/ELF/emit-relocs-merge.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: ld.lld --emit-relocs %t.o -o %t.so -shared # RUN: llvm-readobj -r %t.so | FileCheck %s Index: test/ELF/emit-relocs-mergeable-i386.s =================================================================== --- test/ELF/emit-relocs-mergeable-i386.s +++ test/ELF/emit-relocs-mergeable-i386.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=i686-pc-linux %s -o %t1 # RUN: ld.lld --emit-relocs %t1 -o %t2 # RUN: llvm-readobj -sections -section-data %t2 | FileCheck %s Index: test/ELF/emit-relocs-mergeable.s =================================================================== --- test/ELF/emit-relocs-mergeable.s +++ test/ELF/emit-relocs-mergeable.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1 # RUN: ld.lld --emit-relocs %t1 -o %t2 # RUN: llvm-readobj -sections -section-data -r %t2 | FileCheck %s Index: test/ELF/emit-relocs-shared.s =================================================================== --- test/ELF/emit-relocs-shared.s +++ test/ELF/emit-relocs-shared.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: ld.lld --hash-style=sysv --emit-relocs %t.o -o %t.so -shared # RUN: llvm-readobj -r %t.so | FileCheck %s Index: test/ELF/emit-relocs.s =================================================================== --- test/ELF/emit-relocs.s +++ test/ELF/emit-relocs.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o # RUN: ld.lld --emit-relocs %t1.o -o %t # RUN: llvm-readobj -t -r -s %t | FileCheck %s Index: test/ELF/empty-pt-load.s =================================================================== --- test/ELF/empty-pt-load.s +++ test/ELF/empty-pt-load.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: ld.lld %t.o -o %t.so -shared // RUN: llvm-readobj -l --elf-output-style=GNU %t.so | FileCheck %s Index: test/ELF/empty-ver.s =================================================================== --- test/ELF/empty-ver.s +++ test/ELF/empty-ver.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: mkdir -p %t.dir // RUN: cd %t.dir // RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux Index: test/ELF/emulation.s =================================================================== --- test/ELF/emulation.s +++ test/ELF/emulation.s @@ -354,7 +354,7 @@ # AARCH64-NEXT: Flags [ (0x0) # AARCH64-NEXT: ] -# REQUIRES: x86,ppc,mips,aarch64 +# REQUIRES: x86-registered-target,powerpc-registered-target,mips-registered-target,aarch64-registered-target .globl _start _start: Index: test/ELF/end-abs.s =================================================================== --- test/ELF/end-abs.s +++ test/ELF/end-abs.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: ld.lld %t.o -o %t -pie # RUN: llvm-readobj -r %t | FileCheck %s Index: test/ELF/end-preserve.s =================================================================== --- test/ELF/end-preserve.s +++ test/ELF/end-preserve.s @@ -1,5 +1,5 @@ // Should preserve the value of the "end" symbol if it is defined. -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: ld.lld %t.o -o %t Index: test/ELF/end-update.s =================================================================== --- test/ELF/end-update.s +++ test/ELF/end-update.s @@ -1,5 +1,5 @@ // Should set the value of the "end" symbol if it is undefined. -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: ld.lld %t.o -o %t Index: test/ELF/end.s =================================================================== --- test/ELF/end.s +++ test/ELF/end.s @@ -1,5 +1,5 @@ // Should set the value of the "_end" symbol to the end of the data segment. -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o Index: test/ELF/exclude-libs.s =================================================================== --- test/ELF/exclude-libs.s +++ test/ELF/exclude-libs.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux \ Index: test/ELF/exclude.s =================================================================== --- test/ELF/exclude.s +++ test/ELF/exclude.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: ld.lld -o %t1 %t # RUN: llvm-objdump -section-headers %t1 | FileCheck %s Index: test/ELF/executable-undefined-ignoreall.s =================================================================== --- test/ELF/executable-undefined-ignoreall.s +++ test/ELF/executable-undefined-ignoreall.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: ld.lld %t -o %tout --unresolved-symbols=ignore-all -pie # RUN: llvm-readobj -r %tout | FileCheck %s Index: test/ELF/executable-undefined-protected-ignoreall.s =================================================================== --- test/ELF/executable-undefined-protected-ignoreall.s +++ test/ELF/executable-undefined-protected-ignoreall.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: not ld.lld %t -o %tout --unresolved-symbols=ignore-all -pie 2>&1 | FileCheck %s # CHECK: error: undefined symbol: foo Index: test/ELF/export-dynamic-symbol.s =================================================================== --- test/ELF/export-dynamic-symbol.s +++ test/ELF/export-dynamic-symbol.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: rm -f %t.a # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/archive2.s -o %t1.o Index: test/ELF/fatal-warnings.s =================================================================== --- test/ELF/fatal-warnings.s +++ test/ELF/fatal-warnings.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/warn-common.s -o %t2.o Index: test/ELF/file-access.s =================================================================== --- test/ELF/file-access.s +++ test/ELF/file-access.s @@ -1,4 +1,4 @@ -# REQUIRES: x86, shell +# REQUIRES: x86-registered-target, shell # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: ld.lld -r %t.o -o %t1.o Index: test/ELF/file-sym.s =================================================================== --- test/ELF/file-sym.s +++ test/ELF/file-sym.s @@ -4,7 +4,7 @@ # RUN: ld.lld %t.o -shared -o %t.so # RUN: llvm-readobj -symbols %t.so | FileCheck %s -# REQUIRES: x86 +# REQUIRES: x86-registered-target # CHECK-NOT: Name: xxx Index: test/ELF/fill-trap.s =================================================================== --- test/ELF/fill-trap.s +++ test/ELF/fill-trap.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: ld.lld %t -o %t2 Index: test/ELF/format-binary-non-ascii.s =================================================================== --- test/ELF/format-binary-non-ascii.s +++ test/ELF/format-binary-non-ascii.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t£.o # RUN: ld.lld -o %t.elf %t£.o --format=binary %t£.o Index: test/ELF/format-binary.test =================================================================== --- test/ELF/format-binary.test +++ test/ELF/format-binary.test @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: echo -n "Fluffle Puff" > %t.binary # RUN: ld.lld -m elf_x86_64 -r -b binary %t.binary -o %t.out Index: test/ELF/gc-absolute.s =================================================================== --- test/ELF/gc-absolute.s +++ test/ELF/gc-absolute.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: ld.lld %t -o %t2 -shared --gc-sections Index: test/ELF/gc-collect-undefined.s =================================================================== --- test/ELF/gc-collect-undefined.s +++ test/ELF/gc-collect-undefined.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: ld.lld %t -o %tout --gc-sections -shared # RUN: llvm-nm -D %tout | FileCheck %s Index: test/ELF/gc-sections-alloc.s =================================================================== --- test/ELF/gc-sections-alloc.s +++ test/ELF/gc-sections-alloc.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: ld.lld %t -o %t2 --gc-sections -shared Index: test/ELF/gc-sections-eh.s =================================================================== --- test/ELF/gc-sections-eh.s +++ test/ELF/gc-sections-eh.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t Index: test/ELF/gc-sections-implicit-addend.s =================================================================== --- test/ELF/gc-sections-implicit-addend.s +++ test/ELF/gc-sections-implicit-addend.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=i386-unknown-linux %s -o %t.o # RUN: ld.lld %t.o -o %t --gc-sections Index: test/ELF/gc-sections-keep-shared-start.s =================================================================== --- test/ELF/gc-sections-keep-shared-start.s +++ test/ELF/gc-sections-keep-shared-start.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: ld.lld -shared --gc-sections -o %t1 %t Index: test/ELF/gc-sections-linker-defined-symbol.s =================================================================== --- test/ELF/gc-sections-linker-defined-symbol.s +++ test/ELF/gc-sections-linker-defined-symbol.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: ld.lld %t.o -o %t.so --gc-sections -shared Index: test/ELF/gc-sections-local-sym.s =================================================================== --- test/ELF/gc-sections-local-sym.s +++ test/ELF/gc-sections-local-sym.s @@ -1,7 +1,7 @@ // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t // RUN: ld.lld %t -o %t2 -shared --gc-sections // RUN: llvm-readobj -t -s -section-data %t2 | FileCheck %s -// REQUIRES: x86 +// REQUIRES: x86-registered-target .global foo foo: Index: test/ELF/gc-sections-lsda.s =================================================================== --- test/ELF/gc-sections-lsda.s +++ test/ELF/gc-sections-lsda.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux // RUN: ld.lld -shared --gc-sections %t.o -o %t Index: test/ELF/gc-sections-metadata-startstop.s =================================================================== --- test/ELF/gc-sections-metadata-startstop.s +++ test/ELF/gc-sections-metadata-startstop.s @@ -1,5 +1,5 @@ # LINK_ORDER cnamed sections are not kept alive by the __start_* reference. -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: ld.lld --gc-sections %t.o -o %t Index: test/ELF/gc-sections-metadata.s =================================================================== --- test/ELF/gc-sections-metadata.s +++ test/ELF/gc-sections-metadata.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: ld.lld --gc-sections %t.o -o %t Index: test/ELF/gc-sections-metadata2.s =================================================================== --- test/ELF/gc-sections-metadata2.s +++ test/ELF/gc-sections-metadata2.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: ld.lld --gc-sections %t.o -o %t # RUN: llvm-objdump -section-headers %t | FileCheck %s Index: test/ELF/gc-sections-no-undef-error.s =================================================================== --- test/ELF/gc-sections-no-undef-error.s +++ test/ELF/gc-sections-no-undef-error.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o Index: test/ELF/gc-sections-non-alloc-to-merge.s =================================================================== --- test/ELF/gc-sections-non-alloc-to-merge.s +++ test/ELF/gc-sections-non-alloc-to-merge.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: ld.lld %t.o -o %t --gc-sections Index: test/ELF/gc-sections-print.s =================================================================== --- test/ELF/gc-sections-print.s +++ test/ELF/gc-sections-print.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: ld.lld %t --gc-sections --print-gc-sections -o %t2 2>&1 | FileCheck -check-prefix=PRINT %s Index: test/ELF/gc-sections-shared.s =================================================================== --- test/ELF/gc-sections-shared.s +++ test/ELF/gc-sections-shared.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/shared.s -o %t2.o # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/gc-sections-shared.s -o %t3.o # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/gc-sections-shared2.s -o %t4.o Index: test/ELF/gc-sections-synthetic.s =================================================================== --- test/ELF/gc-sections-synthetic.s +++ test/ELF/gc-sections-synthetic.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # Linker-synthesized sections shouldn't be gc'ed. Index: test/ELF/gc-sections-undefined.s =================================================================== --- test/ELF/gc-sections-undefined.s +++ test/ELF/gc-sections-undefined.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: ld.lld %t -o %t1 --gc-sections --undefined=foo # RUN: llvm-readobj -t %t1 | FileCheck %s Index: test/ELF/gc-sections-weak.s =================================================================== --- test/ELF/gc-sections-weak.s +++ test/ELF/gc-sections-weak.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // 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/gc-sections-weak.s -o %t2.o // RUN: ld.lld %t.o %t2.o -o %t.so -shared --gc-sections Index: test/ELF/gc-sections.s =================================================================== --- test/ELF/gc-sections.s +++ test/ELF/gc-sections.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: ld.lld %t -o %t2 Index: test/ELF/gdb-index-base-addr.s =================================================================== --- test/ELF/gdb-index-base-addr.s +++ test/ELF/gdb-index-base-addr.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o # RUN: ld.lld --gdb-index %t1.o -o %t # RUN: llvm-dwarfdump -gdb-index %t | FileCheck %s Index: test/ELF/gdb-index-dup-types.s =================================================================== --- test/ELF/gdb-index-dup-types.s +++ test/ELF/gdb-index-dup-types.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: ld.lld --gdb-index %t.o -o %t # RUN: llvm-dwarfdump -gdb-index %t | FileCheck %s Index: test/ELF/gdb-index-empty.s =================================================================== --- test/ELF/gdb-index-empty.s +++ test/ELF/gdb-index-empty.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux -o %t %s # RUN: ld.lld --gdb-index --gc-sections -o %t2 %t # RUN: llvm-dwarfdump -gdb-index %t2 | FileCheck %s Index: test/ELF/gdb-index-gc-sections.s =================================================================== --- test/ELF/gdb-index-gc-sections.s +++ test/ELF/gdb-index-gc-sections.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux -o %t %s # RUN: ld.lld --gdb-index --gc-sections -o %t2 %t # RUN: llvm-dwarfdump -gdb-index %t2 | FileCheck %s Index: test/ELF/gdb-index-noranges.s =================================================================== --- test/ELF/gdb-index-noranges.s +++ test/ELF/gdb-index-noranges.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o ## Input is reduced from following code and invocation: Index: test/ELF/gdb-index-ranges.s =================================================================== --- test/ELF/gdb-index-ranges.s +++ test/ELF/gdb-index-ranges.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: ld.lld --gdb-index -e main %t.o -o %t # RUN: llvm-dwarfdump -gdb-index %t | FileCheck %s Index: test/ELF/gdb-index-tls.s =================================================================== --- test/ELF/gdb-index-tls.s +++ test/ELF/gdb-index-tls.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: ld.lld --gdb-index -shared %t.o -o %t Index: test/ELF/gdb-index.s =================================================================== --- test/ELF/gdb-index.s +++ test/ELF/gdb-index.s @@ -1,4 +1,4 @@ -# REQUIRES: x86, zlib +# REQUIRES: x86-registered-target, zlib # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/gdb-index.s -o %t2.o # RUN: ld.lld --gdb-index %t1.o %t2.o -o %t Index: test/ELF/global-offset-table-position-aarch64.s =================================================================== --- test/ELF/global-offset-table-position-aarch64.s +++ test/ELF/global-offset-table-position-aarch64.s @@ -1,7 +1,7 @@ // RUN: llvm-mc -filetype=obj -triple=aarch64-linux-gnu %s -o %t // RUN: ld.lld --hash-style=sysv -shared %t -o %t2 // RUN: llvm-readobj -t %t2 | FileCheck %s -// REQUIRES: aarch64 +// REQUIRES: aarch64-registered-target .globl a .type a,@object .comm a,4,4 Index: test/ELF/global-offset-table-position-arm.s =================================================================== --- test/ELF/global-offset-table-position-arm.s +++ test/ELF/global-offset-table-position-arm.s @@ -1,7 +1,7 @@ // RUN: llvm-mc -filetype=obj -triple=armv7a-linux-gnueabihf %s -o %t // RUN: ld.lld --hash-style=sysv -shared %t -o %t2 // RUN: llvm-readobj -t %t2 | FileCheck %s -// REQUIRES: arm +// REQUIRES: arm-registered-target // The ARM _GLOBAL_OFFSET_TABLE_ should be defined at the start of the .got .globl a Index: test/ELF/global-offset-table-position-i386.s =================================================================== --- test/ELF/global-offset-table-position-i386.s +++ test/ELF/global-offset-table-position-i386.s @@ -1,7 +1,7 @@ // RUN: llvm-mc -filetype=obj -triple=i386-pc-linux %s -o %t // RUN: ld.lld --hash-style=sysv -shared %t -o %t2 // RUN: llvm-readobj -t %t2 | FileCheck %s -// REQUIRES: x86 +// REQUIRES: x86-registered-target // The X86 _GLOBAL_OFFSET_TABLE_ is defined at the end of the .got section. .globl a Index: test/ELF/global-offset-table-position-mips.s =================================================================== --- test/ELF/global-offset-table-position-mips.s +++ test/ELF/global-offset-table-position-mips.s @@ -2,7 +2,7 @@ // RUN: ld.lld -shared %t -o %t2 // RUN: llvm-readobj -t %t2 | FileCheck %s -// REQUIRES: mips +// REQUIRES: mips-registered-target // The Mips _GLOBAL_OFFSET_TABLE_ should be defined at the start of the .got Index: test/ELF/global-offset-table-position.s =================================================================== --- test/ELF/global-offset-table-position.s +++ test/ELF/global-offset-table-position.s @@ -1,7 +1,7 @@ // 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 -// REQUIRES: x86 +// REQUIRES: x86-registered-target // The X86_64 _GLOBAL_OFFSET_TABLE_ is defined at the end of the .got section. .globl a Index: test/ELF/gnu-hash-table-copy.s =================================================================== --- test/ELF/gnu-hash-table-copy.s +++ test/ELF/gnu-hash-table-copy.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: echo ".global foo; .type foo, @object; .size foo, 4; foo:; .long 0" > %t.s # RUN: echo ".global bar; .type bar, @object; .size bar, 4; bar:; .long 0" >> %t.s Index: test/ELF/gnu-hash-table-many.s =================================================================== --- test/ELF/gnu-hash-table-many.s +++ test/ELF/gnu-hash-table-many.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: ld.lld -hash-style=gnu %t.o -o %t.so -shared Index: test/ELF/gnu-hash-table-rwsegment.s =================================================================== --- test/ELF/gnu-hash-table-rwsegment.s +++ test/ELF/gnu-hash-table-rwsegment.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: ld.lld -shared -hash-style=gnu --no-rosegment -o %t.so %t.o Index: test/ELF/gnu-hash-table.s =================================================================== --- test/ELF/gnu-hash-table.s +++ test/ELF/gnu-hash-table.s @@ -1,4 +1,4 @@ -# REQUIRES: x86,ppc +# REQUIRES: x86-registered-target,powerpc-registered-target # RUN: echo ".globl foo; .data; .dc.a foo" > %te.s # RUN: llvm-mc -filetype=obj -triple=i386-pc-linux %te.s -o %te-i386.o Index: test/ELF/gnu-ifunc-dso.s =================================================================== --- test/ELF/gnu-ifunc-dso.s +++ test/ELF/gnu-ifunc-dso.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/gnu-ifunc-dso.s -o %t1.o # RUN: ld.lld -shared %t1.o -o %t.so # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t2.o Index: test/ELF/gnu-ifunc-dynsym.s =================================================================== --- test/ELF/gnu-ifunc-dynsym.s +++ test/ELF/gnu-ifunc-dynsym.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: ld.lld -static -export-dynamic %t.o -o %tout Index: test/ELF/gnu-ifunc-dyntags.s =================================================================== --- test/ELF/gnu-ifunc-dyntags.s +++ test/ELF/gnu-ifunc-dyntags.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: ld.lld -pie %t.o -o %tout # RUN: llvm-objdump -section-headers %tout | FileCheck %s Index: test/ELF/gnu-ifunc-gotpcrel.s =================================================================== --- test/ELF/gnu-ifunc-gotpcrel.s +++ test/ELF/gnu-ifunc-gotpcrel.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/gnu-ifunc-gotpcrel.s -o %t2.o # RUN: ld.lld -shared %t2.o -o %t2.so # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o Index: test/ELF/gnu-ifunc-i386.s =================================================================== --- test/ELF/gnu-ifunc-i386.s +++ test/ELF/gnu-ifunc-i386.s @@ -2,7 +2,7 @@ // RUN: ld.lld -static %t.o -o %tout // RUN: llvm-objdump -d %tout | FileCheck %s --check-prefix=DISASM // RUN: llvm-readobj -r -symbols -sections %tout | FileCheck %s -// REQUIRES: x86 +// REQUIRES: x86-registered-target // CHECK: Sections [ // CHECK: Section { Index: test/ELF/gnu-ifunc-nosym-i386.s =================================================================== --- test/ELF/gnu-ifunc-nosym-i386.s +++ test/ELF/gnu-ifunc-nosym-i386.s @@ -1,7 +1,7 @@ // RUN: llvm-mc -filetype=obj -triple=i686-pc-linux %s -o %t.o // RUN: ld.lld -static %t.o -o %tout // RUN: llvm-readobj -symbols %tout | FileCheck %s -// REQUIRES: x86 +// REQUIRES: x86-registered-target // Check that no __rel_iplt_end/__rel_iplt_start // appear in symtab if there is no references to them. Index: test/ELF/gnu-ifunc-nosym.s =================================================================== --- test/ELF/gnu-ifunc-nosym.s +++ test/ELF/gnu-ifunc-nosym.s @@ -1,7 +1,7 @@ // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: ld.lld -static %t.o -o %tout // RUN: llvm-readobj -symbols %tout | FileCheck %s -// REQUIRES: x86 +// REQUIRES: x86-registered-target // Check that no __rela_iplt_end/__rela_iplt_start // appear in symtab if there is no references to them. Index: test/ELF/gnu-ifunc-plt-i386.s =================================================================== --- test/ELF/gnu-ifunc-plt-i386.s +++ test/ELF/gnu-ifunc-plt-i386.s @@ -5,7 +5,7 @@ // RUN: llvm-objdump -d %tout | FileCheck %s --check-prefix=DISASM // RUN: llvm-objdump -s %tout | FileCheck %s --check-prefix=GOTPLT // RUN: llvm-readobj -r -dynamic-table %tout | FileCheck %s -// REQUIRES: x86 +// REQUIRES: x86-registered-target // Check that the IRELATIVE relocations are after the JUMP_SLOT in the plt // CHECK: Relocations [ Index: test/ELF/gnu-ifunc-plt.s =================================================================== --- test/ELF/gnu-ifunc-plt.s +++ test/ELF/gnu-ifunc-plt.s @@ -5,7 +5,7 @@ // RUN: llvm-objdump -d %tout | FileCheck %s --check-prefix=DISASM // RUN: llvm-objdump -s %tout | FileCheck %s --check-prefix=GOTPLT // RUN: llvm-readobj -r -dynamic-table %tout | FileCheck %s -// REQUIRES: x86 +// REQUIRES: x86-registered-target // Check that the IRELATIVE relocations are after the JUMP_SLOT in the plt // CHECK: Relocations [ Index: test/ELF/gnu-ifunc-relative.s =================================================================== --- test/ELF/gnu-ifunc-relative.s +++ test/ELF/gnu-ifunc-relative.s @@ -1,7 +1,7 @@ // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: ld.lld -static %t.o -o %tout // RUN: llvm-readobj -r -t %tout | FileCheck %s -// REQUIRES: x86 +// REQUIRES: x86-registered-target .type foo STT_GNU_IFUNC .globl foo Index: test/ELF/gnu-ifunc-shared.s =================================================================== --- test/ELF/gnu-ifunc-shared.s +++ test/ELF/gnu-ifunc-shared.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o // RUN: ld.lld --hash-style=sysv --shared -o %t.so %t.o // RUN: llvm-objdump -d %t.so | FileCheck %s --check-prefix=DISASM Index: test/ELF/gnu-ifunc.s =================================================================== --- test/ELF/gnu-ifunc.s +++ test/ELF/gnu-ifunc.s @@ -2,7 +2,7 @@ // RUN: ld.lld -static %t.o -o %tout // RUN: llvm-objdump -d %tout | FileCheck %s --check-prefix=DISASM // RUN: llvm-readobj -r -symbols -sections %tout | FileCheck %s -// REQUIRES: x86 +// REQUIRES: x86-registered-target // CHECK: Sections [ // CHECK: Section { Index: test/ELF/gnu-unique.s =================================================================== --- test/ELF/gnu-unique.s +++ test/ELF/gnu-unique.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t // // RUN: ld.lld %t -shared -o %tout.so Index: test/ELF/gnustack.s =================================================================== --- test/ELF/gnustack.s +++ test/ELF/gnustack.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1 # RUN: ld.lld %t1 -z execstack -o %t # RUN: llvm-readobj --program-headers -s %t | FileCheck --check-prefix=RWX %s Index: test/ELF/got-aarch64.s =================================================================== --- test/ELF/got-aarch64.s +++ test/ELF/got-aarch64.s @@ -2,7 +2,7 @@ // RUN: ld.lld --hash-style=sysv -shared %t.o -o %t.so // RUN: llvm-readobj -s -r %t.so | FileCheck %s // RUN: llvm-objdump -d %t.so | FileCheck --check-prefix=DISASM %s -// REQUIRES: aarch64 +// REQUIRES: aarch64-registered-target // CHECK: Name: .got // CHECK-NEXT: Type: SHT_PROGBITS Index: test/ELF/got-i386.s =================================================================== --- test/ELF/got-i386.s +++ test/ELF/got-i386.s @@ -2,7 +2,7 @@ // RUN: ld.lld %t.o -o %t // RUN: llvm-readobj -s -r -t %t | FileCheck %s // RUN: llvm-objdump -d %t | FileCheck --check-prefix=DISASM %s -// REQUIRES: x86 +// REQUIRES: x86-registered-target // CHECK: Name: .got // CHECK-NEXT: Type: SHT_PROGBITS Index: test/ELF/got.s =================================================================== --- test/ELF/got.s +++ test/ELF/got.s @@ -4,7 +4,7 @@ // RUN: ld.lld --hash-style=sysv %t.o %t2.so -o %t // RUN: llvm-readobj -s -r %t | FileCheck %s // RUN: llvm-objdump -d %t | FileCheck --check-prefix=DISASM %s -// REQUIRES: x86 +// REQUIRES: x86-registered-target // CHECK: Name: .got // CHECK-NEXT: Type: SHT_PROGBITS Index: test/ELF/got32-i386-pie-rw.s =================================================================== --- test/ELF/got32-i386-pie-rw.s +++ test/ELF/got32-i386-pie-rw.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=i686-pc-linux %s -o %t.o # RUN: ld.lld %t.o -o %t -pie # RUN: llvm-readelf -r -s %t | FileCheck %s Index: test/ELF/got32-i386.s =================================================================== --- test/ELF/got32-i386.s +++ test/ELF/got32-i386.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=i686-pc-linux %s -o %t.o # RUN: ld.lld %t.o -o %t # RUN: llvm-objdump -section-headers -d %t | FileCheck %s Index: test/ELF/got32x-i386.s =================================================================== --- test/ELF/got32x-i386.s +++ test/ELF/got32x-i386.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target ## i386-got32x-baseless.elf is a file produced using GNU as v.2.27 ## using following code and command line: Index: test/ELF/gotpc-relax-nopic.s =================================================================== --- test/ELF/gotpc-relax-nopic.s +++ test/ELF/gotpc-relax-nopic.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -relax-relocations -triple=x86_64-unknown-linux %s -o %t.o # RUN: ld.lld --hash-style=sysv %t.o -o %t1 # RUN: llvm-readobj -symbols -r %t1 | FileCheck --check-prefix=SYMRELOC %s Index: test/ELF/gotpc-relax-und-dso.s =================================================================== --- test/ELF/gotpc-relax-und-dso.s +++ test/ELF/gotpc-relax-und-dso.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -relax-relocations -triple=x86_64-unknown-linux %s -o %t.o # RUN: llvm-mc -filetype=obj -relax-relocations -triple=x86_64-pc-linux %S/Inputs/gotpc-relax-und-dso.s -o %tdso.o # RUN: ld.lld -shared %tdso.o -o %t.so Index: test/ELF/gotpc-relax.s =================================================================== --- test/ELF/gotpc-relax.s +++ test/ELF/gotpc-relax.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -relax-relocations -triple=x86_64-unknown-linux %s -o %t.o # RUN: ld.lld %t.o -o %t1 # RUN: llvm-readobj -r %t1 | FileCheck --check-prefix=RELOC %s Index: test/ELF/hidden-shared-err.s =================================================================== --- test/ELF/hidden-shared-err.s +++ test/ELF/hidden-shared-err.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # 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/hidden-shared-err.s -o %t2.o Index: test/ELF/hidden-vis-shared.s =================================================================== --- test/ELF/hidden-vis-shared.s +++ test/ELF/hidden-vis-shared.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // 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/shared.s -o %t2.o Index: test/ELF/i386-debug-noabs.test =================================================================== --- test/ELF/i386-debug-noabs.test +++ test/ELF/i386-debug-noabs.test @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: yaml2obj %s -o %t.o # RUN: ld.lld %t.o -o %t.exe --entry 0 --fatal-warnings Index: test/ELF/i386-got-and-copy.s =================================================================== --- test/ELF/i386-got-and-copy.s +++ test/ELF/i386-got-and-copy.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # If there are two relocations such that the first one requires # dynamic COPY relocation, the second one requires GOT entry Index: test/ELF/i386-gotoff-shared.s =================================================================== --- test/ELF/i386-gotoff-shared.s +++ test/ELF/i386-gotoff-shared.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=i686-pc-linux %s -o %t.o // RUN: ld.lld --hash-style=sysv %t.o -o %t.so -shared // RUN: llvm-readobj -s %t.so | FileCheck %s Index: test/ELF/i386-gotpc-dynamic.s =================================================================== --- test/ELF/i386-gotpc-dynamic.s +++ test/ELF/i386-gotpc-dynamic.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=i686-pc-linux %s -o %t.o # RUN: ld.lld --hash-style=sysv %t.o -o %t.so -shared # RUN: llvm-readobj -s %t.so | FileCheck %s Index: test/ELF/i386-gotpc.s =================================================================== --- test/ELF/i386-gotpc.s +++ test/ELF/i386-gotpc.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=i686-pc-linux %s -o %t.o // RUN: ld.lld --hash-style=sysv %t.o -o %t.so -shared // RUN: llvm-readobj -s %t.so | FileCheck %s Index: test/ELF/i386-merge.s =================================================================== --- test/ELF/i386-merge.s +++ test/ELF/i386-merge.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=i386-pc-linux %s -o %t.o // RUN: ld.lld %t.o -o %t -shared // RUN: llvm-readobj -s -section-data %t | FileCheck %s Index: test/ELF/i386-pc16.test =================================================================== --- test/ELF/i386-pc16.test +++ test/ELF/i386-pc16.test @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: yaml2obj %s -o %t.o # RUN: ld.lld -Ttext 0x0 %t.o -o %t.exe Index: test/ELF/i386-pc8-pc16-addend.s =================================================================== --- test/ELF/i386-pc8-pc16-addend.s +++ test/ELF/i386-pc8-pc16-addend.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=i386-pc-linux-gnu %s -o %t1.o # RUN: ld.lld %t1.o -o %t.out Index: test/ELF/i386-pc8.s =================================================================== --- test/ELF/i386-pc8.s +++ test/ELF/i386-pc8.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=i386-pc-linux-gnu %s -o %t1.o # RUN: ld.lld -Ttext 0x0 %t1.o -o %t.out # RUN: llvm-objdump -s -section=.text %t.out | FileCheck %s Index: test/ELF/i386-relative.s =================================================================== --- test/ELF/i386-relative.s +++ test/ELF/i386-relative.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=i386-pc-linux %s -o %t.o // RUN: ld.lld -shared %t.o -o %t.so // RUN: llvm-readobj -r %t.so | FileCheck %s Index: test/ELF/i386-relax-reloc.s =================================================================== --- test/ELF/i386-relax-reloc.s +++ test/ELF/i386-relax-reloc.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=i686-pc-linux %s -o %t.o -relax-relocations // RUN: ld.lld -shared %t.o -o %t.so // RUN: llvm-objdump -d %t.so | FileCheck %s Index: test/ELF/i386-reloc-16.s =================================================================== --- test/ELF/i386-reloc-16.s +++ test/ELF/i386-reloc-16.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=i386-pc-linux %S/Inputs/x86-64-reloc-16.s -o %t1 // RUN: llvm-mc -filetype=obj -triple=i386-pc-linux %S/Inputs/x86-64-reloc-16-error.s -o %t2 Index: test/ELF/i386-reloc-8.s =================================================================== --- test/ELF/i386-reloc-8.s +++ test/ELF/i386-reloc-8.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=i386-pc-linux %S/Inputs/i386-reloc-8.s -o %t1 // RUN: llvm-mc -filetype=obj -triple=i386-pc-linux %S/Inputs/i386-reloc-8-error.s -o %t2 Index: test/ELF/i386-reloc-large-addend.s =================================================================== --- test/ELF/i386-reloc-large-addend.s +++ test/ELF/i386-reloc-large-addend.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc %s -o %t.o -triple i386-pc-linux-code16 -filetype=obj // RUN: echo ".global foo; foo = 0x1" > %t1.s Index: test/ELF/i386-reloc-range.s =================================================================== --- test/ELF/i386-reloc-range.s +++ test/ELF/i386-reloc-range.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc %s -o %t.o -triple i386-pc-linux-code16 -filetype=obj // RUN: echo ".global foo; foo = 0x10202" > %t1.s Index: test/ELF/i386-reloc8-reloc16-addend.s =================================================================== --- test/ELF/i386-reloc8-reloc16-addend.s +++ test/ELF/i386-reloc8-reloc16-addend.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=i386-pc-linux-gnu %s -o %t1.o # RUN: ld.lld -Ttext=0x0 %t1.o -o %t.out Index: test/ELF/i386-retpoline-nopic.s =================================================================== --- test/ELF/i386-retpoline-nopic.s +++ test/ELF/i386-retpoline-nopic.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=i386-unknown-linux %s -o %t1.o // RUN: llvm-mc -filetype=obj -triple=i386-unknown-linux %p/Inputs/shared.s -o %t2.o // RUN: ld.lld -shared %t2.o -o %t2.so Index: test/ELF/i386-retpoline-pic.s =================================================================== --- test/ELF/i386-retpoline-pic.s +++ test/ELF/i386-retpoline-pic.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=i386-unknown-linux -position-independent %s -o %t1.o // RUN: llvm-mc -filetype=obj -triple=i386-unknown-linux -position-independent %p/Inputs/shared.s -o %t2.o // RUN: ld.lld -shared %t2.o -o %t2.so Index: test/ELF/i386-tls-got.s =================================================================== --- test/ELF/i386-tls-got.s +++ test/ELF/i386-tls-got.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=i386-pc-linux %S/Inputs/i386-tls-got.s -o %t1.o # RUN: ld.lld %t1.o -o %t1.so -shared # RUN: llvm-mc -filetype=obj -triple=i386-pc-linux %s -o %t2.o Index: test/ELF/i386-tls-initial-exec-local.s =================================================================== --- test/ELF/i386-tls-initial-exec-local.s +++ test/ELF/i386-tls-initial-exec-local.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # 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 Index: test/ELF/icf-absolute.s =================================================================== --- test/ELF/icf-absolute.s +++ test/ELF/icf-absolute.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %S/Inputs/icf-absolute.s -o %t2 Index: test/ELF/icf-comdat.s =================================================================== --- test/ELF/icf-comdat.s +++ test/ELF/icf-comdat.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: ld.lld %t -o %t2 --icf=all --print-icf-sections | FileCheck %s Index: test/ELF/icf-i386.s =================================================================== --- test/ELF/icf-i386.s +++ test/ELF/icf-i386.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # This test is to make sure that we can handle implicit addends properly. # RUN: llvm-mc -filetype=obj -triple=i386-unknown-linux %s -o %t Index: test/ELF/icf-merge-sec.s =================================================================== --- test/ELF/icf-merge-sec.s +++ test/ELF/icf-merge-sec.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %S/Inputs/icf-merge-sec.s -o %t2 Index: test/ELF/icf-merge.s =================================================================== --- test/ELF/icf-merge.s +++ test/ELF/icf-merge.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %S/Inputs/icf-merge.s -o %t1 Index: test/ELF/icf-non-mergeable.s =================================================================== --- test/ELF/icf-non-mergeable.s +++ test/ELF/icf-non-mergeable.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // This file contains two functions. They are themselves identical, // but because they have relocations against different data sections, Index: test/ELF/icf-none.s =================================================================== --- test/ELF/icf-none.s +++ test/ELF/icf-none.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: ld.lld %t -o %t2 --icf=all --icf=none --verbose 2>&1 | FileCheck %s Index: test/ELF/icf-symbol-type.s =================================================================== --- test/ELF/icf-symbol-type.s +++ test/ELF/icf-symbol-type.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: ld.lld --hash-style=sysv %t.o -o %t --icf=all -shared Index: test/ELF/icf1.s =================================================================== --- test/ELF/icf1.s +++ test/ELF/icf1.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: ld.lld %t -o %t2 --icf=all --print-icf-sections | FileCheck %s Index: test/ELF/icf2.s =================================================================== --- test/ELF/icf2.s +++ test/ELF/icf2.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/icf2.s -o %t2 Index: test/ELF/icf3.s =================================================================== --- test/ELF/icf3.s +++ test/ELF/icf3.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/icf2.s -o %t2 Index: test/ELF/icf4.s =================================================================== --- test/ELF/icf4.s +++ test/ELF/icf4.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: ld.lld %t -o %t2 --icf=all --verbose 2>&1 | FileCheck %s Index: test/ELF/icf5.s =================================================================== --- test/ELF/icf5.s +++ test/ELF/icf5.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: ld.lld %t -o %t2 --icf=all --verbose 2>&1 | FileCheck %s Index: test/ELF/icf6.s =================================================================== --- test/ELF/icf6.s +++ test/ELF/icf6.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: ld.lld %t -o %t2 --icf=all --verbose 2>&1 | FileCheck %s Index: test/ELF/icf7.s =================================================================== --- test/ELF/icf7.s +++ test/ELF/icf7.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: ld.lld %t -o %t2 --icf=all --print-icf-sections | FileCheck %s Index: test/ELF/icf8.s =================================================================== --- test/ELF/icf8.s +++ test/ELF/icf8.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: ld.lld %t.o -o %t.so --icf=all -shared Index: test/ELF/icf9.s =================================================================== --- test/ELF/icf9.s +++ test/ELF/icf9.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target ### Make sure that we do not merge data. # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t Index: test/ELF/image-base.s =================================================================== --- test/ELF/image-base.s +++ test/ELF/image-base.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: ld.lld -image-base=0x1000000 %t -o %t1 # RUN: llvm-readobj -program-headers %t1 | FileCheck %s Index: test/ELF/incompatible-ar-first.s =================================================================== --- test/ELF/incompatible-ar-first.s +++ test/ELF/incompatible-ar-first.s @@ -8,4 +8,4 @@ // * -m was not used. // CHECK: .a({{.*}}a.o) is incompatible with {{.*}}b.o -// REQUIRES: x86 +// REQUIRES: x86-registered-target Index: test/ELF/incompatible.s =================================================================== --- test/ELF/incompatible.s +++ test/ELF/incompatible.s @@ -56,4 +56,4 @@ .data .long foo -// REQUIRES: x86,aarch64 +// REQUIRES: x86-registered-target,aarch64-registered-target Index: test/ELF/init-fini-progbits.s =================================================================== --- test/ELF/init-fini-progbits.s +++ test/ELF/init-fini-progbits.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t // RUN: ld.lld %t -o %t.exe Index: test/ELF/init-fini.s =================================================================== --- test/ELF/init-fini.s +++ test/ELF/init-fini.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t // Should use "_init" and "_fini" by default when fills dynamic table Index: test/ELF/init_fini_priority.s =================================================================== --- test/ELF/init_fini_priority.s +++ test/ELF/init_fini_priority.s @@ -2,7 +2,7 @@ // RUN: llvm-objdump -section-headers %t | FileCheck %s --check-prefix=OBJ // RUN: ld.lld %t -o %t.exe // RUN: llvm-objdump -s %t.exe | FileCheck %s -// REQUIRES: x86 +// REQUIRES: x86-registered-target // OBJ: 3 .init_array // OBJ-NEXT: 4 .init_array.100 Index: test/ELF/invalid-cie-length.s =================================================================== --- test/ELF/invalid-cie-length.s +++ test/ELF/invalid-cie-length.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t // RUN: not ld.lld %t -o %t2 2>&1 | FileCheck %s Index: test/ELF/invalid-cie-length2.s =================================================================== --- test/ELF/invalid-cie-length2.s +++ test/ELF/invalid-cie-length2.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t // RUN: not ld.lld %t -o %t2 2>&1 | FileCheck %s Index: test/ELF/invalid-cie-length3.s =================================================================== --- test/ELF/invalid-cie-length3.s +++ test/ELF/invalid-cie-length3.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t // RUN: not ld.lld %t -o %t2 2>&1 | FileCheck %s Index: test/ELF/invalid-cie-length4.s =================================================================== --- test/ELF/invalid-cie-length4.s +++ test/ELF/invalid-cie-length4.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t // RUN: not ld.lld %t -o %t2 2>&1 | FileCheck %s Index: test/ELF/invalid-cie-length5.s =================================================================== --- test/ELF/invalid-cie-length5.s +++ test/ELF/invalid-cie-length5.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t // RUN: not ld.lld %t -o %t2 2>&1 | FileCheck %s Index: test/ELF/invalid-cie-reference.s =================================================================== --- test/ELF/invalid-cie-reference.s +++ test/ELF/invalid-cie-reference.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t // RUN: not ld.lld %t -o %t2 2>&1 | FileCheck %s Index: test/ELF/invalid-fde-rel.s =================================================================== --- test/ELF/invalid-fde-rel.s +++ test/ELF/invalid-fde-rel.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t // RUN: ld.lld %t -o %t2 Index: test/ELF/invalid-local-symbol-in-dso.s =================================================================== --- test/ELF/invalid-local-symbol-in-dso.s +++ test/ELF/invalid-local-symbol-in-dso.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # We used to crash on this # RUN: ld.lld %p/Inputs/local-symbol-in-dso.so -o %t 2>&1 | \ Index: test/ELF/invalid-z.s =================================================================== --- test/ELF/invalid-z.s +++ test/ELF/invalid-z.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: not ld.lld %t.o -o %t -z max-page-size 2>&1 | FileCheck %s # CHECK: invalid max-page-size Index: test/ELF/invalid/broken-relaxation-x64.test =================================================================== --- test/ELF/invalid/broken-relaxation-x64.test +++ test/ELF/invalid/broken-relaxation-x64.test @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: yaml2obj %s -o %t.o # RUN: not ld.lld %t.o -o %t.exe 2>&1 | FileCheck --check-prefix=ERR %s Index: test/ELF/invalid/common-symbol-alignment.s =================================================================== --- test/ELF/invalid/common-symbol-alignment.s +++ test/ELF/invalid/common-symbol-alignment.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target ## common-symbol-alignment.elf contains common symbol with zero alignment. # RUN: not ld.lld %S/Inputs/common-symbol-alignment.elf \ Index: test/ELF/invalid/eh-frame-hdr-no-out.s =================================================================== --- test/ELF/invalid/eh-frame-hdr-no-out.s +++ test/ELF/invalid/eh-frame-hdr-no-out.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: not ld.lld --eh-frame-hdr %p/Inputs/cie-version2.elf -o %t >& %t.log // RUN: FileCheck %s < %t.log Index: test/ELF/invalid/executable.s =================================================================== --- test/ELF/invalid/executable.s +++ test/ELF/invalid/executable.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: ld.lld -o %t1.exe %t.o # RUN: not ld.lld -o %t2.exe %t1.exe 2>&1 | FileCheck %s Index: test/ELF/invalid/invalid-debug-relocations.test =================================================================== --- test/ELF/invalid/invalid-debug-relocations.test +++ test/ELF/invalid/invalid-debug-relocations.test @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: yaml2obj %s -o %t.o # RUN: not ld.lld -gdb-index %t.o -o %t.exe 2>&1 | FileCheck %s Index: test/ELF/invalid/invalid-relocation-x64.test =================================================================== --- test/ELF/invalid/invalid-relocation-x64.test +++ test/ELF/invalid/invalid-relocation-x64.test @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: yaml2obj %s -o %t1.o # RUN: echo ".global foo; foo:" > %t2.s # RUN: llvm-mc %t2.s -o %t2.o -filetype=obj -triple x86_64-pc-linux Index: test/ELF/invalid/merge-invalid-size.s =================================================================== --- test/ELF/invalid/merge-invalid-size.s +++ test/ELF/invalid/merge-invalid-size.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux // RUN: not ld.lld %t.o -o %t.so 2>&1 | FileCheck %s // CHECK: SHF_MERGE section size must be a multiple of sh_entsize Index: test/ELF/invalid/symbol-name.s =================================================================== --- test/ELF/invalid/symbol-name.s +++ test/ELF/invalid/symbol-name.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target ## symbol-name-offset.elf contains symbol with invalid (too large) ## st_name value. Index: test/ELF/invalid/tls-symbol.s =================================================================== --- test/ELF/invalid/tls-symbol.s +++ test/ELF/invalid/tls-symbol.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target ## The test file contains an STT_TLS symbol but has no TLS section. # RUN: not ld.lld %S/Inputs/tls-symbol.elf -o %t 2>&1 | FileCheck %s Index: test/ELF/libsearch.s =================================================================== --- test/ELF/libsearch.s +++ test/ELF/libsearch.s @@ -10,7 +10,7 @@ // RUN: cp -f %t.dir/libls.so %t.dir/libls2.so // RUN: rm -f %t.dir/libls.a // RUN: llvm-ar rcs %t.dir/libls.a %tst.o -// REQUIRES: x86 +// REQUIRES: x86-registered-target // Should fail if no library specified // RUN: not ld.lld -l 2>&1 \ Index: test/ELF/linkerscript/absolute-expr.s =================================================================== --- test/ELF/linkerscript/absolute-expr.s +++ test/ELF/linkerscript/absolute-expr.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: echo "SECTIONS { \ # RUN: .text : { \ Index: test/ELF/linkerscript/absolute.s =================================================================== --- test/ELF/linkerscript/absolute.s +++ test/ELF/linkerscript/absolute.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: echo "SECTIONS { foo = ABSOLUTE(.) + 1; };" > %t.script # RUN: ld.lld -o %t --script %t.script %t.o Index: test/ELF/linkerscript/absolute2.s =================================================================== --- test/ELF/linkerscript/absolute2.s +++ test/ELF/linkerscript/absolute2.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: echo "SECTIONS { .text : { *(.text) } foo = ABSOLUTE(_start) + _start; };" > %t.script Index: test/ELF/linkerscript/addr-zero.s =================================================================== --- test/ELF/linkerscript/addr-zero.s +++ test/ELF/linkerscript/addr-zero.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: echo "SECTIONS { foo = ADDR(.text) - ABSOLUTE(ADDR(.text)); };" > %t.script # RUN: ld.lld -o %t.so --script %t.script %t.o -shared Index: test/ELF/linkerscript/addr.s =================================================================== --- test/ELF/linkerscript/addr.s +++ test/ELF/linkerscript/addr.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "SECTIONS { \ # RUN: . = 0x1000; \ Index: test/ELF/linkerscript/align-empty.s =================================================================== --- test/ELF/linkerscript/align-empty.s +++ test/ELF/linkerscript/align-empty.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "SECTIONS { \ Index: test/ELF/linkerscript/align-section-offset.s =================================================================== --- test/ELF/linkerscript/align-section-offset.s +++ test/ELF/linkerscript/align-section-offset.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: echo "SECTIONS { .foo : ALIGN(2M) { *(.foo) } }" > %t.script # RUN: ld.lld -o %t --script %t.script %t.o -shared Index: test/ELF/linkerscript/align-section.s =================================================================== --- test/ELF/linkerscript/align-section.s +++ test/ELF/linkerscript/align-section.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: echo "SECTIONS { .foo : ALIGN(2M) { } }" > %t.script # RUN: ld.lld -o %t --script %t.script %t.o -shared Index: test/ELF/linkerscript/align.s =================================================================== --- test/ELF/linkerscript/align.s +++ test/ELF/linkerscript/align.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t ## Check that ALIGN command workable using location counter Index: test/ELF/linkerscript/alignof.s =================================================================== --- test/ELF/linkerscript/alignof.s +++ test/ELF/linkerscript/alignof.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "SECTIONS { \ Index: test/ELF/linkerscript/alternate-sections.s =================================================================== --- test/ELF/linkerscript/alternate-sections.s +++ test/ELF/linkerscript/alternate-sections.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: echo "SECTIONS { abc : { *(foo) *(bar) *(zed) } }" > %t.script # RUN: ld.lld -o %t --script %t.script %t.o -shared Index: test/ELF/linkerscript/arm-exidx-order.s =================================================================== --- test/ELF/linkerscript/arm-exidx-order.s +++ test/ELF/linkerscript/arm-exidx-order.s @@ -1,4 +1,4 @@ -# REQUIRES: arm +# REQUIRES: arm-registered-target # RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t.o # RUN: echo "SECTIONS { . = SIZEOF_HEADERS; \ # RUN: .ARM.exidx : { *(.ARM.exidx*) } \ Index: test/ELF/linkerscript/arm-exidx-phdrs.s =================================================================== --- test/ELF/linkerscript/arm-exidx-phdrs.s +++ test/ELF/linkerscript/arm-exidx-phdrs.s @@ -1,4 +1,4 @@ -// REQUIRES: arm +// REQUIRES: arm-registered-target // RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t.o // RUN: echo "PHDRS { ph_text PT_LOAD; } \ // RUN: SECTIONS { \ Index: test/ELF/linkerscript/arm-exidx-sentinel-and-assignment.s =================================================================== --- test/ELF/linkerscript/arm-exidx-sentinel-and-assignment.s +++ test/ELF/linkerscript/arm-exidx-sentinel-and-assignment.s @@ -1,4 +1,4 @@ -# REQUIRES: arm +# REQUIRES: arm-registered-target # RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t.o # RUN: echo "SECTIONS { \ # RUN: .ARM.exidx 0x1000 : { *(.ARM.exidx*) foo = .; } \ Index: test/ELF/linkerscript/arm-lscript.s =================================================================== --- test/ELF/linkerscript/arm-lscript.s +++ test/ELF/linkerscript/arm-lscript.s @@ -1,4 +1,4 @@ -// REQUIRES: arm +// REQUIRES: arm-registered-target // RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t.o // RUN: echo "SECTIONS { \ // RUN: .rel.dyn : { } \ Index: test/ELF/linkerscript/assert.s =================================================================== --- test/ELF/linkerscript/assert.s +++ test/ELF/linkerscript/assert.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o # RUN: echo "SECTIONS { ASSERT(1, fail) }" > %t1.script Index: test/ELF/linkerscript/at-addr.s =================================================================== --- test/ELF/linkerscript/at-addr.s +++ test/ELF/linkerscript/at-addr.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "SECTIONS { . = 0x1000; \ # RUN: .aaa : AT(ADDR(.aaa) - 0x500) { *(.aaa) } \ Index: test/ELF/linkerscript/at-self-reference.s =================================================================== --- test/ELF/linkerscript/at-self-reference.s +++ test/ELF/linkerscript/at-self-reference.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "SECTIONS { \ # RUN: . = 0x1000; \ Index: test/ELF/linkerscript/at.s =================================================================== --- test/ELF/linkerscript/at.s +++ test/ELF/linkerscript/at.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "SECTIONS { \ # RUN: . = 0x1000; \ Index: test/ELF/linkerscript/at2.s =================================================================== --- test/ELF/linkerscript/at2.s +++ test/ELF/linkerscript/at2.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "MEMORY { \ # RUN: AX (ax) : ORIGIN = 0x2000, LENGTH = 0x100 \ Index: test/ELF/linkerscript/at3.s =================================================================== --- test/ELF/linkerscript/at3.s +++ test/ELF/linkerscript/at3.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: echo "MEMORY { \ # RUN: FOO (ax) : ORIGIN = 0x1000, LENGTH = 0x100 \ Index: test/ELF/linkerscript/at4.s =================================================================== --- test/ELF/linkerscript/at4.s +++ test/ELF/linkerscript/at4.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "SECTIONS { \ # RUN: . = 0x1000; \ Index: test/ELF/linkerscript/bss-fill.s =================================================================== --- test/ELF/linkerscript/bss-fill.s +++ test/ELF/linkerscript/bss-fill.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: echo "SECTIONS { .bss : { . += 0x10000; *(.bss) } =0xFF };" > %t.script # RUN: ld.lld -o %t --script %t.script %t.o Index: test/ELF/linkerscript/comdat-gc.s =================================================================== --- test/ELF/linkerscript/comdat-gc.s +++ test/ELF/linkerscript/comdat-gc.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/comdat-gc.s -o %t1 Index: test/ELF/linkerscript/common-assign.s =================================================================== --- test/ELF/linkerscript/common-assign.s +++ test/ELF/linkerscript/common-assign.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "SECTIONS { . = SIZEOF_HEADERS; pfoo = foo; pbar = bar; }" > %t.script # RUN: ld.lld -o %t1 --script %t.script %t Index: test/ELF/linkerscript/common-exclude.s =================================================================== --- test/ELF/linkerscript/common-exclude.s +++ test/ELF/linkerscript/common-exclude.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %tfile0.o # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/common-filespec1.s -o %tfile1.o # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/common-filespec2.s -o %tfile2.o Index: test/ELF/linkerscript/common-filespec.s =================================================================== --- test/ELF/linkerscript/common-filespec.s +++ test/ELF/linkerscript/common-filespec.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %tfile0.o # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/common-filespec1.s -o %tfile1.o # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/common-filespec2.s -o %tfile2.o Index: test/ELF/linkerscript/common.s =================================================================== --- test/ELF/linkerscript/common.s +++ test/ELF/linkerscript/common.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "SECTIONS { . = SIZEOF_HEADERS; .common : { *(COMMON) } }" > %t.script # RUN: ld.lld -o %t1 --script %t.script %t Index: test/ELF/linkerscript/compress-debug-sections-custom.s =================================================================== --- test/ELF/linkerscript/compress-debug-sections-custom.s +++ test/ELF/linkerscript/compress-debug-sections-custom.s @@ -1,4 +1,4 @@ -# REQUIRES: x86, zlib +# REQUIRES: x86-registered-target, zlib # RUN: echo "SECTIONS { \ # RUN: .text : { . += 0x10; *(.text) } \ Index: test/ELF/linkerscript/compress-debug-sections.s =================================================================== --- test/ELF/linkerscript/compress-debug-sections.s +++ test/ELF/linkerscript/compress-debug-sections.s @@ -1,4 +1,4 @@ -# REQUIRES: x86, zlib +# REQUIRES: x86-registered-target, zlib # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux \ # RUN: %S/Inputs/compress-debug-sections.s -o %t1.o Index: test/ELF/linkerscript/constructor.s =================================================================== --- test/ELF/linkerscript/constructor.s +++ test/ELF/linkerscript/constructor.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: echo "SECTIONS { foo : { *(.foo) CONSTRUCTORS } }" > %t.script # RUN: ld.lld -o %t1 --script %t.script %t.o Index: test/ELF/linkerscript/copy-rel-symbol-value-err.s =================================================================== --- test/ELF/linkerscript/copy-rel-symbol-value-err.s +++ test/ELF/linkerscript/copy-rel-symbol-value-err.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # 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/copy-rel-symbol-value.s -o %t2.o # RUN: ld.lld %t2.o -o %t2.so -shared Index: test/ELF/linkerscript/copy-rel-symbol-value.s =================================================================== --- test/ELF/linkerscript/copy-rel-symbol-value.s +++ test/ELF/linkerscript/copy-rel-symbol-value.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # 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/copy-rel-symbol-value.s -o %t2.o # RUN: ld.lld %t2.o -o %t2.so -shared Index: test/ELF/linkerscript/data-commands-gc.s =================================================================== --- test/ELF/linkerscript/data-commands-gc.s +++ test/ELF/linkerscript/data-commands-gc.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: echo "SECTIONS { .text : { *(.text*) QUAD(bar) } }" > %t.script # RUN: ld.lld --gc-sections -o %t %t.o --script %t.script Index: test/ELF/linkerscript/data-commands.s =================================================================== --- test/ELF/linkerscript/data-commands.s +++ test/ELF/linkerscript/data-commands.s @@ -1,4 +1,4 @@ -# REQUIRES: x86,mips +# REQUIRES: x86-registered-target,mips-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: echo "SECTIONS \ # RUN: { \ Index: test/ELF/linkerscript/data-segment-relro.s =================================================================== --- test/ELF/linkerscript/data-segment-relro.s +++ test/ELF/linkerscript/data-segment-relro.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.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 Index: test/ELF/linkerscript/define.s =================================================================== --- test/ELF/linkerscript/define.s +++ test/ELF/linkerscript/define.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "SECTIONS \ Index: test/ELF/linkerscript/defsym.s =================================================================== --- test/ELF/linkerscript/defsym.s +++ test/ELF/linkerscript/defsym.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: echo "foo = 0x22;" > %t.script Index: test/ELF/linkerscript/diagnostic.s =================================================================== --- test/ELF/linkerscript/diagnostic.s +++ test/ELF/linkerscript/diagnostic.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t ## Take some valid script with multiline comments Index: test/ELF/linkerscript/discard-print-gc.s =================================================================== --- test/ELF/linkerscript/discard-print-gc.s +++ test/ELF/linkerscript/discard-print-gc.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -triple x86_64-pc-linux %s -o %t.o -filetype=obj # RUN: ld.lld -o %t.so --gc-sections %t.o --print-gc-sections -shared 2>&1 | \ Index: test/ELF/linkerscript/discard-section-err.s =================================================================== --- test/ELF/linkerscript/discard-section-err.s +++ test/ELF/linkerscript/discard-section-err.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o Index: test/ELF/linkerscript/discard-section-metadata.s =================================================================== --- test/ELF/linkerscript/discard-section-metadata.s +++ test/ELF/linkerscript/discard-section-metadata.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "SECTIONS { /DISCARD/ : { *(.foo) } }" > %t.script # RUN: ld.lld -o %t1 --script %t.script %t Index: test/ELF/linkerscript/discard-section.s =================================================================== --- test/ELF/linkerscript/discard-section.s +++ test/ELF/linkerscript/discard-section.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "SECTIONS { /DISCARD/ : { *(.aaa*) } }" > %t.script # RUN: ld.lld -o %t1 --script %t.script %t Index: test/ELF/linkerscript/dot-is-not-abs.s =================================================================== --- test/ELF/linkerscript/dot-is-not-abs.s +++ test/ELF/linkerscript/dot-is-not-abs.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: echo "SECTIONS { .text : { *(.text) } \ Index: test/ELF/linkerscript/double-bss.s =================================================================== --- test/ELF/linkerscript/double-bss.s +++ test/ELF/linkerscript/double-bss.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "SECTIONS { . = SIZEOF_HEADERS; " > %t.script # RUN: echo ".text : { *(.text*) }" >> %t.script Index: test/ELF/linkerscript/dynamic-sym.s =================================================================== --- test/ELF/linkerscript/dynamic-sym.s +++ test/ELF/linkerscript/dynamic-sym.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: echo "_DYNAMIC = 0x123;" > %t.script # RUN: ld.lld -T %t.script %t.o -shared -o %t.so Index: test/ELF/linkerscript/dynamic.s =================================================================== --- test/ELF/linkerscript/dynamic.s +++ test/ELF/linkerscript/dynamic.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.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 Index: test/ELF/linkerscript/early-assign-symbol.s =================================================================== --- test/ELF/linkerscript/early-assign-symbol.s +++ test/ELF/linkerscript/early-assign-symbol.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: echo "SECTIONS { aaa = foo | 1; .text : { *(.text*) } }" > %t3.script Index: test/ELF/linkerscript/edata-etext.s =================================================================== --- test/ELF/linkerscript/edata-etext.s +++ test/ELF/linkerscript/edata-etext.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: echo "SECTIONS { }" > %t.script # RUN: not ld.lld %t.o -script %t.script -o %t 2>&1 | FileCheck %s Index: test/ELF/linkerscript/eh-frame-hdr.s =================================================================== --- test/ELF/linkerscript/eh-frame-hdr.s +++ test/ELF/linkerscript/eh-frame-hdr.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "SECTIONS { \ # RUN: .eh_frame_hdr : {} \ Index: test/ELF/linkerscript/eh-frame-reloc-out-of-range.s =================================================================== --- test/ELF/linkerscript/eh-frame-reloc-out-of-range.s +++ test/ELF/linkerscript/eh-frame-reloc-out-of-range.s @@ -1,7 +1,7 @@ ## Check that error is correctly reported when .eh_frame reloc ## is out of range -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: echo "PHDRS { eh PT_LOAD; text PT_LOAD; } \ # RUN: SECTIONS { . = 0x10000; \ Index: test/ELF/linkerscript/eh-frame.s =================================================================== --- test/ELF/linkerscript/eh-frame.s +++ test/ELF/linkerscript/eh-frame.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "SECTIONS { \ # RUN: .eh_frame : { *(.eh_frame) } \ Index: test/ELF/linkerscript/ehdr_start.s =================================================================== --- test/ELF/linkerscript/ehdr_start.s +++ test/ELF/linkerscript/ehdr_start.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: echo "SECTIONS { }" > %t.script Index: test/ELF/linkerscript/emit-reloc-section-names.s =================================================================== --- test/ELF/linkerscript/emit-reloc-section-names.s +++ test/ELF/linkerscript/emit-reloc-section-names.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: echo "SECTIONS { .text.zed : { *(.text.foo) } \ # RUN: .text.qux : { *(.text.bar) } }" > %t.script Index: test/ELF/linkerscript/emit-reloc.s =================================================================== --- test/ELF/linkerscript/emit-reloc.s +++ test/ELF/linkerscript/emit-reloc.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: echo "SECTIONS { .rela.dyn : { *(.rela.data) } }" > %t.script # RUN: ld.lld --hash-style=sysv -T %t.script --emit-relocs %t.o -o %t.so -shared Index: test/ELF/linkerscript/emit-relocs-discard.s =================================================================== --- test/ELF/linkerscript/emit-relocs-discard.s +++ test/ELF/linkerscript/emit-relocs-discard.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: echo "SECTIONS { /DISCARD/ : { *(.bbb) } }" > %t.script # RUN: ld.lld --emit-relocs --script %t.script %t.o -o %t1 Index: test/ELF/linkerscript/emit-relocs-ehframe-discard.s =================================================================== --- test/ELF/linkerscript/emit-relocs-ehframe-discard.s +++ test/ELF/linkerscript/emit-relocs-ehframe-discard.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o # RUN: echo "SECTIONS { /DISCARD/ : { *(.eh_frame) } }" > %t.script # RUN: ld.lld --emit-relocs --script %t.script %t1.o -o %t Index: test/ELF/linkerscript/emit-relocs-multiple.s =================================================================== --- test/ELF/linkerscript/emit-relocs-multiple.s +++ test/ELF/linkerscript/emit-relocs-multiple.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: echo "SECTIONS { .zed : { *(.foo) *(.bar) } }" > %t.script # RUN: ld.lld --emit-relocs --script %t.script %t.o -o %t1 Index: test/ELF/linkerscript/empty-load.s =================================================================== --- test/ELF/linkerscript/empty-load.s +++ test/ELF/linkerscript/empty-load.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "SECTIONS { .rw : { *(.rw) } .text : { *(.text) } }" > %t.script # RUN: ld.lld -o %t1 --script %t.script %t Index: test/ELF/linkerscript/empty-tls.s =================================================================== --- test/ELF/linkerscript/empty-tls.s +++ test/ELF/linkerscript/empty-tls.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: echo "PHDRS { ph_tls PT_TLS; }" > %t.script // RUN: ld.lld -o %t.so -T %t.script %t.o -shared Index: test/ELF/linkerscript/entry.s =================================================================== --- test/ELF/linkerscript/entry.s +++ test/ELF/linkerscript/entry.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t Index: test/ELF/linkerscript/exclude-multiple.s =================================================================== --- test/ELF/linkerscript/exclude-multiple.s +++ test/ELF/linkerscript/exclude-multiple.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %tfile1.o # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/exclude-multiple1.s -o %tfile2.o # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/exclude-multiple2.s -o %tfile3.o Index: test/ELF/linkerscript/excludefile.s =================================================================== --- test/ELF/linkerscript/excludefile.s +++ test/ELF/linkerscript/excludefile.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux \ # RUN: %p/Inputs/include.s -o %t2 Index: test/ELF/linkerscript/exidx-crash.s =================================================================== --- test/ELF/linkerscript/exidx-crash.s +++ test/ELF/linkerscript/exidx-crash.s @@ -1,4 +1,4 @@ -# REQUIRES: aarch64 +# REQUIRES: aarch64-registered-target # We used to crash on this. Index: test/ELF/linkerscript/expr-invalid-sec.s =================================================================== --- test/ELF/linkerscript/expr-invalid-sec.s +++ test/ELF/linkerscript/expr-invalid-sec.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: echo "SECTIONS { foo = ADDR(.text) + ADDR(.text); };" > %t.script # RUN: not ld.lld -o %t.so --script %t.script %t.o -shared 2>&1 | FileCheck %s Index: test/ELF/linkerscript/expr-sections.s =================================================================== --- test/ELF/linkerscript/expr-sections.s +++ test/ELF/linkerscript/expr-sections.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: echo "SECTIONS { \ # RUN: . = . + 4; \ Index: test/ELF/linkerscript/extend-pt-load.s =================================================================== --- test/ELF/linkerscript/extend-pt-load.s +++ test/ELF/linkerscript/extend-pt-load.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # This test demonstrates an odd consequence of the way we handle sections with just symbol Index: test/ELF/linkerscript/filename-spec.s =================================================================== --- test/ELF/linkerscript/filename-spec.s +++ test/ELF/linkerscript/filename-spec.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %tfirst.o # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux \ # RUN: %p/Inputs/filename-spec.s -o %tsecond.o Index: test/ELF/linkerscript/fill-exec-sections.s =================================================================== --- test/ELF/linkerscript/fill-exec-sections.s +++ test/ELF/linkerscript/fill-exec-sections.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t ## Check that padding of executable sections are filled with trap bytes if not Index: test/ELF/linkerscript/fill.s =================================================================== --- test/ELF/linkerscript/fill.s +++ test/ELF/linkerscript/fill.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: echo "SECTIONS { \ # RUN: .out : { \ Index: test/ELF/linkerscript/got-write-offset.s =================================================================== --- test/ELF/linkerscript/got-write-offset.s +++ test/ELF/linkerscript/got-write-offset.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=i686-unknown-linux-gnu %s -o %t # RUN: echo "SECTIONS { \ # RUN: .data 0x1000 : { *(.data) } \ Index: test/ELF/linkerscript/group.s =================================================================== --- test/ELF/linkerscript/group.s +++ test/ELF/linkerscript/group.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: mkdir -p %t.dir # RUN: rm -f %t.dir/libxyz.a Index: test/ELF/linkerscript/header-addr.s =================================================================== --- test/ELF/linkerscript/header-addr.s +++ test/ELF/linkerscript/header-addr.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: echo "PHDRS {all PT_LOAD PHDRS;} \ # RUN: SECTIONS { \ Index: test/ELF/linkerscript/header-phdr.s =================================================================== --- test/ELF/linkerscript/header-phdr.s +++ test/ELF/linkerscript/header-phdr.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: echo "PHDRS { foobar PT_LOAD FILEHDR PHDRS; } \ # RUN: SECTIONS { . = 0x1000; .abc : { *(.zed) } : foobar }" > %t.script Index: test/ELF/linkerscript/huge-temporary-file.s =================================================================== --- test/ELF/linkerscript/huge-temporary-file.s +++ test/ELF/linkerscript/huge-temporary-file.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "SECTIONS { .text 0x2000 : {. = 0x10 ; *(.text) } }" > %t.script # RUN: not ld.lld %t --script %t.script -o %t1 Index: test/ELF/linkerscript/image-base.s =================================================================== --- test/ELF/linkerscript/image-base.s +++ test/ELF/linkerscript/image-base.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: echo "SECTIONS { mysym = .; }" > %t.script Index: test/ELF/linkerscript/implicit-program-header.s =================================================================== --- test/ELF/linkerscript/implicit-program-header.s +++ test/ELF/linkerscript/implicit-program-header.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: ld.lld --hash-style=sysv -o %t1 --script %S/Inputs/implicit-program-header.script \ # RUN: %t.o -shared Index: test/ELF/linkerscript/include-cycle.s =================================================================== --- test/ELF/linkerscript/include-cycle.s +++ test/ELF/linkerscript/include-cycle.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: echo "INCLUDE \"%t1.script\"" > %t1.script Index: test/ELF/linkerscript/info-section-type.s =================================================================== --- test/ELF/linkerscript/info-section-type.s +++ test/ELF/linkerscript/info-section-type.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o ## In this test we check that output section types such as Index: test/ELF/linkerscript/input-order.s =================================================================== --- test/ELF/linkerscript/input-order.s +++ test/ELF/linkerscript/input-order.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # This test case should place input sections in script order: Index: test/ELF/linkerscript/input-sec-dup.s =================================================================== --- test/ELF/linkerscript/input-sec-dup.s +++ test/ELF/linkerscript/input-sec-dup.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "SECTIONS {.foo : { *(.foo) *(.foo) } }" > %t.script Index: test/ELF/linkerscript/lazy-symbols.s =================================================================== --- test/ELF/linkerscript/lazy-symbols.s +++ test/ELF/linkerscript/lazy-symbols.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %S/Inputs/lazy-symbols.s -o %t1 # RUN: llvm-ar rcs %tar %t1 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t2 Index: test/ELF/linkerscript/linker-script-in-search-path.s =================================================================== --- test/ELF/linkerscript/linker-script-in-search-path.s +++ test/ELF/linkerscript/linker-script-in-search-path.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # Check that we fall back to search paths if a linker script was not found # This behaviour matches ld.bfd and various projects appear to rely on this Index: test/ELF/linkerscript/linkerscript.s =================================================================== --- test/ELF/linkerscript/linkerscript.s +++ test/ELF/linkerscript/linkerscript.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux \ # RUN: %p/Inputs/libsearch-st.s -o %t2.o Index: test/ELF/linkerscript/loadaddr.s =================================================================== --- test/ELF/linkerscript/loadaddr.s +++ test/ELF/linkerscript/loadaddr.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "SECTIONS { \ # RUN: . = 0x1000; \ Index: test/ELF/linkerscript/locationcountererr.s =================================================================== --- test/ELF/linkerscript/locationcountererr.s +++ test/ELF/linkerscript/locationcountererr.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "SECTIONS {" > %t.script Index: test/ELF/linkerscript/locationcountererr2.s =================================================================== --- test/ELF/linkerscript/locationcountererr2.s +++ test/ELF/linkerscript/locationcountererr2.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: echo "SECTIONS {" > %t.script # RUN: echo ". = 0x20; . = 0x10; .text : {} }" >> %t.script Index: test/ELF/linkerscript/memory-at.s =================================================================== --- test/ELF/linkerscript/memory-at.s +++ test/ELF/linkerscript/memory-at.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "MEMORY { \ # RUN: FLASH (rx) : ORIGIN = 0x1000, LENGTH = 0x100 \ Index: test/ELF/linkerscript/memory-err.s =================================================================== --- test/ELF/linkerscript/memory-err.s +++ test/ELF/linkerscript/memory-err.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "MEMORY { name : ORIGIN = DATA_SEGMENT_RELRO_END; }" > %t.script # RUN: not ld.lld -shared -o %t2 --script %t.script %t 2>&1 | FileCheck %s Index: test/ELF/linkerscript/memory.s =================================================================== --- test/ELF/linkerscript/memory.s +++ test/ELF/linkerscript/memory.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t ## Check simple RAM-only memory region. Index: test/ELF/linkerscript/memory2.s =================================================================== --- test/ELF/linkerscript/memory2.s +++ test/ELF/linkerscript/memory2.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "MEMORY { ram (rwx) : ORIGIN = 0, LENGTH = 2K } \ # RUN: SECTIONS { .text : { *(.text*) } > ram }" > %t.script Index: test/ELF/linkerscript/memory3.s =================================================================== --- test/ELF/linkerscript/memory3.s +++ test/ELF/linkerscript/memory3.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "MEMORY { ram2 (ax) : ORIGIN = 0x1000, LENGTH = 1K \ # RUN: ram1 (ax) : ORIGIN = 0x4000, LENGTH = 1K } \ Index: test/ELF/linkerscript/merge-header-load.s =================================================================== --- test/ELF/linkerscript/merge-header-load.s +++ test/ELF/linkerscript/merge-header-load.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: echo "SECTIONS { \ # RUN: . = 0xffffffff80000200; \ Index: test/ELF/linkerscript/merge-sections-reloc.s =================================================================== --- test/ELF/linkerscript/merge-sections-reloc.s +++ test/ELF/linkerscript/merge-sections-reloc.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/merge-sections-reloc.s -o %t1.o # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t2.o # RUN: echo "SECTIONS {}" > %t.script Index: test/ELF/linkerscript/merge-sections-syms.s =================================================================== --- test/ELF/linkerscript/merge-sections-syms.s +++ test/ELF/linkerscript/merge-sections-syms.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: echo "SECTIONS { \ Index: test/ELF/linkerscript/merge-sections.s =================================================================== --- test/ELF/linkerscript/merge-sections.s +++ test/ELF/linkerscript/merge-sections.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "SECTIONS { \ Index: test/ELF/linkerscript/multi-sections-constraint.s =================================================================== --- test/ELF/linkerscript/multi-sections-constraint.s +++ test/ELF/linkerscript/multi-sections-constraint.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "SECTIONS { \ # RUN: .text : { *(.text) } \ Index: test/ELF/linkerscript/multiple-tbss.s =================================================================== --- test/ELF/linkerscript/multiple-tbss.s +++ test/ELF/linkerscript/multiple-tbss.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: echo "SECTIONS { }" > %t.script # RUN: ld.lld -T %t.script %t.o -o %t Index: test/ELF/linkerscript/no-pt-load.s =================================================================== --- test/ELF/linkerscript/no-pt-load.s +++ test/ELF/linkerscript/no-pt-load.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: echo "PHDRS {foo PT_DYNAMIC ;} " \ # RUN: "SECTIONS { .text : { *(.text) } : foo }" > %t.script Index: test/ELF/linkerscript/no-space.s =================================================================== --- test/ELF/linkerscript/no-space.s +++ test/ELF/linkerscript/no-space.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: echo "SECTIONS {foo 0 : {*(foo*)} }" > %t.script Index: test/ELF/linkerscript/nobits-offset.s =================================================================== --- test/ELF/linkerscript/nobits-offset.s +++ test/ELF/linkerscript/nobits-offset.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: echo "SECTIONS { \ # RUN: .sec1 (NOLOAD) : { . += 1; } \ Index: test/ELF/linkerscript/noload.s =================================================================== --- test/ELF/linkerscript/noload.s +++ test/ELF/linkerscript/noload.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: echo "SECTIONS { \ # RUN: .data_noload_a (NOLOAD) : { *(.data_noload_a) } \ Index: test/ELF/linkerscript/non-absolute.s =================================================================== --- test/ELF/linkerscript/non-absolute.s +++ test/ELF/linkerscript/non-absolute.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o # RUN: echo "SECTIONS { A = . - 0x10; B = A + 0x1; }" > %t.script # RUN: ld.lld -shared %t1.o --script %t.script -o %t Index: test/ELF/linkerscript/non-absolute2.s =================================================================== --- test/ELF/linkerscript/non-absolute2.s +++ test/ELF/linkerscript/non-absolute2.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o # RUN: echo "SECTIONS { A = . + 0x1; . += 0x1000; }" > %t.script # RUN: ld.lld -shared %t1.o --script %t.script -o %t Index: test/ELF/linkerscript/non-alloc-segment.s =================================================================== --- test/ELF/linkerscript/non-alloc-segment.s +++ test/ELF/linkerscript/non-alloc-segment.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o ################################################################################ Index: test/ELF/linkerscript/non-alloc.s =================================================================== --- test/ELF/linkerscript/non-alloc.s +++ test/ELF/linkerscript/non-alloc.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t # RUN: echo "SECTIONS { .foo 0 : {*(foo)} }" > %t.script Index: test/ELF/linkerscript/numbers.s =================================================================== --- test/ELF/linkerscript/numbers.s +++ test/ELF/linkerscript/numbers.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "SECTIONS { \ # RUN: . = 1000h; \ Index: test/ELF/linkerscript/obj-symbol-value.s =================================================================== --- test/ELF/linkerscript/obj-symbol-value.s +++ test/ELF/linkerscript/obj-symbol-value.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: echo "SECTIONS { foo = bar; .bar : { *(.bar*) } }" > %t.script # RUN: ld.lld %t.o --script %t.script -o %t.so -shared Index: test/ELF/linkerscript/operators.s =================================================================== --- test/ELF/linkerscript/operators.s +++ test/ELF/linkerscript/operators.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "SECTIONS { \ # RUN: _start = .; \ Index: test/ELF/linkerscript/orphan-align.s =================================================================== --- test/ELF/linkerscript/orphan-align.s +++ test/ELF/linkerscript/orphan-align.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: echo "SECTIONS { \ # RUN: . = SIZEOF_HEADERS; \ Index: test/ELF/linkerscript/orphan-discard.s =================================================================== --- test/ELF/linkerscript/orphan-discard.s +++ test/ELF/linkerscript/orphan-discard.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -position-independent -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: echo "SECTIONS { \ # RUN: . = 0xffffffff80000000; \ Index: test/ELF/linkerscript/orphan-end.s =================================================================== --- test/ELF/linkerscript/orphan-end.s +++ test/ELF/linkerscript/orphan-end.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # Test that .orphan_rx is placed after __stack_end. This matches bfd's Index: test/ELF/linkerscript/orphan-first-cmd.s =================================================================== --- test/ELF/linkerscript/orphan-first-cmd.s +++ test/ELF/linkerscript/orphan-first-cmd.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: echo "SECTIONS { \ # RUN: foo = 123; \ Index: test/ELF/linkerscript/orphan-phdrs.s =================================================================== --- test/ELF/linkerscript/orphan-phdrs.s +++ test/ELF/linkerscript/orphan-phdrs.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: echo "PHDRS { \ # RUN: exec PT_LOAD FLAGS(0x4 | 0x1); \ Index: test/ELF/linkerscript/orphan-report.s =================================================================== --- test/ELF/linkerscript/orphan-report.s +++ test/ELF/linkerscript/orphan-report.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: echo "SECTIONS { .text : { *(.text.1) } }" > %t.script Index: test/ELF/linkerscript/orphan.s =================================================================== --- test/ELF/linkerscript/orphan.s +++ test/ELF/linkerscript/orphan.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "SECTIONS { \ # RUN: .text : { *(.text) } \ Index: test/ELF/linkerscript/orphans.s =================================================================== --- test/ELF/linkerscript/orphans.s +++ test/ELF/linkerscript/orphans.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "SECTIONS { .writable : { *(.writable) } }" > %t.script Index: test/ELF/linkerscript/ouputformat.s =================================================================== --- test/ELF/linkerscript/ouputformat.s +++ test/ELF/linkerscript/ouputformat.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: echo "OUTPUT_FORMAT(x, y, z)" > %t.script # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-freebsd %s -o %t1 # RUN: ld.lld -shared -o %t2 %t1 %t.script Index: test/ELF/linkerscript/out-of-order.s =================================================================== --- test/ELF/linkerscript/out-of-order.s +++ test/ELF/linkerscript/out-of-order.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-linux %s -o %t.o # RUN: echo "SECTIONS { .data 0x4000 : { *(.data) } .text 0x2000 : { *(.text) } }" > %t.script # RUN: ld.lld --hash-style=sysv -o %t.so --script %t.script %t.o -shared Index: test/ELF/linkerscript/output-too-large.s =================================================================== --- test/ELF/linkerscript/output-too-large.s +++ test/ELF/linkerscript/output-too-large.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=i686-unknown-linux %s -o %t.o # RUN: echo "SECTIONS { .text : { . = 0xffffffff; *(.text*); } }" > %t.script # RUN: not ld.lld --script %t.script %t.o -o %t 2>&1 | FileCheck %s Index: test/ELF/linkerscript/outputarch.s =================================================================== --- test/ELF/linkerscript/outputarch.s +++ test/ELF/linkerscript/outputarch.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: echo "OUTPUT_ARCH(All data written here is ignored)" > %t.script # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-freebsd %s -o %t1 # RUN: ld.lld -shared -o %t2 %t1 %t.script Index: test/ELF/linkerscript/outsections-addr.s =================================================================== --- test/ELF/linkerscript/outsections-addr.s +++ test/ELF/linkerscript/outsections-addr.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "SECTIONS { \ # RUN: .aaa 0x2000 : { *(.aaa) } \ Index: test/ELF/linkerscript/overlapping-sections.s =================================================================== --- test/ELF/linkerscript/overlapping-sections.s +++ test/ELF/linkerscript/overlapping-sections.s @@ -1,5 +1,5 @@ # TODO: maybe this should be converted to an x86 test to get more buildbot coverage -# REQUIRES: mips +# REQUIRES: mips-registered-target # RUN: llvm-mc -filetype=obj -triple=mips64-unknown-linux %s -o %t.o # RUN: echo "SECTIONS { \ Index: test/ELF/linkerscript/page-size-align.s =================================================================== --- test/ELF/linkerscript/page-size-align.s +++ test/ELF/linkerscript/page-size-align.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: echo "SECTIONS { \ Index: test/ELF/linkerscript/page-size.s =================================================================== --- test/ELF/linkerscript/page-size.s +++ test/ELF/linkerscript/page-size.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: ld.lld -z max-page-size=0x4000 %t -o %t2 Index: test/ELF/linkerscript/parse-section-in-addr.s =================================================================== --- test/ELF/linkerscript/parse-section-in-addr.s +++ test/ELF/linkerscript/parse-section-in-addr.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: echo "SECTIONS { \ Index: test/ELF/linkerscript/phdr-check.s =================================================================== --- test/ELF/linkerscript/phdr-check.s +++ test/ELF/linkerscript/phdr-check.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "SECTIONS { . = 0x10000000 + SIZEOF_HEADERS; .text : {*(.text.*)} }" > %t.script Index: test/ELF/linkerscript/phdrs-flags.s =================================================================== --- test/ELF/linkerscript/phdrs-flags.s +++ test/ELF/linkerscript/phdrs-flags.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "PHDRS {all PT_LOAD FILEHDR PHDRS FLAGS (1 | 1 + 0x1);} \ # RUN: SECTIONS { \ Index: test/ELF/linkerscript/phdrs.s =================================================================== --- test/ELF/linkerscript/phdrs.s +++ test/ELF/linkerscript/phdrs.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "PHDRS {all PT_LOAD FILEHDR PHDRS ;} \ # RUN: SECTIONS { \ Index: test/ELF/linkerscript/provide-shared.s =================================================================== --- test/ELF/linkerscript/provide-shared.s +++ test/ELF/linkerscript/provide-shared.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # 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/provide-shared.s -o %t2.o # RUN: ld.lld %t2.o -o %t2.so -shared Index: test/ELF/linkerscript/pt_gnu_eh_frame.s =================================================================== --- test/ELF/linkerscript/pt_gnu_eh_frame.s +++ test/ELF/linkerscript/pt_gnu_eh_frame.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "SECTIONS { /DISCARD/ : { *(.eh_frame*) *(.eh_frame_hdr*) } }" > %t.script # RUN: ld.lld -o %t1 --eh-frame-hdr --script %t.script %t Index: test/ELF/linkerscript/region-alias.s =================================================================== --- test/ELF/linkerscript/region-alias.s +++ test/ELF/linkerscript/region-alias.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "MEMORY { \ # RUN: ROM (rwx): ORIGIN = 0x1000, LENGTH = 0x100 \ Index: test/ELF/linkerscript/repsection-symbol.s =================================================================== --- test/ELF/linkerscript/repsection-symbol.s +++ test/ELF/linkerscript/repsection-symbol.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "SECTIONS { \ Index: test/ELF/linkerscript/repsection-va.s =================================================================== --- test/ELF/linkerscript/repsection-va.s +++ test/ELF/linkerscript/repsection-va.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "SECTIONS {.foo : {*(.foo.*)} }" > %t.script Index: test/ELF/linkerscript/rosegment.s =================================================================== --- test/ELF/linkerscript/rosegment.s +++ test/ELF/linkerscript/rosegment.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # Test that with linker scripts we don't create a RO PT_LOAD. Index: test/ELF/linkerscript/searchdir.s =================================================================== --- test/ELF/linkerscript/searchdir.s +++ test/ELF/linkerscript/searchdir.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-freebsd %s -o %t # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-freebsd \ Index: test/ELF/linkerscript/section-align.s =================================================================== --- test/ELF/linkerscript/section-align.s +++ test/ELF/linkerscript/section-align.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "SECTIONS { \ Index: test/ELF/linkerscript/section-metadata.s =================================================================== --- test/ELF/linkerscript/section-metadata.s +++ test/ELF/linkerscript/section-metadata.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: echo "SECTIONS { .text : { *(.text.bar) *(.text.foo) } }" > %t.script Index: test/ELF/linkerscript/sections-constraint.s =================================================================== --- test/ELF/linkerscript/sections-constraint.s +++ test/ELF/linkerscript/sections-constraint.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "SECTIONS { \ # RUN: .writable : ONLY_IF_RW { *(.writable) } \ Index: test/ELF/linkerscript/sections-constraint2.s =================================================================== --- test/ELF/linkerscript/sections-constraint2.s +++ test/ELF/linkerscript/sections-constraint2.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: echo "SECTIONS { zed : ONLY_IF_RO { *(foo) *(bar) } }" > %t.script # RUN: ld.lld -T %t.script %t.o -o %t.so -shared Index: test/ELF/linkerscript/sections-constraint3.s =================================================================== --- test/ELF/linkerscript/sections-constraint3.s +++ test/ELF/linkerscript/sections-constraint3.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: echo "SECTIONS { zed : ONLY_IF_RO { abc = 1; *(foo) } }" > %t.script # RUN: ld.lld -T %t.script %t.o -o %t.so -shared Index: test/ELF/linkerscript/sections-constraint4.s =================================================================== --- test/ELF/linkerscript/sections-constraint4.s +++ test/ELF/linkerscript/sections-constraint4.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "SECTIONS { \ # RUN: .foo : ONLY_IF_RO { *(.foo) } \ Index: test/ELF/linkerscript/sections-constraint5.s =================================================================== --- test/ELF/linkerscript/sections-constraint5.s +++ test/ELF/linkerscript/sections-constraint5.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: echo "SECTIONS { \ # RUN: bar : ONLY_IF_RO { sym1 = .; *(foo*) } \ Index: test/ELF/linkerscript/sections-gc.s =================================================================== --- test/ELF/linkerscript/sections-gc.s +++ test/ELF/linkerscript/sections-gc.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "SECTIONS { .text : { *(.text*) } }" > %t.script # RUN: ld.lld %t --gc-sections --script %t.script -o %t1 Index: test/ELF/linkerscript/sections-gc2.s =================================================================== --- test/ELF/linkerscript/sections-gc2.s +++ test/ELF/linkerscript/sections-gc2.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: echo "SECTIONS { \ # RUN: used_in_reloc : { *(used_in_reloc) } \ Index: test/ELF/linkerscript/sections-keep.s =================================================================== --- test/ELF/linkerscript/sections-keep.s +++ test/ELF/linkerscript/sections-keep.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/keep.s -o %t2.o Index: test/ELF/linkerscript/sections-padding.s =================================================================== --- test/ELF/linkerscript/sections-padding.s +++ test/ELF/linkerscript/sections-padding.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t ## Check that padding value works: Index: test/ELF/linkerscript/sections-sort.s =================================================================== --- test/ELF/linkerscript/sections-sort.s +++ test/ELF/linkerscript/sections-sort.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: echo "SECTIONS { .text : {*(.text)} foo : {*(foo)}}" > %t.script Index: test/ELF/linkerscript/sections.s =================================================================== --- test/ELF/linkerscript/sections.s +++ test/ELF/linkerscript/sections.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # Empty SECTIONS command. Index: test/ELF/linkerscript/segment-headers.s =================================================================== --- test/ELF/linkerscript/segment-headers.s +++ test/ELF/linkerscript/segment-headers.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: echo "SECTIONS { . = 0x2000; .text : AT(0x100000) { *(.text) } }" > %t.script # RUN: ld.lld -o %t --script %t.script %t.o Index: test/ELF/linkerscript/segment-none.s =================================================================== --- test/ELF/linkerscript/segment-none.s +++ test/ELF/linkerscript/segment-none.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o ## Test that section .foo is not placed in any segment when assigned to segment Index: test/ELF/linkerscript/segment-start.s =================================================================== --- test/ELF/linkerscript/segment-start.s +++ test/ELF/linkerscript/segment-start.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: ld.lld --hash-style=sysv %t.o %S/Inputs/segment-start.script -shared -o %t.so // RUN: llvm-readobj --dyn-symbols %t.so | FileCheck %s Index: test/ELF/linkerscript/sizeof.s =================================================================== --- test/ELF/linkerscript/sizeof.s +++ test/ELF/linkerscript/sizeof.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "SECTIONS { \ Index: test/ELF/linkerscript/sizeofheaders.s =================================================================== --- test/ELF/linkerscript/sizeofheaders.s +++ test/ELF/linkerscript/sizeofheaders.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo " SECTIONS { \ # RUN: . = SIZEOF_HEADERS; \ Index: test/ELF/linkerscript/sort-constructors.s =================================================================== --- test/ELF/linkerscript/sort-constructors.s +++ test/ELF/linkerscript/sort-constructors.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o # RUN: echo "SECTIONS { .aaa : { SORT(CONSTRUCTORS) } }" > %t1.script # RUN: ld.lld -shared -o %t1 --script %t1.script %t1.o Index: test/ELF/linkerscript/sort-init.s =================================================================== --- test/ELF/linkerscript/sort-init.s +++ test/ELF/linkerscript/sort-init.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o # RUN: echo "SECTIONS { .init_array : { *(SORT_BY_INIT_PRIORITY(.init_array.*)) } }" > %t1.script # RUN: ld.lld --script %t1.script %t1.o -o %t2 Index: test/ELF/linkerscript/sort-nested.s =================================================================== --- test/ELF/linkerscript/sort-nested.s +++ test/ELF/linkerscript/sort-nested.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux \ # RUN: %p/Inputs/sort-nested.s -o %t2.o Index: test/ELF/linkerscript/sort-non-script.s =================================================================== --- test/ELF/linkerscript/sort-non-script.s +++ test/ELF/linkerscript/sort-non-script.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t # RUN: echo "SECTIONS { foo : {*(foo)} }" > %t.script Index: test/ELF/linkerscript/sort.s =================================================================== --- test/ELF/linkerscript/sort.s +++ test/ELF/linkerscript/sort.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux \ # RUN: %p/Inputs/sort.s -o %t2.o Index: test/ELF/linkerscript/sort2.s =================================================================== --- test/ELF/linkerscript/sort2.s +++ test/ELF/linkerscript/sort2.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %tfile1.o # RUN: echo "SECTIONS { .abc : { *(SORT(.foo.*) .bar.*) } }" > %t1.script Index: test/ELF/linkerscript/start-end.s =================================================================== --- test/ELF/linkerscript/start-end.s +++ test/ELF/linkerscript/start-end.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: echo "SECTIONS { \ # RUN: .init_array : { \ Index: test/ELF/linkerscript/subalign.s =================================================================== --- test/ELF/linkerscript/subalign.s +++ test/ELF/linkerscript/subalign.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o # RUN: echo "SECTIONS { .aaa : { *(.aaa.*) } }" > %t1.script Index: test/ELF/linkerscript/symbol-assignexpr.s =================================================================== --- test/ELF/linkerscript/symbol-assignexpr.s +++ test/ELF/linkerscript/symbol-assignexpr.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "SECTIONS { \ Index: test/ELF/linkerscript/symbol-conflict.s =================================================================== --- test/ELF/linkerscript/symbol-conflict.s +++ test/ELF/linkerscript/symbol-conflict.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "SECTIONS { . = SIZEOF_HEADERS; .text : {*(.text.*)} end = .;}" > %t.script Index: test/ELF/linkerscript/symbol-memoryexpr.s =================================================================== --- test/ELF/linkerscript/symbol-memoryexpr.s +++ test/ELF/linkerscript/symbol-memoryexpr.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "MEMORY { \ Index: test/ELF/linkerscript/symbol-only-flags.s =================================================================== --- test/ELF/linkerscript/symbol-only-flags.s +++ test/ELF/linkerscript/symbol-only-flags.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: echo "SECTIONS { . = SIZEOF_HEADERS; \ # RUN: .tbss : { *(.tbss) } \ Index: test/ELF/linkerscript/symbol-only.s =================================================================== --- test/ELF/linkerscript/symbol-only.s +++ test/ELF/linkerscript/symbol-only.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "SECTIONS { \ Index: test/ELF/linkerscript/symbol-ordering-file.s =================================================================== --- test/ELF/linkerscript/symbol-ordering-file.s +++ test/ELF/linkerscript/symbol-ordering-file.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: echo "SECTIONS { .foo : { *(.foo) } }" > %t.script Index: test/ELF/linkerscript/symbol-reserved.s =================================================================== --- test/ELF/linkerscript/symbol-reserved.s +++ test/ELF/linkerscript/symbol-reserved.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "PROVIDE_HIDDEN(newsym = __ehdr_start + 5);" > %t.script # RUN: ld.lld -o %t1 %t.script %t Index: test/ELF/linkerscript/symbolreferenced.s =================================================================== --- test/ELF/linkerscript/symbolreferenced.s +++ test/ELF/linkerscript/symbolreferenced.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # Provide new symbol. The value should be 1, like set in PROVIDE() Index: test/ELF/linkerscript/symbols-non-alloc.s =================================================================== --- test/ELF/linkerscript/symbols-non-alloc.s +++ test/ELF/linkerscript/symbols-non-alloc.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "SECTIONS { . = SIZEOF_HEADERS; \ Index: test/ELF/linkerscript/symbols-synthetic.s =================================================================== --- test/ELF/linkerscript/symbols-synthetic.s +++ test/ELF/linkerscript/symbols-synthetic.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # Simple symbol assignment within input section list. The '.' symbol # is not location counter but offset from the beginning of output Index: test/ELF/linkerscript/symbols.s =================================================================== --- test/ELF/linkerscript/symbols.s +++ test/ELF/linkerscript/symbols.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # Simple symbol assignment. Should raise conflict in case we Index: test/ELF/linkerscript/tbss.s =================================================================== --- test/ELF/linkerscript/tbss.s +++ test/ELF/linkerscript/tbss.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: echo "SECTIONS { \ # RUN: . = SIZEOF_HEADERS; \ Index: test/ELF/linkerscript/thunk-gen-mips.s =================================================================== --- test/ELF/linkerscript/thunk-gen-mips.s +++ test/ELF/linkerscript/thunk-gen-mips.s @@ -1,4 +1,4 @@ -# REQUIRES: mips +# REQUIRES: mips-registered-target # RUN: llvm-mc -filetype=obj -defsym=MAIN=1 -triple=mips-unknown-freebsd %s -o %t # RUN: llvm-mc -filetype=obj -defsym=TARGET=1 -triple=mips-unknown-freebsd %s -o %t1 Index: test/ELF/linkerscript/ttext-script.s =================================================================== --- test/ELF/linkerscript/ttext-script.s +++ test/ELF/linkerscript/ttext-script.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: echo "SECTIONS { .text 0x200000 : { *(.text) } }" > %t.script # RUN: ld.lld -T %t.script -Ttext 0x100000 %t.o -o %t Index: test/ELF/linkerscript/undef.s =================================================================== --- test/ELF/linkerscript/undef.s +++ test/ELF/linkerscript/undef.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "SECTIONS { patatino = 0x1234; }" > %t.script Index: test/ELF/linkerscript/unused-synthetic.s =================================================================== --- test/ELF/linkerscript/unused-synthetic.s +++ test/ELF/linkerscript/unused-synthetic.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: echo "SECTIONS { \ # RUN: .got : { *(.got) *(.got) } \ Index: test/ELF/linkerscript/unused-synthetic2.s =================================================================== --- test/ELF/linkerscript/unused-synthetic2.s +++ test/ELF/linkerscript/unused-synthetic2.s @@ -1,4 +1,4 @@ -# REQUIRES: arm +# REQUIRES: arm-registered-target # RUN: llvm-mc -filetype=obj -triple=armv7-unknown-linux-gnueabi %s -o %t.o # RUN: echo "SECTIONS { .trap : { *(.ARM.exidx) *(.dummy) } }" > %t.script Index: test/ELF/linkerscript/va.s =================================================================== --- test/ELF/linkerscript/va.s +++ test/ELF/linkerscript/va.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: echo "SECTIONS {}" > %t.script Index: test/ELF/linkerscript/version-linker-symbol.s =================================================================== --- test/ELF/linkerscript/version-linker-symbol.s +++ test/ELF/linkerscript/version-linker-symbol.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: echo "VER1 { global: _end; foo ; local: * ; } ;" > %t.script # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o Index: test/ELF/linkerscript/version-script.s =================================================================== --- test/ELF/linkerscript/version-script.s +++ test/ELF/linkerscript/version-script.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: echo "bar = foo; VERSION { V { global: foo; bar; local: *; }; }" > %t.script Index: test/ELF/linkerscript/visibility.s =================================================================== --- test/ELF/linkerscript/visibility.s +++ test/ELF/linkerscript/visibility.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: echo "SECTIONS { foo = .; }" > %t1.script Index: test/ELF/linkerscript/wildcards.s =================================================================== --- test/ELF/linkerscript/wildcards.s +++ test/ELF/linkerscript/wildcards.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t ## Default case: abc and abx included in text. Index: test/ELF/linkerscript/wildcards2.s =================================================================== --- test/ELF/linkerscript/wildcards2.s +++ test/ELF/linkerscript/wildcards2.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t ## Check that aabc is not included in text. Index: test/ELF/local-dynamic.s =================================================================== --- test/ELF/local-dynamic.s +++ test/ELF/local-dynamic.s @@ -2,7 +2,7 @@ // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t // RUN: ld.lld %t -shared -o %t1.so // RUN: llvm-readobj -t -dyn-symbols %t1.so | FileCheck %s -// REQUIRES: x86 +// REQUIRES: x86-registered-target // CHECK: Symbols [ // CHECK-NEXT: Symbol { Index: test/ELF/local-undefined-symbol.s =================================================================== --- test/ELF/local-undefined-symbol.s +++ test/ELF/local-undefined-symbol.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: ld.lld %t -o %t1 # RUN: llvm-readobj -t %t1 | FileCheck %s Index: test/ELF/local.s =================================================================== --- test/ELF/local.s +++ test/ELF/local.s @@ -2,7 +2,7 @@ // RUN: llvm-mc -save-temp-labels -filetype=obj -triple=x86_64-pc-linux %s -o %t // RUN: ld.lld %t -o %t1 // RUN: llvm-readobj -t -s %t1 | FileCheck %s -// REQUIRES: x86 +// REQUIRES: x86-registered-target // Check that Info is equal to the number of local symbols. // CHECK: Section { Index: test/ELF/lto-plugin-ignore.s =================================================================== --- test/ELF/lto-plugin-ignore.s +++ test/ELF/lto-plugin-ignore.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: ld.lld %t -plugin-opt=/foo/bar -plugin-opt=-fresolution=zed \ Index: test/ELF/lto/abs-resol.ll =================================================================== --- test/ELF/lto/abs-resol.ll +++ test/ELF/lto/abs-resol.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as %s -o %t.o ; RUN: llvm-mc -triple=x86_64-pc-linux %p/Inputs/absolute.s -o %t2.o -filetype=obj Index: test/ELF/lto/archive-2.ll =================================================================== --- test/ELF/lto/archive-2.ll +++ test/ELF/lto/archive-2.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as %S/Inputs/archive-2.ll -o %t1.o ; RUN: rm -f %t.a ; RUN: llvm-ar rcs %t.a %t1.o Index: test/ELF/lto/archive-3.ll =================================================================== --- test/ELF/lto/archive-3.ll +++ test/ELF/lto/archive-3.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as %S/Inputs/archive-3.ll -o %t1.o ; RUN: llvm-as %s -o %t2.o Index: test/ELF/lto/archive-no-index.ll =================================================================== --- test/ELF/lto/archive-no-index.ll +++ test/ELF/lto/archive-no-index.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; Tests that we suggest that LTO symbols missing from an archive index ; may be the cause of undefined references, but only if we both ; encountered an empty archive index and undefined references (to prevent Index: test/ELF/lto/archive.ll =================================================================== --- test/ELF/lto/archive.ll +++ test/ELF/lto/archive.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as %S/Inputs/archive.ll -o %t1.o ; RUN: rm -f %t.a ; RUN: llvm-ar rcs %t.a %t1.o Index: test/ELF/lto/asmundef.ll =================================================================== --- test/ELF/lto/asmundef.ll +++ test/ELF/lto/asmundef.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; 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 Index: test/ELF/lto/available-externally.ll =================================================================== --- test/ELF/lto/available-externally.ll +++ test/ELF/lto/available-externally.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; 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 Index: test/ELF/lto/bitcode-nodatalayout.ll =================================================================== --- test/ELF/lto/bitcode-nodatalayout.ll +++ test/ELF/lto/bitcode-nodatalayout.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as %s -o %t.o ; RUN: not ld.lld -m elf_x86_64 %t.o -o %t 2>&1 | FileCheck %s Index: test/ELF/lto/cache.ll =================================================================== --- test/ELF/lto/cache.ll +++ test/ELF/lto/cache.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: opt -module-hash -module-summary %s -o %t.o ; RUN: opt -module-hash -module-summary %p/Inputs/cache.ll -o %t2.o Index: test/ELF/lto/codemodel.ll =================================================================== --- test/ELF/lto/codemodel.ll +++ test/ELF/lto/codemodel.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; 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 Index: test/ELF/lto/combined-lto-object-name.ll =================================================================== --- test/ELF/lto/combined-lto-object-name.ll +++ test/ELF/lto/combined-lto-object-name.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as %s -o %t.o ; RUN: not ld.lld -m elf_x86_64 %t.o -o %t2 2>&1 | FileCheck %s Index: test/ELF/lto/comdat.ll =================================================================== --- test/ELF/lto/comdat.ll +++ test/ELF/lto/comdat.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as %s -o %t.o ; RUN: ld.lld -m elf_x86_64 %t.o %t.o -o %t.so -shared ; RUN: llvm-readobj -t %t.so | FileCheck %s Index: test/ELF/lto/comdat2.ll =================================================================== --- test/ELF/lto/comdat2.ll +++ test/ELF/lto/comdat2.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; 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 Index: test/ELF/lto/common.ll =================================================================== --- test/ELF/lto/common.ll +++ test/ELF/lto/common.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as %s -o %t1.o ; RUN: llvm-mc -triple=x86_64-pc-linux %p/Inputs/common.s -o %t2.o -filetype=obj ; RUN: ld.lld %t1.o %t2.o -o %t.so -shared Index: test/ELF/lto/common2.ll =================================================================== --- test/ELF/lto/common2.ll +++ test/ELF/lto/common2.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as %s -o %t1.o ; RUN: ld.lld -m elf_x86_64 %t1.o -o %t -shared -save-temps ; RUN: llvm-dis < %t.0.2.internalize.bc | FileCheck %s Index: test/ELF/lto/common3.ll =================================================================== --- test/ELF/lto/common3.ll +++ test/ELF/lto/common3.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; 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 Index: test/ELF/lto/cpu-string.ll =================================================================== --- test/ELF/lto/cpu-string.ll +++ test/ELF/lto/cpu-string.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as %s -o %t.o ; RUN: ld.lld %t.o -o %t.so -shared Index: test/ELF/lto/ctors.ll =================================================================== --- test/ELF/lto/ctors.ll +++ test/ELF/lto/ctors.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as %s -o %t.o ; RUN: ld.lld -m elf_x86_64 %t.o -o %t.so -shared ; RUN: llvm-readobj -sections %t.so | FileCheck %s Index: test/ELF/lto/data-ordering-lto.s =================================================================== --- test/ELF/lto/data-ordering-lto.s +++ test/ELF/lto/data-ordering-lto.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-scei-ps4 %s -o %t.o # RUN: llvm-as %p/Inputs/data-ordering-lto.ll -o %t.bc Index: test/ELF/lto/debugger-tune.ll =================================================================== --- test/ELF/lto/debugger-tune.ll +++ test/ELF/lto/debugger-tune.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as %s -o %t.o ; Here we verify that -debugger-tune= option is Index: test/ELF/lto/defsym.ll =================================================================== --- test/ELF/lto/defsym.ll +++ test/ELF/lto/defsym.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; LTO ; RUN: llvm-as %s -o %t.o ; RUN: llvm-as %S/Inputs/defsym-bar.ll -o %t1.o Index: test/ELF/lto/discard-value-names.ll =================================================================== --- test/ELF/lto/discard-value-names.ll +++ test/ELF/lto/discard-value-names.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as %s -o %t.o ; RUN: ld.lld -m elf_x86_64 -shared -save-temps %t.o -o %t2.o Index: test/ELF/lto/drop-debug-info.ll =================================================================== --- test/ELF/lto/drop-debug-info.ll +++ test/ELF/lto/drop-debug-info.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; ; drop-debug-info.bc was created from "void f(void) {}" with clang 3.5 and ; -gline-tables-only, so it contains old debug info. Index: test/ELF/lto/drop-linkage.ll =================================================================== --- test/ELF/lto/drop-linkage.ll +++ test/ELF/lto/drop-linkage.ll @@ -1,7 +1,7 @@ target triple = "x86_64-unknown-linux-gnu" target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; 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 Index: test/ELF/lto/duplicated-name.ll =================================================================== --- test/ELF/lto/duplicated-name.ll +++ test/ELF/lto/duplicated-name.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; Cretae two archive with the same member name ; RUN: rm -f %t1.a %t2.a ; RUN: opt -module-summary %s -o %t.o Index: test/ELF/lto/duplicated.ll =================================================================== --- test/ELF/lto/duplicated.ll +++ test/ELF/lto/duplicated.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; 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 Index: test/ELF/lto/dynamic-list.ll =================================================================== --- test/ELF/lto/dynamic-list.ll +++ test/ELF/lto/dynamic-list.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; 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 Index: test/ELF/lto/dynsym.ll =================================================================== --- test/ELF/lto/dynsym.ll +++ test/ELF/lto/dynsym.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; 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: llvm-as %s -o %t2.o Index: test/ELF/lto/inline-asm.ll =================================================================== --- test/ELF/lto/inline-asm.ll +++ test/ELF/lto/inline-asm.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as %s -o %t.o ; RUN: ld.lld -m elf_x86_64 %t.o -o %t.so -shared Index: test/ELF/lto/internalize-basic.ll =================================================================== --- test/ELF/lto/internalize-basic.ll +++ test/ELF/lto/internalize-basic.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as %s -o %t.o ; RUN: ld.lld -m elf_x86_64 %t.o -o %t2 -save-temps ; RUN: llvm-dis < %t2.0.2.internalize.bc | FileCheck %s Index: test/ELF/lto/internalize-exportdyn.ll =================================================================== --- test/ELF/lto/internalize-exportdyn.ll +++ test/ELF/lto/internalize-exportdyn.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; 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 Index: test/ELF/lto/internalize-llvmused.ll =================================================================== --- test/ELF/lto/internalize-llvmused.ll +++ test/ELF/lto/internalize-llvmused.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as %s -o %t.o ; RUN: ld.lld -m elf_x86_64 %t.o -o %t2 -save-temps ; RUN: llvm-dis < %t2.0.2.internalize.bc | FileCheck %s Index: test/ELF/lto/internalize-undef.ll =================================================================== --- test/ELF/lto/internalize-undef.ll +++ test/ELF/lto/internalize-undef.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; 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 Index: test/ELF/lto/internalize-version-script.ll =================================================================== --- test/ELF/lto/internalize-version-script.ll +++ test/ELF/lto/internalize-version-script.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; 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 Index: test/ELF/lto/keep-undefined.ll =================================================================== --- test/ELF/lto/keep-undefined.ll +++ test/ELF/lto/keep-undefined.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; 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 Index: test/ELF/lto/linkage.ll =================================================================== --- test/ELF/lto/linkage.ll +++ test/ELF/lto/linkage.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as %s -o %t1.o ; RUN: ld.lld -m elf_x86_64 %t1.o %t1.o -o %t.so -shared ; RUN: llvm-nm %t.so | FileCheck %s Index: test/ELF/lto/linker-script-symbols-assign.ll =================================================================== --- test/ELF/lto/linker-script-symbols-assign.ll +++ test/ELF/lto/linker-script-symbols-assign.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as %s -o %t.o ; RUN: echo "foo = 1;" > %t.script Index: test/ELF/lto/linker-script-symbols-ipo.ll =================================================================== --- test/ELF/lto/linker-script-symbols-ipo.ll +++ test/ELF/lto/linker-script-symbols-ipo.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as %s -o %t1.o ; RUN: llvm-as %S/Inputs/linker-script-symbols-ipo.ll -o %t2.o ; RUN: echo "bar = foo;" > %t.script Index: test/ELF/lto/linker-script-symbols.ll =================================================================== --- test/ELF/lto/linker-script-symbols.ll +++ test/ELF/lto/linker-script-symbols.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as %s -o %t.o ; RUN: echo "foo = bar;" > %t.script Index: test/ELF/lto/linkonce-odr.ll =================================================================== --- test/ELF/lto/linkonce-odr.ll +++ test/ELF/lto/linkonce-odr.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as %p/Inputs/linkonce-odr.ll -o %t1.o ; RUN: llc -relocation-model=pic %s -o %t2.o -filetype=obj ; RUN: ld.lld %t1.o %t2.o -o %t.so -shared -save-temps Index: test/ELF/lto/linkonce.ll =================================================================== --- test/ELF/lto/linkonce.ll +++ test/ELF/lto/linkonce.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as %p/Inputs/linkonce.ll -o %t1.o ; RUN: llc -relocation-model=pic %s -o %t2.o -filetype=obj ; RUN: ld.lld %t1.o %t2.o -o %t.so -shared -save-temps Index: test/ELF/lto/lto-start.ll =================================================================== --- test/ELF/lto/lto-start.ll +++ test/ELF/lto/lto-start.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as %s -o %t.o ; RUN: ld.lld -m elf_x86_64 %t.o -o %t2 ; RUN: llvm-readobj -t %t2 | FileCheck %s Index: test/ELF/lto/ltopasses-basic.ll =================================================================== --- test/ELF/lto/ltopasses-basic.ll +++ test/ELF/lto/ltopasses-basic.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; 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: llvm-dis %t.so.0.4.opt.bc -o - | FileCheck %s Index: test/ELF/lto/ltopasses-custom.ll =================================================================== --- test/ELF/lto/ltopasses-custom.ll +++ test/ELF/lto/ltopasses-custom.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; 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: --lto-newpm-passes=ipsccp -shared Index: test/ELF/lto/metadata.ll =================================================================== --- test/ELF/lto/metadata.ll +++ test/ELF/lto/metadata.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as %s -o %t1.o ; RUN: ld.lld -m elf_x86_64 %t1.o %t1.o -o %t.so -shared Index: test/ELF/lto/mix-platforms.ll =================================================================== --- test/ELF/lto/mix-platforms.ll +++ test/ELF/lto/mix-platforms.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-mc %p/Inputs/shared.s -o %t386.o -filetype=obj -triple=i386-pc-linux ; RUN: ld.lld %t386.o -o %ti386.so -shared ; RUN: llvm-as %s -o %tx64.o Index: test/ELF/lto/module-asm.ll =================================================================== --- test/ELF/lto/module-asm.ll +++ test/ELF/lto/module-asm.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as %s -o %t.o ; RUN: ld.lld -m elf_x86_64 %t.o -o %t ; RUN: llvm-nm %t | FileCheck %s Index: test/ELF/lto/opt-level.ll =================================================================== --- test/ELF/lto/opt-level.ll +++ test/ELF/lto/opt-level.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as -o %t.o %s ; RUN: ld.lld -o %t0 -m elf_x86_64 -e main --lto-O0 %t.o ; RUN: llvm-nm %t0 | FileCheck --check-prefix=CHECK-O0 %s Index: test/ELF/lto/opt-remarks.ll =================================================================== --- test/ELF/lto/opt-remarks.ll +++ test/ELF/lto/opt-remarks.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as %s -o %t.o ; RUN: rm -f %t.yaml Index: test/ELF/lto/parallel-internalize.ll =================================================================== --- test/ELF/lto/parallel-internalize.ll +++ test/ELF/lto/parallel-internalize.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; 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 \ Index: test/ELF/lto/parallel.ll =================================================================== --- test/ELF/lto/parallel.ll +++ test/ELF/lto/parallel.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; 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 Index: test/ELF/lto/pic.ll =================================================================== --- test/ELF/lto/pic.ll +++ test/ELF/lto/pic.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as %s -o %t.o ; RUN: ld.lld %t.o -o %t.so -shared Index: test/ELF/lto/relax-relocs.ll =================================================================== --- test/ELF/lto/relax-relocs.ll +++ test/ELF/lto/relax-relocs.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as %s -o %t.o ; RUN: ld.lld -m elf_x86_64 -save-temps -shared %t.o -o %t.so ; RUN: llvm-readobj -r %t.so.lto.o | FileCheck %s Index: test/ELF/lto/relocatable.ll =================================================================== --- test/ELF/lto/relocatable.ll +++ test/ELF/lto/relocatable.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as %s -o %t1.o ; RUN: ld.lld %t1.o -r -o %t ; RUN: llvm-readobj -symbols %t | FileCheck %s Index: test/ELF/lto/relocation-model.ll =================================================================== --- test/ELF/lto/relocation-model.ll +++ test/ELF/lto/relocation-model.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as %s -o %t.o ; RUN: llvm-as %p/Inputs/relocation-model-pic.ll -o %t.pic.o Index: test/ELF/lto/resolution.ll =================================================================== --- test/ELF/lto/resolution.ll +++ test/ELF/lto/resolution.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as %s -o %t1.o ; RUN: llvm-mc -triple=x86_64-pc-linux %p/Inputs/resolution.s -o %t2.o -filetype=obj ; RUN: ld.lld %t1.o %t2.o -o %t.so -shared Index: test/ELF/lto/save-temps.ll =================================================================== --- test/ELF/lto/save-temps.ll +++ test/ELF/lto/save-temps.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: cd %T ; RUN: rm -f a.out a.out.lto.bc a.out.lto.o ; RUN: llvm-as %s -o %t.o Index: test/ELF/lto/section-name.ll =================================================================== --- test/ELF/lto/section-name.ll +++ test/ELF/lto/section-name.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as %s -o %t.o ; RUN: ld.lld %t.o -o %t.so -shared ; RUN: llvm-readelf -s %t.so | FileCheck %s Index: test/ELF/lto/setting-dso-local.ll =================================================================== --- test/ELF/lto/setting-dso-local.ll +++ test/ELF/lto/setting-dso-local.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as %s -o %t1.o ; RUN: not ld.lld -o %t %t1.o 2>&1 | FileCheck %s Index: test/ELF/lto/shlib-undefined.ll =================================================================== --- test/ELF/lto/shlib-undefined.ll +++ test/ELF/lto/shlib-undefined.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as %s -o %t.o ; RUN: echo ".global __progname; .data; .dc.a __progname" > %t2.s ; RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %t2.s -o %t2.o Index: test/ELF/lto/start-lib.ll =================================================================== --- test/ELF/lto/start-lib.ll +++ test/ELF/lto/start-lib.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; ; RUN: llvm-as %s -o %t1.o ; RUN: llvm-as %p/Inputs/start-lib1.ll -o %t2.o Index: test/ELF/lto/symbol-ordering-lto.s =================================================================== --- test/ELF/lto/symbol-ordering-lto.s +++ test/ELF/lto/symbol-ordering-lto.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-scei-ps4 %s -o %t.o # RUN: llvm-as %p/Inputs/symbol-ordering-lto.ll -o %t.bc Index: test/ELF/lto/thin-archivecollision.ll =================================================================== --- test/ELF/lto/thin-archivecollision.ll +++ test/ELF/lto/thin-archivecollision.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: opt -module-summary %s -o %t.o ; RUN: mkdir -p %t1 %t2 ; RUN: opt -module-summary %p/Inputs/thin1.ll -o %t1/t.coll.o Index: test/ELF/lto/thinlto.ll =================================================================== --- test/ELF/lto/thinlto.ll +++ test/ELF/lto/thinlto.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; Basic ThinLTO tests. ; RUN: opt -module-summary %s -o %t.o ; RUN: opt -module-summary %p/Inputs/thinlto.ll -o %t2.o Index: test/ELF/lto/timepasses.ll =================================================================== --- test/ELF/lto/timepasses.ll +++ test/ELF/lto/timepasses.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as %s -o %t.o ; RUN: env LLD_IN_TEST=0 ld.lld %t.o -o %t.so -shared -mllvm \ ; RUN: -time-passes 2>&1 | FileCheck %s Index: test/ELF/lto/tls-mixed.ll =================================================================== --- test/ELF/lto/tls-mixed.ll +++ test/ELF/lto/tls-mixed.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; 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 Index: test/ELF/lto/tls-preserve.ll =================================================================== --- test/ELF/lto/tls-preserve.ll +++ test/ELF/lto/tls-preserve.ll @@ -1,5 +1,5 @@ ; TLS attribute needs to be preserved. -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as %s -o %t1.o ; RUN: ld.lld -shared %t1.o -m elf_x86_64 -o %t1 ; RUN: llvm-readobj -t %t1 | FileCheck %s Index: test/ELF/lto/type-merge.ll =================================================================== --- test/ELF/lto/type-merge.ll +++ test/ELF/lto/type-merge.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; 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 Index: test/ELF/lto/type-merge2.ll =================================================================== --- test/ELF/lto/type-merge2.ll +++ test/ELF/lto/type-merge2.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; 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 Index: test/ELF/lto/undef-mixed.ll =================================================================== --- test/ELF/lto/undef-mixed.ll +++ test/ELF/lto/undef-mixed.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-mc %p/Inputs/undef-mixed.s -o %t.o -filetype=obj -triple=x86_64-pc-linux ; RUN: llvm-as %s -o %t2.o ; RUN: ld.lld %t2.o %t.o -o %t.so -shared Index: test/ELF/lto/undef-weak.ll =================================================================== --- test/ELF/lto/undef-weak.ll +++ test/ELF/lto/undef-weak.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as %S/Inputs/archive.ll -o %t1.o ; RUN: rm -f %t.a Index: test/ELF/lto/undef.ll =================================================================== --- test/ELF/lto/undef.ll +++ test/ELF/lto/undef.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as %s -o %t.o ; RUN: ld.lld -m elf_x86_64 %t.o -o %t.so -shared ; RUN: llvm-readobj -t %t.so | FileCheck %s Index: test/ELF/lto/undefined-puts.ll =================================================================== --- test/ELF/lto/undefined-puts.ll +++ test/ELF/lto/undefined-puts.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; 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 Index: test/ELF/lto/unnamed-addr-comdat.ll =================================================================== --- test/ELF/lto/unnamed-addr-comdat.ll +++ test/ELF/lto/unnamed-addr-comdat.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; 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: llvm-dis %t.so.0.2.internalize.bc -o - | FileCheck %s Index: test/ELF/lto/unnamed-addr-drop.ll =================================================================== --- test/ELF/lto/unnamed-addr-drop.ll +++ test/ELF/lto/unnamed-addr-drop.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; 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 Index: test/ELF/lto/unnamed-addr-lib.ll =================================================================== --- test/ELF/lto/unnamed-addr-lib.ll +++ test/ELF/lto/unnamed-addr-lib.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; 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 Index: test/ELF/lto/unnamed-addr.ll =================================================================== --- test/ELF/lto/unnamed-addr.ll +++ test/ELF/lto/unnamed-addr.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as %s -o %t.o ; RUN: ld.lld -m elf_x86_64 %t.o -o %t.so -save-temps -shared ; RUN: llvm-dis %t.so.0.4.opt.bc -o - | FileCheck %s Index: test/ELF/lto/verify-invalid.ll =================================================================== --- test/ELF/lto/verify-invalid.ll +++ test/ELF/lto/verify-invalid.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as %s -o %t.o ; RUN: ld.lld -m elf_x86_64 %t.o -o %t2 -mllvm -debug-pass=Arguments \ ; RUN: 2>&1 | FileCheck -check-prefix=DEFAULT %s Index: test/ELF/lto/version-script.ll =================================================================== --- test/ELF/lto/version-script.ll +++ test/ELF/lto/version-script.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; 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 Index: test/ELF/lto/visibility.ll =================================================================== --- test/ELF/lto/visibility.ll +++ test/ELF/lto/visibility.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as %s -o %t1.o ; RUN: llvm-mc -triple=x86_64-pc-linux %p/Inputs/visibility.s -o %t2.o -filetype=obj ; RUN: ld.lld %t1.o %t2.o -o %t.so -shared -save-temps Index: test/ELF/lto/weak.ll =================================================================== --- test/ELF/lto/weak.ll +++ test/ELF/lto/weak.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; RUN: llvm-as %s -o %t.o ; RUN: ld.lld -m elf_x86_64 %t.o %t.o -o %t.so -shared ; RUN: llvm-readobj -t %t.so | FileCheck %s Index: test/ELF/lto/wrap-1.ll =================================================================== --- test/ELF/lto/wrap-1.ll +++ test/ELF/lto/wrap-1.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; LTO ; RUN: llvm-as %s -o %t.o ; RUN: ld.lld %t.o -o %t.out -wrap=bar -save-temps Index: test/ELF/lto/wrap-2.ll =================================================================== --- test/ELF/lto/wrap-2.ll +++ test/ELF/lto/wrap-2.ll @@ -1,4 +1,4 @@ -; REQUIRES: x86 +; REQUIRES: x86-registered-target ; LTO ; RUN: llvm-as %s -o %t.o ; RUN: llvm-as %S/Inputs/wrap-bar.ll -o %t1.o Index: test/ELF/many-alloc-sections.s =================================================================== --- test/ELF/many-alloc-sections.s +++ test/ELF/many-alloc-sections.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o %t.o // RUN: echo "SECTIONS { . = SIZEOF_HEADERS; .text : { *(.text) } }" > %t.script // RUN: ld.lld -T %t.script %t.o -o %t Index: test/ELF/many-sections.s =================================================================== --- test/ELF/many-sections.s +++ test/ELF/many-sections.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o %t // RUN: llvm-readobj -t %t | FileCheck %s Index: test/ELF/map-file.s =================================================================== --- test/ELF/map-file.s +++ test/ELF/map-file.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/map-file2.s -o %t2.o Index: test/ELF/merge-align.s =================================================================== --- test/ELF/merge-align.s +++ test/ELF/merge-align.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: ld.lld %t.o -o %t.so -shared // RUN: llvm-readobj -s -section-data %t.so | FileCheck %s Index: test/ELF/merge-entsize.s =================================================================== --- test/ELF/merge-entsize.s +++ test/ELF/merge-entsize.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: ld.lld %t.o -o %t // RUN: llvm-readobj -s %t | FileCheck %s Index: test/ELF/merge-reloc.s =================================================================== --- test/ELF/merge-reloc.s +++ test/ELF/merge-reloc.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: ld.lld %t.o -r -o %t-rel # RUN: llvm-readobj -s -section-data %t-rel | FileCheck %s Index: test/ELF/merge-section-types.s =================================================================== --- test/ELF/merge-section-types.s +++ test/ELF/merge-section-types.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: ld.lld -shared %t.o -o %t // RUN: llvm-readobj -s %t | FileCheck %s Index: test/ELF/merge-shared-str.s =================================================================== --- test/ELF/merge-shared-str.s +++ test/ELF/merge-shared-str.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: ld.lld %t.o -o %t.so -shared -O3 // RUN: llvm-readobj -r -s %t.so | FileCheck %s Index: test/ELF/merge-shared.s =================================================================== --- test/ELF/merge-shared.s +++ test/ELF/merge-shared.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: ld.lld %t.o -o %t.so -shared // RUN: llvm-readobj -r -s %t.so | FileCheck %s Index: test/ELF/merge-string-align.s =================================================================== --- test/ELF/merge-string-align.s +++ test/ELF/merge-string-align.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: ld.lld %t.o -o %t.so -shared // RUN: llvm-readobj -s -section-data %t.so | FileCheck %s Index: test/ELF/merge-string-empty.s =================================================================== --- test/ELF/merge-string-empty.s +++ test/ELF/merge-string-empty.s @@ -1,6 +1,6 @@ // Ensure that a mergeable string with size 0 does not cause any issue. -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: ld.lld %t.o -o %t Index: test/ELF/merge-string-error.s =================================================================== --- test/ELF/merge-string-error.s +++ test/ELF/merge-string-error.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: not ld.lld %t.o -o %t.so -shared 2>&1 | FileCheck %s Index: test/ELF/merge-string-no-null.s =================================================================== --- test/ELF/merge-string-no-null.s +++ test/ELF/merge-string-no-null.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: not ld.lld %t.o -o %t.so -shared 2>&1 | FileCheck %s Index: test/ELF/merge-string.s =================================================================== --- test/ELF/merge-string.s +++ test/ELF/merge-string.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: ld.lld -O 2 %t.o -o %t.so -shared // RUN: llvm-readobj -s -section-data -t %t.so | FileCheck %s Index: test/ELF/merge-sym.s =================================================================== --- test/ELF/merge-sym.s +++ test/ELF/merge-sym.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: ld.lld %t.o -o %t.so -shared // RUN: llvm-readobj -t -s %t.so | FileCheck %s Index: test/ELF/merge.s =================================================================== --- test/ELF/merge.s +++ test/ELF/merge.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // 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/merge.s -o %t2.o // RUN: ld.lld %t.o %t2.o -o %t Index: test/ELF/mips-26-mask.s =================================================================== --- test/ELF/mips-26-mask.s +++ test/ELF/mips-26-mask.s @@ -4,7 +4,7 @@ # RUN: ld.lld %t.o -o %t.exe # RUN: llvm-objdump -d %t.exe | FileCheck %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # CHECK: Disassembly of section .text: # CHECK: __start: Index: test/ELF/mips-26-n32-n64.s =================================================================== --- test/ELF/mips-26-n32-n64.s +++ test/ELF/mips-26-n32-n64.s @@ -7,7 +7,7 @@ # RUN: ld.lld %t.o %t.so -o %t.exe # RUN: llvm-objdump -d %t.exe | FileCheck %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # CHECK: Disassembly of section .text: # CHECK-NEXT: __start: Index: test/ELF/mips-26.s =================================================================== --- test/ELF/mips-26.s +++ test/ELF/mips-26.s @@ -9,7 +9,7 @@ # RUN: llvm-readobj -dynamic-table -s -r -mips-plt-got %t.exe \ # RUN: | FileCheck -check-prefix=REL %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # CHECK: Disassembly of section .text: # CHECK-NEXT: bar: Index: test/ELF/mips-32.s =================================================================== --- test/ELF/mips-32.s +++ test/ELF/mips-32.s @@ -14,7 +14,7 @@ # RUN: llvm-readobj -r -dynamic-table -mips-plt-got %t-el.so \ # RUN: | FileCheck -check-prefix=REL %s -# REQUIRES: mips +# REQUIRES: mips-registered-target .globl __start __start: Index: test/ELF/mips-64-disp.s =================================================================== --- test/ELF/mips-64-disp.s +++ test/ELF/mips-64-disp.s @@ -8,7 +8,7 @@ # RUN: llvm-objdump -d -t %t.exe | FileCheck %s # RUN: llvm-readobj -r -mips-plt-got %t.exe | FileCheck -check-prefix=GOT %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # CHECK: __start: # CHECK-NEXT: 20000: 24 42 80 40 addiu $2, $2, -32704 Index: test/ELF/mips-64-got.s =================================================================== --- test/ELF/mips-64-got.s +++ test/ELF/mips-64-got.s @@ -8,7 +8,7 @@ # RUN: llvm-objdump -d -t %t.exe | FileCheck %s # RUN: llvm-readobj -r -mips-plt-got %t.exe | FileCheck -check-prefix=GOT %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # CHECK: __start: Index: test/ELF/mips-64-gprel-so.s =================================================================== --- test/ELF/mips-64-gprel-so.s +++ test/ELF/mips-64-gprel-so.s @@ -4,7 +4,7 @@ # RUN: ld.lld %t.o -shared -o %t.so # RUN: llvm-objdump -d -t %t.so | FileCheck %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # CHECK: Disassembly of section .text: # CHECK-NEXT: foo: Index: test/ELF/mips-64-rels.s =================================================================== --- test/ELF/mips-64-rels.s +++ test/ELF/mips-64-rels.s @@ -6,7 +6,7 @@ # RUN: llvm-objdump -d -s -t %t.exe | FileCheck %s # RUN: llvm-readobj -r %t.exe | FileCheck -check-prefix=REL %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # CHECK: __start: # CHECK-NEXT: 20000: 3c 1c 00 01 lui $gp, 1 Index: test/ELF/mips-64.s =================================================================== --- test/ELF/mips-64.s +++ test/ELF/mips-64.s @@ -5,7 +5,7 @@ # RUN: llvm-objdump -t %t.so | FileCheck -check-prefix=SYM %s # RUN: llvm-readobj -r -dynamic-table -mips-plt-got %t.so | FileCheck %s -# REQUIRES: mips +# REQUIRES: mips-registered-target .global __start __start: Index: test/ELF/mips-align-err.s =================================================================== --- test/ELF/mips-align-err.s +++ test/ELF/mips-align-err.s @@ -1,4 +1,4 @@ -# REQUIRES: mips +# REQUIRES: mips-registered-target # RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t.o \ # RUN: -mcpu=mips32r6 # RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux \ Index: test/ELF/mips-call-hilo.s =================================================================== --- test/ELF/mips-call-hilo.s +++ test/ELF/mips-call-hilo.s @@ -5,7 +5,7 @@ # RUN: llvm-objdump -d %t.so | FileCheck %s # RUN: llvm-readobj -r -mips-plt-got %t.so | FileCheck -check-prefix=GOT %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # CHECK: Disassembly of section .text: # CHECK-NEXT: foo: Index: test/ELF/mips-call16.s =================================================================== --- test/ELF/mips-call16.s +++ test/ELF/mips-call16.s @@ -6,7 +6,7 @@ # RUN: llvm-readobj -mips-plt-got -symbols %t.exe \ # RUN: | FileCheck -check-prefix=GOT %s -# REQUIRES: mips +# REQUIRES: mips-registered-target .text .globl __start Index: test/ELF/mips-dynamic.s =================================================================== --- test/ELF/mips-dynamic.s +++ test/ELF/mips-dynamic.s @@ -16,7 +16,7 @@ # RUN: llvm-readobj -sections -dyn-symbols -dynamic-table %t.so \ # RUN: | FileCheck -check-prefix=DSO %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # EXE: Sections [ # EXE: Name: .dynamic Index: test/ELF/mips-dynsym-sort.s =================================================================== --- test/ELF/mips-dynsym-sort.s +++ test/ELF/mips-dynsym-sort.s @@ -8,7 +8,7 @@ # RUN: ld.lld -shared %t-el.o -o %t-el.so # RUN: llvm-readobj -symbols -dyn-symbols %t-el.so | FileCheck %s -# REQUIRES: mips +# REQUIRES: mips-registered-target .data .globl v1,v2,v3 Index: test/ELF/mips-elf-flags-err.s =================================================================== --- test/ELF/mips-elf-flags-err.s +++ test/ELF/mips-elf-flags-err.s @@ -57,7 +57,7 @@ # RUN: %s -o %t2.o # RUN: not ld.lld %t1.o %t2.o -o %t.exe 2>&1 | FileCheck -check-prefix=NAN %s -# REQUIRES: mips +# REQUIRES: mips-registered-target .option pic0 .text Index: test/ELF/mips-elf-flags.s =================================================================== --- test/ELF/mips-elf-flags.s +++ test/ELF/mips-elf-flags.s @@ -41,7 +41,7 @@ # RUN: ld.lld %t.o %t-mm.o -o %t.exe # RUN: llvm-readobj -h -mips-abi-flags %t.exe | FileCheck -check-prefix=MICRO %s -# REQUIRES: mips +# REQUIRES: mips-registered-target .text .globl __start Index: test/ELF/mips-gnu-hash.s =================================================================== --- test/ELF/mips-gnu-hash.s +++ test/ELF/mips-gnu-hash.s @@ -8,7 +8,7 @@ # CHECK: the .gnu.hash section is not compatible with the MIPS target. -# REQUIRES: mips +# REQUIRES: mips-registered-target .globl __start __start: Index: test/ELF/mips-got-and-copy.s =================================================================== --- test/ELF/mips-got-and-copy.s +++ test/ELF/mips-got-and-copy.s @@ -1,4 +1,4 @@ -# REQUIRES: mips +# REQUIRES: mips-registered-target # If there are two relocations such that the first one requires # dynamic COPY relocation, the second one requires GOT entry Index: test/ELF/mips-got-extsym.s =================================================================== --- test/ELF/mips-got-extsym.s +++ test/ELF/mips-got-extsym.s @@ -10,7 +10,7 @@ # RUN: ld.lld %t.o %t.so -o %t.exe # RUN: llvm-readobj -dt -t -mips-plt-got %t.exe | FileCheck %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # CHECK: Symbols [ # CHECK: Symbol { Index: test/ELF/mips-got-hilo.s =================================================================== --- test/ELF/mips-got-hilo.s +++ test/ELF/mips-got-hilo.s @@ -5,7 +5,7 @@ # RUN: llvm-objdump -d %t.so | FileCheck %s # RUN: llvm-readobj -r -mips-plt-got %t.so | FileCheck -check-prefix=GOT %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # CHECK: Disassembly of section .text: # CHECK-NEXT: foo: Index: test/ELF/mips-got-page-script.s =================================================================== --- test/ELF/mips-got-page-script.s +++ test/ELF/mips-got-page-script.s @@ -8,7 +8,7 @@ # RUN: ld.lld -shared --script %t.script -o %t.so %t.o # RUN: llvm-readobj -t -mips-plt-got %t.so | FileCheck %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # CHECK: Name: foo1 # CHECK-NEXT: Value: 0x10000 Index: test/ELF/mips-got-page.s =================================================================== --- test/ELF/mips-got-page.s +++ test/ELF/mips-got-page.s @@ -6,7 +6,7 @@ # RUN: ld.lld --section-start .rodata=0x27FFC -shared -o %t.so %t.o # RUN: llvm-readobj -t -mips-plt-got %t.so | FileCheck %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # CHECK: Name: bar # CHECK-NEXT: Value: 0x28000 Index: test/ELF/mips-got-redundant.s =================================================================== --- test/ELF/mips-got-redundant.s +++ test/ELF/mips-got-redundant.s @@ -4,7 +4,7 @@ # RUN: ld.lld %t.o -shared -o %t.so # RUN: llvm-readobj -mips-plt-got %t.so | FileCheck %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # CHECK: Local entries [ # CHECK-NEXT: Entry { Index: test/ELF/mips-got-relocs.s =================================================================== --- test/ELF/mips-got-relocs.s +++ test/ELF/mips-got-relocs.s @@ -30,7 +30,7 @@ # RUN: llvm-readobj -relocations %t-el.so | FileCheck -check-prefix=NORELOC %s # RUN: llvm-readobj -sections %t-el.so | FileCheck -check-prefix=SHFLAGS %s -# REQUIRES: mips +# REQUIRES: mips-registered-target .text .globl __start Index: test/ELF/mips-got-script.s =================================================================== --- test/ELF/mips-got-script.s +++ test/ELF/mips-got-script.s @@ -5,7 +5,7 @@ # RUN: ld.lld %t.o -shared -o %t.so -T %t.script # RUN: llvm-readobj -mips-plt-got -dynamic-table %t.so | FileCheck %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # CHECK: 0x7000000A MIPS_LOCAL_GOTNO 5 # ^-- 2 * header + 3 local entries Index: test/ELF/mips-got-string.s =================================================================== --- test/ELF/mips-got-string.s +++ test/ELF/mips-got-string.s @@ -4,7 +4,7 @@ # RUN: ld.lld -shared -o %t.so %t.o # RUN: llvm-readobj -t -mips-plt-got %t.so | FileCheck %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # CHECK: Symbol { # CHECK: Name: $.str Index: test/ELF/mips-got-weak.s =================================================================== --- test/ELF/mips-got-weak.s +++ test/ELF/mips-got-weak.s @@ -8,7 +8,7 @@ # RUN: llvm-readobj -r -dt -dynamic-table -mips-plt-got %t2.so \ # RUN: | FileCheck -check-prefix=SYM %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # NOSYM: Relocations [ # NOSYM-NEXT: ] Index: test/ELF/mips-got16-relocatable.s =================================================================== --- test/ELF/mips-got16-relocatable.s +++ test/ELF/mips-got16-relocatable.s @@ -7,7 +7,7 @@ # RUN: ld.lld -shared -o %t.so %t # RUN: llvm-objdump -d %t.so | FileCheck -check-prefix=SO %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # OBJ: Disassembly of section .text: # OBJ-NEXT: .text: Index: test/ELF/mips-got16.s =================================================================== --- test/ELF/mips-got16.s +++ test/ELF/mips-got16.s @@ -5,7 +5,7 @@ # RUN: llvm-objdump -d -t %t.so | FileCheck %s # RUN: llvm-readobj -r -mips-plt-got %t.so | FileCheck -check-prefix=GOT %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # CHECK: Disassembly of section .text: # CHECK-NEXT: __start: Index: test/ELF/mips-gp-disp-ver.s =================================================================== --- test/ELF/mips-gp-disp-ver.s +++ test/ELF/mips-gp-disp-ver.s @@ -7,7 +7,7 @@ # RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t.o # RUN: ld.lld %t.o %S/Inputs/mips-gp-dips-corrupt-ver.so -# REQUIRES: mips +# REQUIRES: mips-registered-target .global __start .text Index: test/ELF/mips-gp-disp.s =================================================================== --- test/ELF/mips-gp-disp.s +++ test/ELF/mips-gp-disp.s @@ -9,7 +9,7 @@ # RUN: llvm-objdump -d -t %t.so | FileCheck -check-prefix=DIS %s # RUN: llvm-readobj -relocations %t.so | FileCheck -check-prefix=REL %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # INT-SO: Name: _gp_disp # INT-SO-NEXT: Value: Index: test/ELF/mips-gp-ext.s =================================================================== --- test/ELF/mips-gp-ext.s +++ test/ELF/mips-gp-ext.s @@ -24,7 +24,7 @@ # RUN: ld.lld -shared -o %t.abs.so --script %t.abs.script %t.o # RUN: llvm-objdump -s -t %t.abs.so | FileCheck --check-prefix=ABS %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # REL: Contents of section .text: # REL-NEXT: 0000 3c080000 2108010c 8f82fffc Index: test/ELF/mips-gp-local.s =================================================================== --- test/ELF/mips-gp-local.s +++ test/ELF/mips-gp-local.s @@ -4,7 +4,7 @@ # RUN: ld.lld -o %t.exe %t.o # RUN: llvm-objdump -d -t %t.exe | FileCheck %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # CHECK: Disassembly of section .text: # CHECK-NEXT: __start: Index: test/ELF/mips-gp-lowest.s =================================================================== --- test/ELF/mips-gp-lowest.s +++ test/ELF/mips-gp-lowest.s @@ -8,7 +8,7 @@ # RUN: ld.lld %t.o --script %t.rel.script -shared -o %t.so # RUN: llvm-readobj -s -t %t.so | FileCheck %s -# REQUIRES: mips +# REQUIRES: mips-registered-target .text .global foo Index: test/ELF/mips-gprel-sec.s =================================================================== --- test/ELF/mips-gprel-sec.s +++ test/ELF/mips-gprel-sec.s @@ -4,7 +4,7 @@ # RUN: ld.lld %t.o -shared -o %t.so # RUN: llvm-readobj -s %t.so | FileCheck %s -# REQUIRES: mips +# REQUIRES: mips-registered-target .text nop Index: test/ELF/mips-gprel32-relocs-gp0.s =================================================================== --- test/ELF/mips-gprel32-relocs-gp0.s +++ test/ELF/mips-gprel32-relocs-gp0.s @@ -15,7 +15,7 @@ # RUN: not ld.lld -r -o %t-rel.o %S/Inputs/mips-gp0-non-zero.o 2>&1 \ # RUN: | FileCheck --check-prefix=ERR %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # REL: GP: 0x0 Index: test/ELF/mips-gprel32-relocs.s =================================================================== --- test/ELF/mips-gprel32-relocs.s +++ test/ELF/mips-gprel32-relocs.s @@ -4,7 +4,7 @@ # RUN: ld.lld -shared -o %t.so %t.o # RUN: llvm-objdump -s -section=.rodata -t %t.so | FileCheck %s -# REQUIRES: mips +# REQUIRES: mips-registered-target .text .globl __start Index: test/ELF/mips-higher-highest.s =================================================================== --- test/ELF/mips-higher-highest.s +++ test/ELF/mips-higher-highest.s @@ -6,7 +6,7 @@ # RUN: ld.lld %t1.o %t2.o -o %t.exe # RUN: llvm-objdump -d %t.exe | FileCheck %s -# REQUIRES: mips +# REQUIRES: mips-registered-target .global __start __start: Index: test/ELF/mips-hilo-gp-disp.s =================================================================== --- test/ELF/mips-hilo-gp-disp.s +++ test/ELF/mips-hilo-gp-disp.s @@ -8,7 +8,7 @@ # RUN: ld.lld %t1.o %t2.o -shared -o %t.so # RUN: llvm-objdump -d -t %t.so | FileCheck -check-prefix=SO %s -# REQUIRES: mips +# REQUIRES: mips-registered-target .text .globl __start Index: test/ELF/mips-hilo-hi-only.s =================================================================== --- test/ELF/mips-hilo-hi-only.s +++ test/ELF/mips-hilo-hi-only.s @@ -4,7 +4,7 @@ # RUN: ld.lld %t.o -o %t.exe 2>&1 | FileCheck -check-prefix=WARN %s # RUN: llvm-objdump -d -t %t.exe | FileCheck %s -# REQUIRES: mips +# REQUIRES: mips-registered-target .text .globl __start Index: test/ELF/mips-hilo.s =================================================================== --- test/ELF/mips-hilo.s +++ test/ELF/mips-hilo.s @@ -4,7 +4,7 @@ # RUN: ld.lld %t.o -o %t.exe # RUN: llvm-objdump -d -t %t.exe | FileCheck %s -# REQUIRES: mips +# REQUIRES: mips-registered-target .text .globl __start Index: test/ELF/mips-jalr.test =================================================================== --- test/ELF/mips-jalr.test +++ test/ELF/mips-jalr.test @@ -5,7 +5,7 @@ # RUN: llvm-objdump -d %t.so | FileCheck %s # RUN: llvm-readobj -relocations %t.so | FileCheck -check-prefix=REL %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # CHECK: 10000: 09 f8 20 03 jalr $25 Index: test/ELF/mips-lo16-not-relative.s =================================================================== --- test/ELF/mips-lo16-not-relative.s +++ test/ELF/mips-lo16-not-relative.s @@ -9,7 +9,7 @@ # RUN: ld.lld %t.o %t.so -o %t.exe # RUN: llvm-readobj -r %t.exe | FileCheck %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # CHECK: Relocations [ # CHECK-NEXT: Section (7) .rel.dyn { Index: test/ELF/mips-merge-abiflags.s =================================================================== --- test/ELF/mips-merge-abiflags.s +++ test/ELF/mips-merge-abiflags.s @@ -8,7 +8,7 @@ # RUN: %p/Inputs/mips-concatenated-abiflags.o | \ # RUN: FileCheck --check-prefix=INPUT-OBJECT %s -# REQUIRES: mips +# REQUIRES: mips-registered-target .globl __start __start: nop Index: test/ELF/mips-micro-got.s =================================================================== --- test/ELF/mips-micro-got.s +++ test/ELF/mips-micro-got.s @@ -8,7 +8,7 @@ # RUN: ld.lld %t1.o %t.so -o %t.exe # RUN: llvm-readobj -mips-plt-got %t.exe | FileCheck %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # CHECK: Local entries [ # CHECK-NEXT: Entry { Index: test/ELF/mips-micro-got64.s =================================================================== --- test/ELF/mips-micro-got64.s +++ test/ELF/mips-micro-got64.s @@ -8,7 +8,7 @@ # RUN: ld.lld %t1.o %t.so -o %t.exe # RUN: llvm-readobj -mips-plt-got %t.exe | FileCheck %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # CHECK: Local entries [ # CHECK-NEXT: Entry { Index: test/ELF/mips-micro-jal.s =================================================================== --- test/ELF/mips-micro-jal.s +++ test/ELF/mips-micro-jal.s @@ -45,7 +45,7 @@ # RUN: llvm-objdump -d -mattr=micromips %teb.exe \ # RUN: | FileCheck --check-prefix=MIXED %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # EB: Disassembly of section .plt: # EB-NEXT: .plt: Index: test/ELF/mips-micro-plt.s =================================================================== --- test/ELF/mips-micro-plt.s +++ test/ELF/mips-micro-plt.s @@ -8,7 +8,7 @@ # RUN: ld.lld %t-exe.o %t.so -o %t.exe # RUN: llvm-readobj -t -dt -mips-plt-got %t.exe | FileCheck %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # CHECK: Symbols [ # CHECK: Symbol { Index: test/ELF/mips-micro-relocs.s =================================================================== --- test/ELF/mips-micro-relocs.s +++ test/ELF/mips-micro-relocs.s @@ -16,7 +16,7 @@ # RUN: llvm-objdump -d -t -mattr=micromips %tel.exe \ # RUN: | FileCheck --check-prefixes=EL,SYM %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # EB: __start: # EB-NEXT: 20010: 41 a3 00 01 lui $3, 1 Index: test/ELF/mips-micro-thunks.s =================================================================== --- test/ELF/mips-micro-thunks.s +++ test/ELF/mips-micro-thunks.s @@ -18,7 +18,7 @@ # RUN: llvm-objdump -d -mattr=+micromips %t-el.exe \ # RUN: | FileCheck --check-prefix=EL %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # EB: __start: # EB-NEXT: 20000: f4 01 00 04 jal 131080 <__microLA25Thunk_foo> Index: test/ELF/mips-n32-emul.s =================================================================== --- test/ELF/mips-n32-emul.s +++ test/ELF/mips-n32-emul.s @@ -4,7 +4,7 @@ # RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t.o # RUN: not ld.lld -m elf32btsmipn32 %t.o -o %t.exe 2>&1 | FileCheck %s -# REQUIRES: mips +# REQUIRES: mips-registered-target .text .global __start Index: test/ELF/mips-n32-rels.s =================================================================== --- test/ELF/mips-n32-rels.s +++ test/ELF/mips-n32-rels.s @@ -8,7 +8,7 @@ # RUN: llvm-objdump -t -d -s %t.exe | FileCheck %s # RUN: llvm-readobj -h %t.exe | FileCheck -check-prefix=ELF %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # .text # .type __start, @function Index: test/ELF/mips-no-objects.s =================================================================== --- test/ELF/mips-no-objects.s +++ test/ELF/mips-no-objects.s @@ -1,4 +1,4 @@ -# REQUIRES: mips +# REQUIRES: mips-registered-target # RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t.o # RUN: ld.lld %t.o -shared -o %t.so # RUN: ld.lld %t.so -shared -o %t2.so Index: test/ELF/mips-nonalloc.s =================================================================== --- test/ELF/mips-nonalloc.s +++ test/ELF/mips-nonalloc.s @@ -6,7 +6,7 @@ # RUN: ld.lld %t1.o %t2.o -o %t.exe # RUN: llvm-objdump -s %t.exe | FileCheck %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # CHECK: Contents of section .debug_info: # CHECK-NEXT: 0000 ffffffff 00020000 00020000 Index: test/ELF/mips-npic-call-pic-os.s =================================================================== --- test/ELF/mips-npic-call-pic-os.s +++ test/ELF/mips-npic-call-pic-os.s @@ -1,4 +1,4 @@ -# REQUIRES: mips +# REQUIRES: mips-registered-target # Check LA25 stubs creation with caller in different Output Section to callee. # This stub code is necessary when non-PIC code calls PIC function. Index: test/ELF/mips-npic-call-pic-script.s =================================================================== --- test/ELF/mips-npic-call-pic-script.s +++ test/ELF/mips-npic-call-pic-script.s @@ -1,4 +1,4 @@ -# REQUIRES: mips +# REQUIRES: mips-registered-target # Check LA25 stubs creation. This stub code is necessary when # non-PIC code calls PIC function. # RUN: echo "SECTIONS { .out 0x20000 : { *(.text.*) . = . + 0x100 ; *(.text) } }" > %t1.script Index: test/ELF/mips-npic-call-pic.s =================================================================== --- test/ELF/mips-npic-call-pic.s +++ test/ELF/mips-npic-call-pic.s @@ -1,4 +1,4 @@ -# REQUIRES: mips +# REQUIRES: mips-registered-target # Check LA25 stubs creation. This stub code is necessary when # non-PIC code calls PIC function. Index: test/ELF/mips-options-r.test =================================================================== --- test/ELF/mips-options-r.test +++ test/ELF/mips-options-r.test @@ -13,6 +13,6 @@ # RUN: ld.lld -r %p/Inputs/mips-options.o -o %t.o # RUN: llvm-readobj -s %t.o | FileCheck %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # CHECK: Name: .MIPS.options Index: test/ELF/mips-options.s =================================================================== --- test/ELF/mips-options.s +++ test/ELF/mips-options.s @@ -9,7 +9,7 @@ # RUN: ld.lld %t1.o %t2.o --gc-sections --script %t.rel.script -shared -o %t.so # RUN: llvm-readobj -symbols -mips-options %t.so | FileCheck %s -# REQUIRES: mips +# REQUIRES: mips-registered-target .text .globl __start Index: test/ELF/mips-out-of-bounds-call16-reloc.s =================================================================== --- test/ELF/mips-out-of-bounds-call16-reloc.s +++ test/ELF/mips-out-of-bounds-call16-reloc.s @@ -1,6 +1,6 @@ # Check that we create an error on an out-of-bounds R_MIPS_CALL_16 -# REQUIRES: mips +# REQUIRES: mips-registered-target # RUN: llvm-mc -filetype=obj -triple=mips64-unknown-linux %s -o %t1.o # RUN: not ld.lld %t1.o -o %t.exe 2>&1 | FileCheck %s Index: test/ELF/mips-pc-relocs.s =================================================================== --- test/ELF/mips-pc-relocs.s +++ test/ELF/mips-pc-relocs.s @@ -7,7 +7,7 @@ # RUN: ld.lld %t1.o %t2.o -o %t.exe # RUN: llvm-objdump -mcpu=mips32r6 -d -t -s %t.exe | FileCheck %s -# REQUIRES: mips +# REQUIRES: mips-registered-target .text .globl __start Index: test/ELF/mips-plt-copy.s =================================================================== --- test/ELF/mips-plt-copy.s +++ test/ELF/mips-plt-copy.s @@ -8,7 +8,7 @@ # RUN: ld.lld %t.o %t.so -o %t.exe # RUN: llvm-readobj -r -mips-plt-got %t.exe | FileCheck %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # CHECK: Relocations [ # CHECK-NEXT: Section ({{.*}}) .rel.dyn { Index: test/ELF/mips-plt-r6.s =================================================================== --- test/ELF/mips-plt-r6.s +++ test/ELF/mips-plt-r6.s @@ -8,7 +8,7 @@ # RUN: ld.lld %t1.o %t.so -o %t.exe # RUN: llvm-objdump -d %t.exe | FileCheck %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # CHECK: Disassembly of section .text: # CHECK-NEXT: __start: Index: test/ELF/mips-reginfo.s =================================================================== --- test/ELF/mips-reginfo.s +++ test/ELF/mips-reginfo.s @@ -6,7 +6,7 @@ # RUN: ld.lld %t1.o %t2.o --gc-sections -shared -o %t.so # RUN: llvm-readobj -symbols -mips-reginfo %t.so | FileCheck %s -# REQUIRES: mips +# REQUIRES: mips-registered-target .text .globl __start Index: test/ELF/mips-relocatable.s =================================================================== --- test/ELF/mips-relocatable.s +++ test/ELF/mips-relocatable.s @@ -4,7 +4,7 @@ # RUN: ld.lld -r -o %t-r.o %t.o # RUN: llvm-objdump -s -t %t-r.o | FileCheck %s -# REQUIRES: mips +# REQUIRES: mips-registered-target .text .global __start Index: test/ELF/mips-sto-pic-flag.s =================================================================== --- test/ELF/mips-sto-pic-flag.s +++ test/ELF/mips-sto-pic-flag.s @@ -8,7 +8,7 @@ # RUN: ld.lld -r %t-npic.o %t-pic.o -o %t-rel.o # RUN: llvm-readobj -t %t-rel.o | FileCheck %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # CHECK: Symbol { # CHECK: Name: main Index: test/ELF/mips-sto-plt.s =================================================================== --- test/ELF/mips-sto-plt.s +++ test/ELF/mips-sto-plt.s @@ -7,7 +7,7 @@ # RUN: ld.lld %t.o %t.so -o %t.exe # RUN: llvm-readobj -dt -mips-plt-got %t.exe | FileCheck %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # CHECK: Symbol { # CHECK: Name: foo0@ Index: test/ELF/mips-tls-64.s =================================================================== --- test/ELF/mips-tls-64.s +++ test/ELF/mips-tls-64.s @@ -13,7 +13,7 @@ # RUN: llvm-objdump -d -s -t %t-out.so | FileCheck -check-prefix=DIS-SO %s # RUN: llvm-readobj -r -mips-plt-got %t-out.so | FileCheck -check-prefix=SO %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # DIS: __start: # DIS-NEXT: 20000: 24 62 80 20 addiu $2, $3, -32736 Index: test/ELF/mips-tls-hilo.s =================================================================== --- test/ELF/mips-tls-hilo.s +++ test/ELF/mips-tls-hilo.s @@ -9,7 +9,7 @@ # RUN: ld.lld %t.o -shared -o %t.so # RUN: llvm-readobj -r -mips-plt-got %t.so | FileCheck -check-prefix=SO %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # DIS: __start: # DIS-NEXT: 20000: 24 62 00 00 addiu $2, $3, 0 Index: test/ELF/mips-tls-static-64.s =================================================================== --- test/ELF/mips-tls-static-64.s +++ test/ELF/mips-tls-static-64.s @@ -5,7 +5,7 @@ # RUN: ld.lld -static %t -o %t.exe # RUN: llvm-objdump -s -t %t.exe | FileCheck %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # CHECK: Contents of section .data: # CHECK-NEXT: 30000 00020004 ffffffff ffff8004 ffffffff Index: test/ELF/mips-tls-static.s =================================================================== --- test/ELF/mips-tls-static.s +++ test/ELF/mips-tls-static.s @@ -5,7 +5,7 @@ # RUN: ld.lld -static %t -o %t.exe # RUN: llvm-objdump -s -t %t.exe | FileCheck %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # CHECK: Contents of section .data: # CHECK-NEXT: 30000 0002000c ffff8004 ffff9004 Index: test/ELF/mips-tls.s =================================================================== --- test/ELF/mips-tls.s +++ test/ELF/mips-tls.s @@ -13,7 +13,7 @@ # RUN: llvm-objdump -d -s -t %t-out.so | FileCheck -check-prefix=DIS-SO %s # RUN: llvm-readobj -r -mips-plt-got %t-out.so | FileCheck -check-prefix=SO %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # DIS: __start: # DIS-NEXT: 20000: 24 62 80 18 addiu $2, $3, -32744 Index: test/ELF/mips-xgot-order.s =================================================================== --- test/ELF/mips-xgot-order.s +++ test/ELF/mips-xgot-order.s @@ -5,7 +5,7 @@ # RUN: ld.lld %t.o -o %t.exe # RUN: llvm-objdump -d -s -t %t.exe | FileCheck %s -# REQUIRES: mips +# REQUIRES: mips-registered-target # CHECK: Disassembly of section .text: # CHECK-NEXT: __start: Index: test/ELF/mips64-eh-abs-reloc.s =================================================================== --- test/ELF/mips64-eh-abs-reloc.s +++ test/ELF/mips64-eh-abs-reloc.s @@ -1,5 +1,5 @@ # Having an R_MIPS_64 relocation in eh_frame would previously crash LLD -# REQUIRES: mips +# REQUIRES: mips-registered-target # RUN: llvm-mc -filetype=obj -triple=mips64-unknown-freebsd %s -o %t.o # RUN: llvm-readobj -r %t.o | FileCheck %s -check-prefix OBJ # RUN: ld.lld --eh-frame-hdr -shared -z notext -o %t.so %t.o Index: test/ELF/new-dtags.test =================================================================== --- test/ELF/new-dtags.test +++ test/ELF/new-dtags.test @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: ld.lld %t.o -rpath=/somepath -shared --disable-new-dtags -o %t // RUN: ld.lld %t.o -rpath=/somepath -shared --enable-new-dtags -o %t2 Index: test/ELF/no-augmentation.s =================================================================== --- test/ELF/no-augmentation.s +++ test/ELF/no-augmentation.s @@ -1,7 +1,7 @@ // RUN: llvm-mc -filetype=obj -triple=mips64-unknown-freebsd %s -o %t.o // RUN: ld.lld --eh-frame-hdr %t.o -o %t | FileCheck -allow-empty %s -// REQUIRES: mips +// REQUIRES: mips-registered-target // CHECK-NOT: corrupted or unsupported CIE information // CHECK-NOT: corrupted CIE Index: test/ELF/no-dynamic-linker.s =================================================================== --- test/ELF/no-dynamic-linker.s +++ test/ELF/no-dynamic-linker.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/shared.s -o %tso.o # RUN: ld.lld -shared %tso.o -o %t.so # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o Index: test/ELF/no-inhibit-exec.s =================================================================== --- test/ELF/no-inhibit-exec.s +++ test/ELF/no-inhibit-exec.s @@ -3,7 +3,7 @@ # RUN: ld.lld %t --noinhibit-exec -o %t2 # RUN: llvm-objdump -d %t2 | FileCheck %s # RUN: llvm-readobj -r %t2 | FileCheck %s --check-prefix=RELOC -# REQUIRES: x86 +# REQUIRES: x86-registered-target # CHECK: Disassembly of section .text: # CHECK-NEXT: _start Index: test/ELF/no-merge.s =================================================================== --- test/ELF/no-merge.s +++ test/ELF/no-merge.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: echo "SECTIONS { .rodata : {*(.rodata.*)} }" > %t0.script # RUN: ld.lld %t.o -o %t0.out --script %t0.script Index: test/ELF/no-obj.s =================================================================== --- test/ELF/no-obj.s +++ test/ELF/no-obj.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: llvm-ar rcs %t.a %t.o // RUN: not ld.lld -o %t2 -u _start %t.a 2>&1 | FileCheck %s Index: test/ELF/no-plt-shared.s =================================================================== --- test/ELF/no-plt-shared.s +++ test/ELF/no-plt-shared.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/shared.s -o %t.o // RUN: ld.lld %t.o -o %t.so -shared Index: test/ELF/no-soname.s =================================================================== --- test/ELF/no-soname.s +++ test/ELF/no-soname.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: mkdir -p %T/no-soname // RUN: ld.lld %t.o -shared -o %T/no-soname/libfoo.so Index: test/ELF/no-symtab.s =================================================================== --- test/ELF/no-symtab.s +++ test/ELF/no-symtab.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: ld.lld %t.o %p/Inputs/no-symtab.o -o %t .global _start Index: test/ELF/no-undefined.s =================================================================== --- test/ELF/no-undefined.s +++ test/ELF/no-undefined.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: not ld.lld --no-undefined -shared %t -o %t.so # RUN: ld.lld -shared %t -o %t1.so Index: test/ELF/non-abs-reloc.s =================================================================== --- test/ELF/non-abs-reloc.s +++ test/ELF/non-abs-reloc.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: ld.lld %t.o -o %t 2>&1 | FileCheck %s // CHECK: (.nonalloc+0x1): has non-ABS relocation R_X86_64_PC32 against symbol '_start' Index: test/ELF/noplt-pie.s =================================================================== --- test/ELF/noplt-pie.s +++ test/ELF/noplt-pie.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.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 Index: test/ELF/note-contiguous.s =================================================================== --- test/ELF/note-contiguous.s +++ test/ELF/note-contiguous.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: echo "SECTIONS { \ // RUN: .note : { *(.note.a) *(.note.b) } \ Index: test/ELF/note-loadaddr.c =================================================================== --- test/ELF/note-loadaddr.c +++ test/ELF/note-loadaddr.c @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: echo "SECTIONS { \ // RUN: .note.a : AT(0x1000) { *(.note.a) } \ Index: test/ELF/note-multiple.s =================================================================== --- test/ELF/note-multiple.s +++ test/ELF/note-multiple.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: echo "SECTIONS { \ // RUN: .note.a : { *(.note.a) } \ Index: test/ELF/note.s =================================================================== --- test/ELF/note.s +++ test/ELF/note.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: ld.lld %t.o -o %t -shared // RUN: llvm-readobj -program-headers %t | FileCheck %s Index: test/ELF/oformat-binary-ttext.s =================================================================== --- test/ELF/oformat-binary-ttext.s +++ test/ELF/oformat-binary-ttext.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: ld.lld -N -Ttext 0x100 -o %t.out %t --oformat binary Index: test/ELF/oformat-binary.s =================================================================== --- test/ELF/oformat-binary.s +++ test/ELF/oformat-binary.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: ld.lld -o %t.out %t --oformat binary Index: test/ELF/openbsd-randomize.s =================================================================== --- test/ELF/openbsd-randomize.s +++ test/ELF/openbsd-randomize.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t # RUN: ld.lld %t -o %t.out # RUN: llvm-readobj --program-headers %t.out | FileCheck %s Index: test/ELF/openbsd-wxneeded.s =================================================================== --- test/ELF/openbsd-wxneeded.s +++ test/ELF/openbsd-wxneeded.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t # RUN: ld.lld -z wxneeded %t -o %t.out # RUN: llvm-readobj --program-headers %t.out | FileCheck %s Index: test/ELF/output-section.s =================================================================== --- test/ELF/output-section.s +++ test/ELF/output-section.s @@ -1,7 +1,7 @@ // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t // RUN: ld.lld %t -o %t2 // RUN: llvm-readobj -t %t2 | FileCheck %s -// REQUIRES: x86 +// REQUIRES: x86-registered-target // CHECK: Symbol { // CHECK: Name: bar_sym Index: test/ELF/pack-dyn-relocs.s =================================================================== --- test/ELF/pack-dyn-relocs.s +++ test/ELF/pack-dyn-relocs.s @@ -1,4 +1,4 @@ -// REQUIRES: arm, aarch64 +// REQUIRES: arm-registered-target, aarch64-registered-target // RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %p/Inputs/arm-shared.s -o %t.a32.so.o // RUN: ld.lld -shared %t.a32.so.o -o %t.a32.so Index: test/ELF/phdr-align.s =================================================================== --- test/ELF/phdr-align.s +++ test/ELF/phdr-align.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: echo "SECTIONS { \ Index: test/ELF/pie-weak.s =================================================================== --- test/ELF/pie-weak.s +++ test/ELF/pie-weak.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -relax-relocations=false -triple=x86_64-unknown-linux %s -o %t.o # RUN: ld.lld --hash-style=sysv -pie %t.o -o %t # RUN: llvm-readobj -r %t | FileCheck --check-prefix=RELOCS %s Index: test/ELF/pie.s =================================================================== --- test/ELF/pie.s +++ test/ELF/pie.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o ## Default is no PIE. Index: test/ELF/plt-aarch64.s =================================================================== --- test/ELF/plt-aarch64.s +++ test/ELF/plt-aarch64.s @@ -10,7 +10,7 @@ // RUN: llvm-objdump -s -section=.got.plt %t.exe | FileCheck --check-prefix=DUMPEXE %s // RUN: llvm-objdump -d %t.exe | FileCheck --check-prefix=DISASMEXE %s -// REQUIRES: aarch64 +// REQUIRES: aarch64-registered-target // CHECKDSO: Name: .plt // CHECKDSO-NEXT: Type: SHT_PROGBITS Index: test/ELF/plt-i686.s =================================================================== --- test/ELF/plt-i686.s +++ test/ELF/plt-i686.s @@ -9,7 +9,7 @@ // RUN: llvm-objdump -d %t | FileCheck --check-prefix=DISASMSHARED %s // RUN: ld.lld -pie %t.o %t2.so -o %t // RUN: llvm-objdump -d %t | FileCheck --check-prefix=DISASMPIE %s -// REQUIRES: x86 +// REQUIRES: x86-registered-target // CHECK: Name: .plt // CHECK-NEXT: Type: SHT_PROGBITS Index: test/ELF/plt.s =================================================================== --- test/ELF/plt.s +++ test/ELF/plt.s @@ -8,7 +8,7 @@ // RUN: llvm-readobj -s -r %t3 | FileCheck --check-prefix=CHECK2 %s // RUN: llvm-objdump -d %t3 | FileCheck --check-prefix=DISASM2 %s -// REQUIRES: x86 +// REQUIRES: x86-registered-target // CHECK: Name: .plt // CHECK-NEXT: Type: SHT_PROGBITS Index: test/ELF/ppc-rela.s =================================================================== --- test/ELF/ppc-rela.s +++ test/ELF/ppc-rela.s @@ -1,4 +1,4 @@ -# REQUIRES: ppc +# REQUIRES: powerpc-registered-target # RUN: llvm-mc -filetype=obj -triple=powerpc-unknown-freebsd %s -o %t # RUN: ld.lld %t -o %t2 -shared # RUN: llvm-readobj -r %t2 | FileCheck %s Index: test/ELF/ppc-relocs.s =================================================================== --- test/ELF/ppc-relocs.s +++ test/ELF/ppc-relocs.s @@ -1,7 +1,7 @@ # RUN: llvm-mc -filetype=obj -triple=powerpc-unknown-freebsd %s -o %t # RUN: ld.lld %t -o %t2 # RUN: llvm-objdump -d %t2 | FileCheck %s -# REQUIRES: ppc +# REQUIRES: powerpc-registered-target .section .R_PPC_ADDR16_HA,"ax",@progbits .globl _start Index: test/ELF/ppc64-addr16-error.s =================================================================== --- test/ELF/ppc64-addr16-error.s +++ test/ELF/ppc64-addr16-error.s @@ -1,7 +1,7 @@ // RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %s -o %t // RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %p/Inputs/ppc64-addr16-error.s -o %t2 // RUN: not ld.lld -shared %t %t2 -o %t3 2>&1 | FileCheck %s -// REQUIRES: ppc +// REQUIRES: powerpc-registered-target .short sym+65539 Index: test/ELF/ppc64-ifunc.s =================================================================== --- test/ELF/ppc64-ifunc.s +++ test/ELF/ppc64-ifunc.s @@ -1,4 +1,4 @@ -# REQUIRES: ppc +# REQUIRES: powerpc-registered-target # RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %s -o %t.o # RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %p/Inputs/shared-ppc64.s -o %t2.o # RUN: ld.lld -shared %t2.o -o %t2.so Index: test/ELF/ppc64-rel-calls.s =================================================================== --- test/ELF/ppc64-rel-calls.s +++ test/ELF/ppc64-rel-calls.s @@ -1,7 +1,7 @@ # RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %s -o %t # RUN: ld.lld %t -o %t2 # RUN: llvm-objdump -d %t2 | FileCheck %s -# REQUIRES: ppc +# REQUIRES: powerpc-registered-target # CHECK: Disassembly of section .text: Index: test/ELF/ppc64-relocs.s =================================================================== --- test/ELF/ppc64-relocs.s +++ test/ELF/ppc64-relocs.s @@ -1,7 +1,7 @@ # RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %s -o %t # RUN: ld.lld %t -o %t2 # RUN: llvm-objdump -d %t2 | FileCheck %s -# REQUIRES: ppc +# REQUIRES: powerpc-registered-target .section ".opd","aw" .global _start Index: test/ELF/ppc64-shared-rel-toc.s =================================================================== --- test/ELF/ppc64-shared-rel-toc.s +++ test/ELF/ppc64-shared-rel-toc.s @@ -1,7 +1,7 @@ // RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %s -o %t.o // RUN: ld.lld -shared %t.o -o %t.so // RUN: llvm-readobj -t -r -dyn-symbols %t.so | FileCheck %s -// REQUIRES: ppc +// REQUIRES: powerpc-registered-target // When we create the TOC reference in the shared library, make sure that the // R_PPC64_RELATIVE relocation uses the correct (non-zero) offset. Index: test/ELF/ppc64-toc-restore.s =================================================================== --- test/ELF/ppc64-toc-restore.s +++ test/ELF/ppc64-toc-restore.s @@ -3,7 +3,7 @@ // RUN: ld.lld -shared %t2.o -o %t2.so // RUN: ld.lld %t.o %t2.so -o %t // RUN: llvm-objdump -d %t | FileCheck %s -// REQUIRES: ppc +// REQUIRES: powerpc-registered-target // CHECK: Disassembly of section .text: Index: test/ELF/ppc64-weak-undef-call-shared.s =================================================================== --- test/ELF/ppc64-weak-undef-call-shared.s +++ test/ELF/ppc64-weak-undef-call-shared.s @@ -1,7 +1,7 @@ # RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %s -o %t.o # RUN: ld.lld -shared %t.o -o %t.so # RUN: llvm-readobj -t -r -dyn-symbols %t.so | FileCheck %s -# REQUIRES: ppc +# REQUIRES: powerpc-registered-target .section ".toc","aw" .quad weakfunc Index: test/ELF/ppc64-weak-undef-call.s =================================================================== --- test/ELF/ppc64-weak-undef-call.s +++ test/ELF/ppc64-weak-undef-call.s @@ -1,7 +1,7 @@ # RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %s -o %t # RUN: ld.lld %t -o %t2 # RUN: llvm-objdump -d %t2 | FileCheck %s -# REQUIRES: ppc +# REQUIRES: powerpc-registered-target # CHECK: Disassembly of section .text: Index: test/ELF/pr34660.s =================================================================== --- test/ELF/pr34660.s +++ test/ELF/pr34660.s @@ -1,4 +1,4 @@ -# REQUIRES: aarch64 +# REQUIRES: aarch64-registered-target # RUN: llvm-mc -filetype=obj -triple=aarch64-linux-none %s -o %t.o # RUN: ld.lld --hash-style=sysv -shared %t.o -o %t Index: test/ELF/pre_init_fini_array.s =================================================================== --- test/ELF/pre_init_fini_array.s +++ test/ELF/pre_init_fini_array.s @@ -4,7 +4,7 @@ // RUN: ld.lld %t %t2.so -o %t2 // RUN: llvm-readobj -r -symbols -sections -dynamic-table %t2 | FileCheck %s // RUN: llvm-objdump -d %t2 | FileCheck --check-prefix=DISASM %s -// REQUIRES: x86 +// REQUIRES: x86-registered-target .globl _start _start: Index: test/ELF/pre_init_fini_array_missing.s =================================================================== --- test/ELF/pre_init_fini_array_missing.s +++ test/ELF/pre_init_fini_array_missing.s @@ -3,7 +3,7 @@ // RUN: llvm-objdump -d %t2 | FileCheck %s // RUN: ld.lld -pie %t -o %t3 // RUN: llvm-objdump -d %t3 | FileCheck --check-prefix=PIE %s -// REQUIRES: x86 +// REQUIRES: x86-registered-target .globl _start _start: Index: test/ELF/print-icf.s =================================================================== --- test/ELF/print-icf.s +++ test/ELF/print-icf.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/print-icf.s -o %t1 Index: test/ELF/progname.s =================================================================== --- test/ELF/progname.s +++ test/ELF/progname.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: echo ".global __progname; .data; .dc.a __progname" > %t2.s // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %t2.s -o %t2.o Index: test/ELF/program-header-layout.s =================================================================== --- test/ELF/program-header-layout.s +++ test/ELF/program-header-layout.s @@ -1,7 +1,7 @@ # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: ld.lld %t -o %t2 # RUN: llvm-readobj -sections -program-headers %t2 | FileCheck %s -# REQUIRES: x86 +# REQUIRES: x86-registered-target # Check that different output sections with the same flags are merged into a # single Read/Write PT_LOAD. Index: test/ELF/protected-data-access.s =================================================================== --- test/ELF/protected-data-access.s +++ test/ELF/protected-data-access.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -triple x86_64-pc-linux -filetype=obj %p/Inputs/protected-data-access.s -o %t2.o # RUN: ld.lld %t2.o -o %t2.so -shared # RUN: llvm-mc -triple x86_64-pc-linux -filetype=obj %s -o %t.o Index: test/ELF/protected-function-access.s =================================================================== --- test/ELF/protected-function-access.s +++ test/ELF/protected-function-access.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -triple x86_64-pc-linux -filetype=obj %p/Inputs/protected-function-access.s -o %t2.o # RUN: ld.lld %t2.o -o %t2.so -shared # RUN: llvm-mc -triple x86_64-pc-linux -filetype=obj %s -o %t.o Index: test/ELF/protected-shared.s =================================================================== --- test/ELF/protected-shared.s +++ test/ELF/protected-shared.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // 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/protected-shared.s -o %t2.o // RUN: ld.lld -shared %t2.o -o %t2.so Index: test/ELF/rel-addend-with-rela-input.s =================================================================== --- test/ELF/rel-addend-with-rela-input.s +++ test/ELF/rel-addend-with-rela-input.s @@ -1,4 +1,4 @@ -# REQUIRES: mips +# REQUIRES: mips-registered-target # Check that we correctly write addends if the output use Elf_Rel but the input # uses Elf_Rela Index: test/ELF/rel-offset.s =================================================================== --- test/ELF/rel-offset.s +++ test/ELF/rel-offset.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: ld.lld %t.o -o %t -shared // RUN: llvm-readobj -r %t | FileCheck %s Index: test/ELF/relative-dynamic-reloc-pie.s =================================================================== --- test/ELF/relative-dynamic-reloc-pie.s +++ test/ELF/relative-dynamic-reloc-pie.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: ld.lld -pie %t.o -o %t.pie # RUN: llvm-readobj -r -dyn-symbols %t.pie | FileCheck %s Index: test/ELF/relative-dynamic-reloc-ppc64.s =================================================================== --- test/ELF/relative-dynamic-reloc-ppc64.s +++ test/ELF/relative-dynamic-reloc-ppc64.s @@ -1,7 +1,7 @@ // RUN: llvm-mc -filetype=obj -triple=powerpc64-unknown-linux %s -o %t.o // RUN: ld.lld -shared %t.o -o %t.so // RUN: llvm-readobj -t -r -dyn-symbols %t.so | FileCheck %s -// REQUIRES: ppc +// REQUIRES: powerpc-registered-target // Test that we create R_PPC64_RELATIVE relocations but don't put any // symbols in the dynamic symbol table. Index: test/ELF/relative-dynamic-reloc.s =================================================================== --- test/ELF/relative-dynamic-reloc.s +++ test/ELF/relative-dynamic-reloc.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o // RUN: ld.lld -shared %t.o -o %t.so // RUN: llvm-readobj -t -r -dyn-symbols %t.so | FileCheck %s Index: test/ELF/relocatable-bss.s =================================================================== --- test/ELF/relocatable-bss.s +++ test/ELF/relocatable-bss.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o # RUN: ld.lld -r %t1.o -o %t # RUN: llvm-readobj -file-headers -sections -program-headers -symbols -r %t | FileCheck %s Index: test/ELF/relocatable-build-id.s =================================================================== --- test/ELF/relocatable-build-id.s +++ test/ELF/relocatable-build-id.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o # RUN: ld.lld --build-id=0xcafebabe -o %t2.o %t1.o -r # RUN: ld.lld --build-id=0xdeadbeef -o %t.exe %t2.o Index: test/ELF/relocatable-comdat-multiple.s =================================================================== --- test/ELF/relocatable-comdat-multiple.s +++ test/ELF/relocatable-comdat-multiple.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/relocatable-comdat-multiple.s -o %t2.o # RUN: ld.lld -r %t.o %t2.o -o %t Index: test/ELF/relocatable-comdat.s =================================================================== --- test/ELF/relocatable-comdat.s +++ test/ELF/relocatable-comdat.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: ld.lld -r %t.o %t.o -o %t # RUN: llvm-readobj -elf-section-groups -sections %t | FileCheck %s Index: test/ELF/relocatable-comdat2.s =================================================================== --- test/ELF/relocatable-comdat2.s +++ test/ELF/relocatable-comdat2.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: ld.lld -r %t.o -o %t # RUN: llvm-readobj -elf-section-groups -s %t | FileCheck %s Index: test/ELF/relocatable-comment.s =================================================================== --- test/ELF/relocatable-comment.s +++ test/ELF/relocatable-comment.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o # RUN: ld.lld -r %t1.o -o %t # RUN: llvm-readobj -s -section-data %t | FileCheck %s Index: test/ELF/relocatable-common.s =================================================================== --- test/ELF/relocatable-common.s +++ test/ELF/relocatable-common.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o # RUN: ld.lld -r %t1.o -o %t # RUN: llvm-readobj -symbols -r %t | FileCheck %s Index: test/ELF/relocatable-compressed-input.s =================================================================== --- test/ELF/relocatable-compressed-input.s +++ test/ELF/relocatable-compressed-input.s @@ -1,4 +1,4 @@ -# REQUIRES: x86, zlib +# REQUIRES: x86-registered-target, zlib # RUN: llvm-mc -compress-debug-sections=zlib-gnu -filetype=obj -triple=x86_64-unknown-linux %s -o %t1 # RUN: llvm-readobj -sections %t1 | FileCheck -check-prefix=GNU %s Index: test/ELF/relocatable-eh-frame-hdr.s =================================================================== --- test/ELF/relocatable-eh-frame-hdr.s +++ test/ELF/relocatable-eh-frame-hdr.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: ld.lld --eh-frame-hdr -r %t.o -o %t # RUN: llvm-readobj -s %t | FileCheck %s Index: test/ELF/relocatable-eh-frame.s =================================================================== --- test/ELF/relocatable-eh-frame.s +++ test/ELF/relocatable-eh-frame.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: ld.lld -r %t.o %t.o -o %t # RUN: llvm-readobj -r %t | FileCheck %s Index: test/ELF/relocatable-ehframe.s =================================================================== --- test/ELF/relocatable-ehframe.s +++ test/ELF/relocatable-ehframe.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/relocatable-ehframe.s -o %t2.o # RUN: ld.lld -r %t1.o %t2.o -o %t Index: test/ELF/relocatable-empty-archive.s =================================================================== --- test/ELF/relocatable-empty-archive.s +++ test/ELF/relocatable-empty-archive.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: rm -f %t.a # RUN: llvm-ar rc %t.a # RUN: ld.lld -m elf_x86_64 %t.a -o %t -r Index: test/ELF/relocatable-local-sym.s =================================================================== --- test/ELF/relocatable-local-sym.s +++ test/ELF/relocatable-local-sym.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o # RUN: ld.lld -r %t1.o -o %t2.o # RUN: llvm-readobj -r %t2.o | FileCheck %s Index: test/ELF/relocatable-non-alloc.s =================================================================== --- test/ELF/relocatable-non-alloc.s +++ test/ELF/relocatable-non-alloc.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %S/Inputs/relocatable-non-alloc.s -o %t2.o # RUN: ld.lld %t2.o %t2.o -r -o %t3.o Index: test/ELF/relocatable-reloc.s =================================================================== --- test/ELF/relocatable-reloc.s +++ test/ELF/relocatable-reloc.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj %s -o %t.o -triple=x86_64-pc-linux // RUN: ld.lld %t.o %t.o -r -o %t2.o // RUN: llvm-readobj -r %t2.o | FileCheck %s Index: test/ELF/relocatable-script.s =================================================================== --- test/ELF/relocatable-script.s +++ test/ELF/relocatable-script.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux -o %t1.o %s # RUN: echo "SECTIONS { .foo : { BYTE(0x0) } }" > %t.script # RUN: ld.lld -r %t1.o -script %t.script -o %t2.o Index: test/ELF/relocatable-section-symbol.s =================================================================== --- test/ELF/relocatable-section-symbol.s +++ test/ELF/relocatable-section-symbol.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: ld.lld -r -o %t %t.o %t.o # RUN: llvm-readobj -r %t | FileCheck --check-prefix=RELA %s Index: test/ELF/relocatable-sections.s =================================================================== --- test/ELF/relocatable-sections.s +++ test/ELF/relocatable-sections.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o # RUN: ld.lld -r %t1.o -o %t # RUN: llvm-objdump -section-headers %t | FileCheck %s Index: test/ELF/relocatable-symbol-name.s =================================================================== --- test/ELF/relocatable-symbol-name.s +++ test/ELF/relocatable-symbol-name.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: ld.lld -r %t.o -o %t # RUN: llvm-readobj -t %t | FileCheck %s Index: test/ELF/relocatable-symbols.s =================================================================== --- test/ELF/relocatable-symbols.s +++ test/ELF/relocatable-symbols.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: ld.lld -r %t -o %tout # RUN: llvm-objdump -d %tout | FileCheck -check-prefix=DISASM %s Index: test/ELF/relocatable-tls.s =================================================================== --- test/ELF/relocatable-tls.s +++ test/ELF/relocatable-tls.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux \ # RUN: %S/Inputs/relocatable-tls.s -o %t2.o Index: test/ELF/relocatable-versioned.s =================================================================== --- test/ELF/relocatable-versioned.s +++ test/ELF/relocatable-versioned.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o # RUN: ld.lld -o %t2.o -r %t1.o # RUN: llvm-nm %t2.o | FileCheck %s Index: test/ELF/relocatable-visibility.s =================================================================== --- test/ELF/relocatable-visibility.s +++ test/ELF/relocatable-visibility.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: ld.lld -r %t.o -o %t1 # RUN: llvm-readobj -t %t1 | FileCheck --check-prefix=RELOCATABLE %s Index: test/ELF/relocatable.s =================================================================== --- test/ELF/relocatable.s +++ test/ELF/relocatable.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/relocatable.s -o %t2.o # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/relocatable2.s -o %t3.o Index: test/ELF/relocation-absolute.s =================================================================== --- test/ELF/relocation-absolute.s +++ test/ELF/relocation-absolute.s @@ -2,7 +2,7 @@ // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t // RUN: ld.lld %tabs %t -o %tout // RUN: llvm-objdump -d %tout | FileCheck %s -// REQUIRES: x86 +// REQUIRES: x86-registered-target .global _start _start: Index: test/ELF/relocation-b-aarch64.test =================================================================== --- test/ELF/relocation-b-aarch64.test +++ test/ELF/relocation-b-aarch64.test @@ -1,4 +1,4 @@ -# REQUIRES: aarch64 +# REQUIRES: aarch64-registered-target # RUN: yaml2obj %s -o %t.o # RUN: ld.lld %t.o -o %t.out Index: test/ELF/relocation-common.s =================================================================== --- test/ELF/relocation-common.s +++ test/ELF/relocation-common.s @@ -1,7 +1,7 @@ // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t // RUN: ld.lld %t -o %tout // RUN: llvm-objdump -t -d %tout | FileCheck %s -// REQUIRES: x86 +// REQUIRES: x86-registered-target .global _start _start: Index: test/ELF/relocation-copy-alias.s =================================================================== --- test/ELF/relocation-copy-alias.s +++ test/ELF/relocation-copy-alias.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // 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/relocation-copy-alias.s -o %t2.o // RUN: ld.lld --hash-style=sysv -shared %t2.o -o %t.so Index: test/ELF/relocation-copy-align-common.s =================================================================== --- test/ELF/relocation-copy-align-common.s +++ test/ELF/relocation-copy-align-common.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux \ # RUN: %p/Inputs/relocation-copy-align-common.s -o %t2.o Index: test/ELF/relocation-copy-align.s =================================================================== --- test/ELF/relocation-copy-align.s +++ test/ELF/relocation-copy-align.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // 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/relocation-copy-align.s -o %t2.o // RUN: ld.lld -shared %t2.o -o %t.so Index: test/ELF/relocation-copy-flags.s =================================================================== --- test/ELF/relocation-copy-flags.s +++ test/ELF/relocation-copy-flags.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // 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/relocation-copy.s -o %t2.o Index: test/ELF/relocation-copy-i686.s =================================================================== --- test/ELF/relocation-copy-i686.s +++ test/ELF/relocation-copy-i686.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=i686-pc-linux %s -o %t.o // RUN: llvm-mc -filetype=obj -triple=i686-pc-linux %p/Inputs/relocation-copy.s -o %t2.o // RUN: ld.lld -shared %t2.o -o %t.so Index: test/ELF/relocation-copy-relro.s =================================================================== --- test/ELF/relocation-copy-relro.s +++ test/ELF/relocation-copy-relro.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // 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/relocation-copy-relro.s -o %t2.o // RUN: ld.lld -shared %t2.o -o %t.so Index: test/ELF/relocation-copy.s =================================================================== --- test/ELF/relocation-copy.s +++ test/ELF/relocation-copy.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // 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/relocation-copy.s -o %t2.o // RUN: ld.lld -shared %t2.o -o %t.so Index: test/ELF/relocation-i686.s =================================================================== --- test/ELF/relocation-i686.s +++ test/ELF/relocation-i686.s @@ -4,7 +4,7 @@ // RUN: ld.lld --hash-style=sysv %t %t2.so -o %t2 // RUN: llvm-readobj -s %t2 | FileCheck --check-prefix=ADDR %s // RUN: llvm-objdump -d %t2 | FileCheck %s -// REQUIRES: x86 +// REQUIRES: x86-registered-target .global _start _start: Index: test/ELF/relocation-in-merge.s =================================================================== --- test/ELF/relocation-in-merge.s +++ test/ELF/relocation-in-merge.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux // RUN: ld.lld %t.o -o %t -shared // RUN: llvm-objdump -section-headers %t | FileCheck %s Index: test/ELF/relocation-local.s =================================================================== --- test/ELF/relocation-local.s +++ test/ELF/relocation-local.s @@ -2,7 +2,7 @@ // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t // RUN: ld.lld %t -o %t2 // RUN: llvm-objdump -s -d %t2 | FileCheck %s -// REQUIRES: x86 +// REQUIRES: x86-registered-target .global _start Index: test/ELF/relocation-nocopy.s =================================================================== --- test/ELF/relocation-nocopy.s +++ test/ELF/relocation-nocopy.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // 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/relocation-copy.s -o %t2.o // RUN: ld.lld -shared %t2.o -o %t.so Index: test/ELF/relocation-non-alloc.s =================================================================== --- test/ELF/relocation-non-alloc.s +++ test/ELF/relocation-non-alloc.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t // RUN: ld.lld %t -o %t2 -shared --apply-dynamic-relocs Index: test/ELF/relocation-none-aarch64.test =================================================================== --- test/ELF/relocation-none-aarch64.test +++ test/ELF/relocation-none-aarch64.test @@ -1,4 +1,4 @@ -# REQUIRES: aarch64 +# REQUIRES: aarch64-registered-target # RUN: yaml2obj %s -o %t.o # RUN: ld.lld %t.o -o %t.out Index: test/ELF/relocation-past-merge-end.s =================================================================== --- test/ELF/relocation-past-merge-end.s +++ test/ELF/relocation-past-merge-end.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux // RUN: not ld.lld %t.o -o %t.so -shared 2>&1 | FileCheck %s // CHECK: relocation-past-merge-end.s.tmp.o:(.foo): entry is past the end of the section Index: test/ELF/relocation-relative-absolute.s =================================================================== --- test/ELF/relocation-relative-absolute.s +++ test/ELF/relocation-relative-absolute.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %tinput1.o # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux \ # RUN: %S/Inputs/relocation-relative-absolute.s -o %tinput2.o Index: test/ELF/relocation-relative-synthetic.s =================================================================== --- test/ELF/relocation-relative-synthetic.s +++ test/ELF/relocation-relative-synthetic.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: ld.lld %t.o -o %t -pie # RUN: llvm-readobj -dyn-relocations %t | FileCheck %s Index: test/ELF/relocation-relative-weak.s =================================================================== --- test/ELF/relocation-relative-weak.s +++ test/ELF/relocation-relative-weak.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: ld.lld %t.o -o %t -pie # RUN: llvm-readobj -dyn-relocations %t | FileCheck %s Index: test/ELF/relocation-shared.s =================================================================== --- test/ELF/relocation-shared.s +++ test/ELF/relocation-shared.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: ld.lld %t.o -shared -o %t.so // RUN: llvm-readobj -r -s -section-data %t.so | FileCheck %s Index: test/ELF/relocation-size-err.s =================================================================== --- test/ELF/relocation-size-err.s +++ test/ELF/relocation-size-err.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: not ld.lld %t.o -o %t.so -shared 2>&1 | FileCheck %s Index: test/ELF/relocation-undefined-weak.s =================================================================== --- test/ELF/relocation-undefined-weak.s +++ test/ELF/relocation-undefined-weak.s @@ -2,7 +2,7 @@ // RUN: ld.lld %t -o %tout // RUN: llvm-readobj -sections %tout | FileCheck %s // RUN: llvm-objdump -d %tout | FileCheck %s --check-prefix DISASM -// REQUIRES: x86 +// REQUIRES: x86-registered-target // Check that undefined weak symbols are treated as having a VA of 0. Index: test/ELF/relocation.s =================================================================== --- test/ELF/relocation.s +++ test/ELF/relocation.s @@ -4,7 +4,7 @@ // RUN: ld.lld --hash-style=sysv %t %t2.so -o %t3 // RUN: llvm-readobj -s %t3 | FileCheck --check-prefix=SEC %s // RUN: llvm-objdump -s -d %t3 | FileCheck %s -// REQUIRES: x86 +// REQUIRES: x86-registered-target // SEC: Name: .plt // SEC-NEXT: Type: SHT_PROGBITS Index: test/ELF/relro-copyrel-bss-script.s =================================================================== --- test/ELF/relro-copyrel-bss-script.s +++ test/ELF/relro-copyrel-bss-script.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/shared.s -o %t.o // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/copy-in-shared.s -o %t2.o // RUN: ld.lld -shared %t.o %t2.o -o %t.so Index: test/ELF/relro-non-contiguous-script-data.s =================================================================== --- test/ELF/relro-non-contiguous-script-data.s +++ test/ELF/relro-non-contiguous-script-data.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: echo "SECTIONS { \ // RUN: .dynamic : { *(.dynamic) } \ Index: test/ELF/relro-non-contiguous.s =================================================================== --- test/ELF/relro-non-contiguous.s +++ test/ELF/relro-non-contiguous.s @@ -15,7 +15,7 @@ // RUN: not ld.lld %t3.o %t.so -z relro -o %t --script=%t.script 2>&1 | FileCheck %s // No error when we do not request relro. // RUN: ld.lld %t3.o %t.so -z norelro -o %t --script=%t.script -// REQUIRES: x86 +// REQUIRES: x86-registered-target // CHECK: error: section: .bss.rel.ro is not contiguous with other relro sections .section .text, "ax", @progbits Index: test/ELF/relro-script.s =================================================================== --- test/ELF/relro-script.s +++ test/ELF/relro-script.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/shared.s -o %t.o // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/copy-in-shared.s -o %t2.o // RUN: ld.lld -shared %t.o %t2.o -o %t.so Index: test/ELF/relro-tls.s =================================================================== --- test/ELF/relro-tls.s +++ test/ELF/relro-tls.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t // RUN: ld.lld %t -o %tout // RUN: llvm-readobj -program-headers %tout | FileCheck %s Index: test/ELF/relro.s =================================================================== --- test/ELF/relro.s +++ test/ELF/relro.s @@ -7,7 +7,7 @@ // RUN: llvm-readobj -l --elf-output-style=GNU %t | FileCheck --check-prefix=CHECK --check-prefix=PARTRELRO %s // RUN: ld.lld %t.o %t2.so -z norelro -o %t // RUN: llvm-readobj -l --elf-output-style=GNU %t | FileCheck --check-prefix=NORELRO %s -// REQUIRES: x86 +// REQUIRES: x86-registered-target // CHECK: Program Headers: // CHECK-NEXT: Type Index: test/ELF/reproduce-backslash.s =================================================================== --- test/ELF/reproduce-backslash.s +++ test/ELF/reproduce-backslash.s @@ -1,4 +1,4 @@ -# REQUIRES: x86, shell +# REQUIRES: x86-registered-target, shell # Test that we don't erroneously replace \ with / on UNIX, as it's # legal for a filename to contain backslashes. Index: test/ELF/reproduce-linkerscript.s =================================================================== --- test/ELF/reproduce-linkerscript.s +++ test/ELF/reproduce-linkerscript.s @@ -1,4 +1,4 @@ -# REQUIRES: x86, shell +# REQUIRES: x86-registered-target, shell # RUN: rm -rf %t.dir # RUN: mkdir -p %t.dir/build Index: test/ELF/reproduce-thin-archive.s =================================================================== --- test/ELF/reproduce-thin-archive.s +++ test/ELF/reproduce-thin-archive.s @@ -1,4 +1,4 @@ -# REQUIRES: x86, shell +# REQUIRES: x86-registered-target, shell # RUN: rm -rf %t.dir # RUN: mkdir -p %t.dir Index: test/ELF/reproduce-windows.s =================================================================== --- test/ELF/reproduce-windows.s +++ test/ELF/reproduce-windows.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # Test that a repro archive always uses / instead of \. # RUN: rm -rf %t.dir Index: test/ELF/reproduce-windows2.s =================================================================== --- test/ELF/reproduce-windows2.s +++ test/ELF/reproduce-windows2.s @@ -1,4 +1,4 @@ -# REQUIRES: system-windows, x86 +# REQUIRES: system-windows, x86-registered-target # Test that a response.txt file always uses / instead of \. # RUN: rm -rf %t.dir Index: test/ELF/reproduce.s =================================================================== --- test/ELF/reproduce.s +++ test/ELF/reproduce.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # Extracting the tar archive can get over the path limit on windows. # REQUIRES: shell Index: test/ELF/resolution-end.s =================================================================== --- test/ELF/resolution-end.s +++ test/ELF/resolution-end.s @@ -3,7 +3,7 @@ # RUN: ld.lld -shared -o %t2.so %t2.o # RUN: ld.lld --hash-style=sysv %t1.o %t2.so -o %t # RUN: llvm-readobj -t -s -section-data %t | FileCheck %s -# REQUIRES: x86 +# REQUIRES: x86-registered-target # Test that we resolve _end to the this executable. Index: test/ELF/resolution-shared.s =================================================================== --- test/ELF/resolution-shared.s +++ test/ELF/resolution-shared.s @@ -3,7 +3,7 @@ // RUN: ld.lld %t2.o -o %t2.so -shared // RUN: ld.lld %t.o %t2.so -o %t3 -shared // RUN: llvm-readobj -t %t3 | FileCheck %s -// REQUIRES: x86 +// REQUIRES: x86-registered-target .weak foo foo: Index: test/ELF/resolution.s =================================================================== --- test/ELF/resolution.s +++ test/ELF/resolution.s @@ -2,7 +2,7 @@ // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/resolution.s -o %t2 // RUN: ld.lld -discard-all %t %t2 -o %t3 // RUN: llvm-readobj -t %t3 | FileCheck %s -// REQUIRES: x86 +// REQUIRES: x86-registered-target // This is an exhaustive test for checking which symbol is kept when two // have the same name. Each symbol has a different size which is used Index: test/ELF/retain-symbols-file.s =================================================================== --- test/ELF/retain-symbols-file.s +++ test/ELF/retain-symbols-file.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t # RUN: echo "bar" > %t_retain.txt # RUN: echo "foo" >> %t_retain.txt Index: test/ELF/retain-und.s =================================================================== --- test/ELF/retain-und.s +++ test/ELF/retain-und.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: echo > %t.retain # RUN: echo "{ local: *; }; " > %t.script Index: test/ELF/section-layout.s =================================================================== --- test/ELF/section-layout.s +++ test/ELF/section-layout.s @@ -1,7 +1,7 @@ # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: ld.lld %t -o %tout # RUN: llvm-readobj -sections %tout | FileCheck %s -# REQUIRES: x86 +# REQUIRES: x86-registered-target # Check that sections are laid out in the correct order. Index: test/ELF/section-metadata-err.s =================================================================== --- test/ELF/section-metadata-err.s +++ test/ELF/section-metadata-err.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # 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 Index: test/ELF/section-name.s =================================================================== --- test/ELF/section-name.s +++ test/ELF/section-name.s @@ -1,7 +1,7 @@ # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: ld.lld %t -o %tout # RUN: llvm-objdump --section-headers %tout | FileCheck %s -# REQUIRES: x86 +# REQUIRES: x86-registered-target .global _start .text Index: test/ELF/sectionstart-noallochdr.s =================================================================== --- test/ELF/sectionstart-noallochdr.s +++ test/ELF/sectionstart-noallochdr.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: ld.lld %t.o --section-start .data=0x20 \ # RUN: --section-start .bss=0x30 --section-start .text=0x10 -o %t1 Index: test/ELF/sectionstart.s =================================================================== --- test/ELF/sectionstart.s +++ test/ELF/sectionstart.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: ld.lld %t.o --section-start .text=0x100000 \ # RUN: --section-start .data=0x110000 --section-start .bss=0x200000 -o %t Index: test/ELF/segments.s =================================================================== --- test/ELF/segments.s +++ test/ELF/segments.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: ld.lld %t -o %t1 Index: test/ELF/shared-be.s =================================================================== --- test/ELF/shared-be.s +++ test/ELF/shared-be.s @@ -3,7 +3,7 @@ // RUN: ld.lld -shared %t2.o -o %t2.so // RUN: ld.lld -dynamic-linker /lib64/ld64.so.1 -rpath foo -rpath bar --export-dynamic %t.o %t2.so -o %t // RUN: llvm-readobj --dynamic-table -s %t | FileCheck %s -// REQUIRES: ppc +// REQUIRES: powerpc-registered-target // CHECK: Name: .rela.dyn // CHECK-NEXT: Type: SHT_REL Index: test/ELF/shared.s =================================================================== --- test/ELF/shared.s +++ test/ELF/shared.s @@ -6,7 +6,7 @@ // RUN: llvm-readobj --program-headers --dynamic-table -t -s -dyn-symbols -section-data -hash-table %t | FileCheck %s // RUN: ld.lld --hash-style=sysv %t.o %t2.so %t2.so -o %t2 // RUN: llvm-readobj -dyn-symbols %t2 | FileCheck --check-prefix=DONT_EXPORT %s -// REQUIRES: x86 +// REQUIRES: x86-registered-target // Make sure .symtab is properly aligned. // SO: Name: .symtab Index: test/ELF/shlib-undefined-local.s =================================================================== --- test/ELF/shlib-undefined-local.s +++ test/ELF/shlib-undefined-local.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-linux-gnu -o %t1.o %S/Inputs/shlib-undefined-ref.s # RUN: ld.lld -shared -o %t.so %t1.o Index: test/ELF/shlib-undefined-shared.s =================================================================== --- test/ELF/shlib-undefined-shared.s +++ test/ELF/shlib-undefined-shared.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-linux-gnu -o %t1.o %S/Inputs/shlib-undefined-ref.s # RUN: ld.lld -shared -o %t1.so %t1.o Index: test/ELF/sort-norosegment.s =================================================================== --- test/ELF/sort-norosegment.s +++ test/ELF/sort-norosegment.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t # RUN: ld.lld --hash-style=sysv -no-rosegment -o %t1 %t -shared Index: test/ELF/splitstacks.s =================================================================== --- test/ELF/splitstacks.s +++ test/ELF/splitstacks.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o # RUN: not ld.lld %t1.o -o %t 2>&1 | FileCheck %s Index: test/ELF/start-lib-comdat.s =================================================================== --- test/ELF/start-lib-comdat.s +++ test/ELF/start-lib-comdat.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux \ Index: test/ELF/start-lib.s =================================================================== --- test/ELF/start-lib.s +++ test/ELF/start-lib.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux \ Index: test/ELF/startstop-gccollect.s =================================================================== --- test/ELF/startstop-gccollect.s +++ test/ELF/startstop-gccollect.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t ## Default run: sections foo and bar exist in output Index: test/ELF/startstop-shared.s =================================================================== --- test/ELF/startstop-shared.s +++ test/ELF/startstop-shared.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o // RUN: ld.lld %t.o -o %t.so -shared // RUN: llvm-readobj -r -t %t.so | FileCheck %s Index: test/ELF/startstop-shared2.s =================================================================== --- test/ELF/startstop-shared2.s +++ test/ELF/startstop-shared2.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/startstop-shared2.s -o %t.o // RUN: ld.lld -o %t.so %t.o -shared // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t2.o Index: test/ELF/startstop.s =================================================================== --- test/ELF/startstop.s +++ test/ELF/startstop.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t // RUN: ld.lld --hash-style=sysv %t -o %tout -shared // RUN: llvm-objdump -d %tout | FileCheck -check-prefix=DISASM %s Index: test/ELF/static-with-export-dynamic.s =================================================================== --- test/ELF/static-with-export-dynamic.s +++ test/ELF/static-with-export-dynamic.s @@ -1,7 +1,7 @@ // RUN: llvm-mc -filetype=obj -triple=i686-unknown-cloudabi %s -o %t.o // RUN: ld.lld --export-dynamic %t.o -o %t // RUN: llvm-readobj -dyn-symbols %t | FileCheck %s -// REQUIRES: x86 +// REQUIRES: x86-registered-target // Ensure that a dynamic symbol table is present when --export-dynamic // is passed in, even when creating statically linked executables. Index: test/ELF/string-table.s =================================================================== --- test/ELF/string-table.s +++ test/ELF/string-table.s @@ -1,7 +1,7 @@ // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t // RUN: ld.lld %t -o %t2 // RUN: llvm-readobj -sections %t2 | FileCheck %s -// REQUIRES: x86 +// REQUIRES: x86-registered-target .global _start _start: Index: test/ELF/strip-all.s =================================================================== --- test/ELF/strip-all.s +++ test/ELF/strip-all.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: ld.lld %t.o -o %t1 Index: test/ELF/strip-debug.s =================================================================== --- test/ELF/strip-debug.s +++ test/ELF/strip-debug.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: ld.lld %t -o %t2 --strip-debug # RUN: llvm-readobj -sections %t2 | FileCheck %s Index: test/ELF/symbol-ordering-file-warnings.s =================================================================== --- test/ELF/symbol-ordering-file-warnings.s +++ test/ELF/symbol-ordering-file-warnings.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/symbol-ordering-file-warnings1.s -o %t2.o # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/symbol-ordering-file-warnings2.s -o %t3.o Index: test/ELF/symbol-ordering-file.s =================================================================== --- test/ELF/symbol-ordering-file.s +++ test/ELF/symbol-ordering-file.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: ld.lld %t.o -o %t.out # RUN: llvm-objdump -s %t.out| FileCheck %s --check-prefix=BEFORE Index: test/ELF/symbol-ordering-file2.s =================================================================== --- test/ELF/symbol-ordering-file2.s +++ test/ELF/symbol-ordering-file2.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: echo "bar" > %t.order # RUN: ld.lld --symbol-ordering-file %t.order -shared %t.o -o %t.so Index: test/ELF/symbols.s =================================================================== --- test/ELF/symbols.s +++ test/ELF/symbols.s @@ -1,7 +1,7 @@ // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t // RUN: ld.lld %t -o %t2 // RUN: llvm-readobj -symbols -sections %t2 | FileCheck %s -// REQUIRES: x86 +// REQUIRES: x86-registered-target .type _start, @function .globl _start Index: test/ELF/symver-archive.s =================================================================== --- test/ELF/symver-archive.s +++ test/ELF/symver-archive.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1 # RUN: rm -f %t.a # RUN: llvm-ar rcs %t.a %t1 Index: test/ELF/synthetic-got.s =================================================================== --- test/ELF/synthetic-got.s +++ test/ELF/synthetic-got.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: echo "SECTIONS { }" > %t0.script # RUN: ld.lld --hash-style=sysv -shared %t.o -o %t0.out --script %t0.script Index: test/ELF/sysroot.s =================================================================== --- test/ELF/sysroot.s +++ test/ELF/sysroot.s @@ -4,7 +4,7 @@ // RUN: %p/Inputs/libsearch-st.s -o %t/st.o // RUN: rm -f %t/lib/libls.a // RUN: llvm-ar rcs %t/lib/libls.a %t/st.o -// REQUIRES: x86 +// REQUIRES: x86-registered-target // Should not link because of undefined symbol _bar // RUN: not ld.lld -o %t/r %t/m.o 2>&1 \ Index: test/ELF/sysv-hash-no-rosegment.s =================================================================== --- test/ELF/sysv-hash-no-rosegment.s +++ test/ELF/sysv-hash-no-rosegment.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: ld.lld -shared --no-rosegment -o %t %t.o # RUN: llvm-readobj -hash-table %t | FileCheck %s Index: test/ELF/tail-merge-string-align.s =================================================================== --- test/ELF/tail-merge-string-align.s +++ test/ELF/tail-merge-string-align.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: ld.lld %t.o -o %t.so -shared -O3 // RUN: llvm-readobj -s -section-data %t.so | FileCheck %s Index: test/ELF/tls-align.s =================================================================== --- test/ELF/tls-align.s +++ test/ELF/tls-align.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t // RUN: ld.lld %t -o %tout -shared // RUN: llvm-readobj -program-headers %tout | FileCheck %s Index: test/ELF/tls-archive.s =================================================================== --- test/ELF/tls-archive.s +++ test/ELF/tls-archive.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/tls-mismatch.s -o %t2 // RUN: rm -f %t.a Index: test/ELF/tls-dynamic-i686.s =================================================================== --- test/ELF/tls-dynamic-i686.s +++ test/ELF/tls-dynamic-i686.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=i686-pc-linux %s -o %t // RUN: ld.lld --hash-style=sysv -shared %t -o %tout // RUN: llvm-readobj -sections -relocations %tout | FileCheck %s Index: test/ELF/tls-dynamic.s =================================================================== --- test/ELF/tls-dynamic.s +++ test/ELF/tls-dynamic.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t // RUN: ld.lld --hash-style=sysv -shared %t -o %tout // RUN: llvm-readobj -sections -relocations %tout | FileCheck %s Index: test/ELF/tls-error.s =================================================================== --- test/ELF/tls-error.s +++ test/ELF/tls-error.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t // RUN: not ld.lld %t -o %tout 2>&1 | FileCheck %s // CHECK: R_X86_64_TPOFF32 out of range Index: test/ELF/tls-got-entry.s =================================================================== --- test/ELF/tls-got-entry.s +++ test/ELF/tls-got-entry.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // 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/tls-got-entry.s -o %tso.o // RUN: ld.lld -shared %tso.o -o %t.so Index: test/ELF/tls-i686.s =================================================================== --- test/ELF/tls-i686.s +++ test/ELF/tls-i686.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=i686-pc-linux %s -o %t // RUN: ld.lld %t -o %tout // RUN: ld.lld --hash-style=sysv %t -shared -o %tsharedout Index: test/ELF/tls-in-archive.s =================================================================== --- test/ELF/tls-in-archive.s +++ test/ELF/tls-in-archive.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/tls-in-archive.s -o %t1.o // RUN: llvm-ar cru %t.a %t1.o // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t2.o Index: test/ELF/tls-initial-exec-local.s =================================================================== --- test/ELF/tls-initial-exec-local.s +++ test/ELF/tls-initial-exec-local.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: ld.lld --hash-style=sysv -shared %t.o -o %t // RUN: llvm-readobj -r -s %t | FileCheck %s Index: test/ELF/tls-mismatch.s =================================================================== --- test/ELF/tls-mismatch.s +++ test/ELF/tls-mismatch.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/tls-mismatch.s -o %t2 // RUN: not ld.lld %t %t2 -o %t3 2>&1 | FileCheck %s Index: test/ELF/tls-offset.s =================================================================== --- test/ELF/tls-offset.s +++ test/ELF/tls-offset.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t // RUN: ld.lld %t -o %tout // RUN: llvm-readobj -s %tout | FileCheck %s Index: test/ELF/tls-relocatable.s =================================================================== --- test/ELF/tls-relocatable.s +++ test/ELF/tls-relocatable.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=i686-pc-linux %s -o %t.o // RUN: ld.lld %t.o -r -o %tr.o // RUN: ld.lld %tr.o -shared -o %t1 Index: test/ELF/tls-static.s =================================================================== --- test/ELF/tls-static.s +++ test/ELF/tls-static.s @@ -4,7 +4,7 @@ // RUN: ld.lld %t -o %tout // RUN: ld.lld -shared %tso -o %tshared // RUN: ld.lld -static %t %tshared -o %tout -// REQUIRES: x86 +// REQUIRES: x86-registered-target .global _start _start: Index: test/ELF/tls-two-relocs.s =================================================================== --- test/ELF/tls-two-relocs.s +++ test/ELF/tls-two-relocs.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t // RUN: ld.lld --hash-style=sysv %t -o %tout -shared // RUN: llvm-readobj -r %tout | FileCheck %s Index: test/ELF/tls-weak-undef.s =================================================================== --- test/ELF/tls-weak-undef.s +++ test/ELF/tls-weak-undef.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: ld.lld %t.o -o %t --gc-sections Index: test/ELF/tls.s =================================================================== --- test/ELF/tls.s +++ test/ELF/tls.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t // RUN: ld.lld %t -o %tout // RUN: llvm-readobj -symbols -sections -program-headers %tout | FileCheck %s Index: test/ELF/trace-ar.s =================================================================== --- test/ELF/trace-ar.s +++ test/ELF/trace-ar.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.foo.o # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/trace-ar1.s -o %t.obj1.o # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/trace-ar2.s -o %t.obj2.o Index: test/ELF/trace.s =================================================================== --- test/ELF/trace.s +++ test/ELF/trace.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.foo.o ## Check -t Index: test/ELF/ttext-tdata-tbss.s =================================================================== --- test/ELF/ttext-tdata-tbss.s +++ test/ELF/ttext-tdata-tbss.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o ## Show what regular output gives to us. Index: test/ELF/typed-undef.s =================================================================== --- test/ELF/typed-undef.s +++ test/ELF/typed-undef.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # We used to crash on this, check that we don't Index: test/ELF/undef-broken-debug.test =================================================================== --- test/ELF/undef-broken-debug.test +++ test/ELF/undef-broken-debug.test @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: yaml2obj %s -o %t.o # RUN: not ld.lld %t.o -o %t.exe 2>&1 | FileCheck %s Index: test/ELF/undef-start.s =================================================================== --- test/ELF/undef-start.s +++ test/ELF/undef-start.s @@ -1,3 +1,3 @@ # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: ld.lld %t -o %t2 2>&1 -# REQUIRES: x86 +# REQUIRES: x86-registered-target Index: test/ELF/undef-with-plt-addr-i686.s =================================================================== --- test/ELF/undef-with-plt-addr-i686.s +++ test/ELF/undef-with-plt-addr-i686.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=i686-unknown-linux %s -o %t.o // RUN: llvm-mc -filetype=obj -triple=i686-unknown-linux %p/Inputs/undef-with-plt-addr.s -o %t2.o // RUN: ld.lld %t2.o -o %t2.so -shared Index: test/ELF/undef-with-plt-addr.s =================================================================== --- test/ELF/undef-with-plt-addr.s +++ test/ELF/undef-with-plt-addr.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // 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/undef-with-plt-addr.s -o %t2.o // RUN: ld.lld %t2.o -o %t2.so -shared Index: test/ELF/undef.s =================================================================== --- test/ELF/undef.s +++ test/ELF/undef.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # 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/undef.s -o %t2.o # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/undef-debug.s -o %t3.o Index: test/ELF/undefined-opt.s =================================================================== --- test/ELF/undefined-opt.s +++ test/ELF/undefined-opt.s @@ -5,7 +5,7 @@ # RUN: %p/Inputs/shared.s -o %tshared.o # RUN: rm -f %tar.a # RUN: llvm-ar rcs %tar.a %tabs.o %tshared.o -# REQUIRES: x86 +# REQUIRES: x86-registered-target # Symbols from the archive are not in if not needed # RUN: ld.lld -o %t1 %t.o %tar.a Index: test/ELF/undefined-versioned-symbol.s =================================================================== --- test/ELF/undefined-versioned-symbol.s +++ test/ELF/undefined-versioned-symbol.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: echo ".data; \ // RUN: .quad \"basename\"; \ // RUN: .quad \"basename@FBSD_1.0\"; \ Index: test/ELF/unresolved-symbols.s =================================================================== --- test/ELF/unresolved-symbols.s +++ test/ELF/unresolved-symbols.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/unresolved-symbols.s -o %t2.o # RUN: ld.lld -shared %t2.o -o %t.so Index: test/ELF/verdef-defaultver.s =================================================================== --- test/ELF/verdef-defaultver.s +++ test/ELF/verdef-defaultver.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/verdef-defaultver.s -o %t1 # RUN: echo "V1 { global: a; local: *; };" > %t.script Index: test/ELF/verdef-dependency.s =================================================================== --- test/ELF/verdef-dependency.s +++ test/ELF/verdef-dependency.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: echo "LIBSAMPLE_1.0 { global: a; local: *; };" > %t.script # RUN: echo "LIBSAMPLE_2.0 { global: b; local: *; } LIBSAMPLE_1.0;" >> %t.script Index: test/ELF/verdef.s =================================================================== --- test/ELF/verdef.s +++ test/ELF/verdef.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: echo "LIBSAMPLE_1.0 { global: a; local: *; };" > %t.script # RUN: echo "LIBSAMPLE_2.0 { global: b; local: *; };" >> %t.script Index: test/ELF/verneed-as-needed-weak.s =================================================================== --- test/ELF/verneed-as-needed-weak.s +++ test/ELF/verneed-as-needed-weak.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/verneed1.s -o %t1.o # RUN: echo "v1 {}; v2 {}; v3 { local: *; };" > %t.script # RUN: ld.lld -shared %t1.o --version-script %t.script -o %t.so Index: test/ELF/verneed-local.s =================================================================== --- test/ELF/verneed-local.s +++ test/ELF/verneed-local.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/verneed1.s -o %t1.o # RUN: echo "v1 {}; v2 {}; v3 { local: *; };" > %t.script # RUN: ld.lld -shared %t1.o --version-script %t.script -o %t.so Index: test/ELF/verneed.s =================================================================== --- test/ELF/verneed.s +++ test/ELF/verneed.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/verneed1.s -o %t1.o # RUN: echo "v1 {}; v2 {}; v3 { local: *; };" > %t.script # RUN: ld.lld -shared %t1.o --version-script %t.script -o %t1.so -soname verneed1.so.0 Index: test/ELF/version-script-anonymous-local.s =================================================================== --- test/ELF/version-script-anonymous-local.s +++ test/ELF/version-script-anonymous-local.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: echo "{ global: foo; local: bar; };" > %t.script Index: test/ELF/version-script-complex-wildcards.s =================================================================== --- test/ELF/version-script-complex-wildcards.s +++ test/ELF/version-script-complex-wildcards.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: echo "FOO { global: extern \"C++\" { ab[c]*; }; };" > %t.script Index: test/ELF/version-script-copy-rel.s =================================================================== --- test/ELF/version-script-copy-rel.s +++ test/ELF/version-script-copy-rel.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/copy-in-shared.s -o %t1.o # RUN: echo "FOOVER { global: *; };" > %t.script # RUN: ld.lld --version-script %t.script -shared %t1.o -o %t.so Index: test/ELF/version-script-err.s =================================================================== --- test/ELF/version-script-err.s +++ test/ELF/version-script-err.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: not ld.lld -shared %t.o -o %t.so --version-script %p/Inputs/version-script-err.script 2>&1 | FileCheck %s Index: test/ELF/version-script-extern-exact.s =================================================================== --- test/ELF/version-script-extern-exact.s +++ test/ELF/version-script-extern-exact.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: echo "FOO { global: extern \"C++\" { \"aaa*\"; }; };" > %t.script Index: test/ELF/version-script-extern-wildcards-anon.s =================================================================== --- test/ELF/version-script-extern-wildcards-anon.s +++ test/ELF/version-script-extern-wildcards-anon.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: echo '{ \ Index: test/ELF/version-script-extern-wildcards.s =================================================================== --- test/ELF/version-script-extern-wildcards.s +++ test/ELF/version-script-extern-wildcards.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: echo "FOO { global: extern \"C++\" { foo*; }; };" > %t.script Index: test/ELF/version-script-extern.s =================================================================== --- test/ELF/version-script-extern.s +++ test/ELF/version-script-extern.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: echo "LIBSAMPLE_1.0 { global:" > %t.script Index: test/ELF/version-script-glob.s =================================================================== --- test/ELF/version-script-glob.s +++ test/ELF/version-script-glob.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: echo "{ global: foo*; bar*; local: *; };" > %t.script # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o Index: test/ELF/version-script-hide-so-symbol.s =================================================================== --- test/ELF/version-script-hide-so-symbol.s +++ test/ELF/version-script-hide-so-symbol.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: ld.lld -shared %t.o -o %t2.so Index: test/ELF/version-script-locals-extern.s =================================================================== --- test/ELF/version-script-locals-extern.s +++ test/ELF/version-script-locals-extern.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: echo "FOO { local: extern \"C++\" { \"abb(int)\"; }; };" > %t.script Index: test/ELF/version-script-locals.s =================================================================== --- test/ELF/version-script-locals.s +++ test/ELF/version-script-locals.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: echo "VERSION_1.0 { local: foo1; };" > %t.script Index: test/ELF/version-script-missing.s =================================================================== --- test/ELF/version-script-missing.s +++ test/ELF/version-script-missing.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # We used to crash if a symbol in a version script was not in the symbol table. Index: test/ELF/version-script-no-warn.s =================================================================== --- test/ELF/version-script-no-warn.s +++ test/ELF/version-script-no-warn.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # 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/shared.s -o %t2.o Index: test/ELF/version-script-noundef.s =================================================================== --- test/ELF/version-script-noundef.s +++ test/ELF/version-script-noundef.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: echo "VERSION_1.0 { global: bar; };" > %t.script # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o Index: test/ELF/version-script-symver.s =================================================================== --- test/ELF/version-script-symver.s +++ test/ELF/version-script-symver.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: ld.lld %t.o -o %t Index: test/ELF/version-script-symver2.s =================================================================== --- test/ELF/version-script-symver2.s +++ test/ELF/version-script-symver2.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: echo "VER1 { global: foo; local: *; }; VER2 { global: foo; }; VER3 { global: foo; };" > %t.map # RUN: ld.lld -shared %t.o --version-script %t.map -o %t.so --fatal-warnings Index: test/ELF/version-script-twice.s =================================================================== --- test/ELF/version-script-twice.s +++ test/ELF/version-script-twice.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: echo "FBSD_1.1 {}; FBSD_1.2 {};" > %t.ver # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o Index: test/ELF/version-script-undef-version.s =================================================================== --- test/ELF/version-script-undef-version.s +++ test/ELF/version-script-undef-version.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # Test that we don't error on undefined versions when static linking. # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o Index: test/ELF/version-script-weak.s =================================================================== --- test/ELF/version-script-weak.s +++ test/ELF/version-script-weak.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/version-script-weak.s -o %tmp.o Index: test/ELF/version-script.s =================================================================== --- test/ELF/version-script.s +++ test/ELF/version-script.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/shared.s -o %t2.o # RUN: ld.lld -shared %t2.o -soname shared -o %t2.so Index: test/ELF/version-symbol-error.s =================================================================== --- test/ELF/version-symbol-error.s +++ test/ELF/version-symbol-error.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux // RUN: echo "V1 {};" > %t.script // RUN: not ld.lld -shared -version-script=%t.script %t.o -o %t.so 2>&1 \ Index: test/ELF/version-undef-sym.s =================================================================== --- test/ELF/version-undef-sym.s +++ test/ELF/version-undef-sym.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: llvm-readobj --dyn-symbols %p/Inputs/version-undef-sym.so | FileCheck %s Index: test/ELF/version-use.s =================================================================== --- test/ELF/version-use.s +++ test/ELF/version-use.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux // RUN: ld.lld %t.o %p/Inputs/version-use.so -o %t.so -shared -z defs // RUN: llvm-readobj -s %t.so | FileCheck %s Index: test/ELF/version-wildcard.test =================================================================== --- test/ELF/version-wildcard.test +++ test/ELF/version-wildcard.test @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: echo "VERSION_1.0 { global: foo*; local: *; };" > %t.script Index: test/ELF/visibility.s =================================================================== --- test/ELF/visibility.s +++ test/ELF/visibility.s @@ -2,7 +2,7 @@ // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/visibility.s -o %t2 // RUN: ld.lld -shared %t %t2 -o %t3 // RUN: llvm-readobj -t -dyn-symbols %t3 | FileCheck %s -// REQUIRES: x86 +// REQUIRES: x86-registered-target // CHECK: Symbols [ // CHECK-NEXT: Symbol { Index: test/ELF/warn-common.s =================================================================== --- test/ELF/warn-common.s +++ test/ELF/warn-common.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/warn-common.s -o %t2.o # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/warn-common2.s -o %t3.o Index: test/ELF/warn-unresolved-symbols-hidden.s =================================================================== --- test/ELF/warn-unresolved-symbols-hidden.s +++ test/ELF/warn-unresolved-symbols-hidden.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: not ld.lld -shared %t.o -o %t.so -z defs --warn-unresolved-symbols 2>&1| FileCheck %s Index: test/ELF/warn-unresolved-symbols.s =================================================================== --- test/ELF/warn-unresolved-symbols.s +++ test/ELF/warn-unresolved-symbols.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o ## The link should fail with an undef error by default Index: test/ELF/weak-and-strong-undef.s =================================================================== --- test/ELF/weak-and-strong-undef.s +++ test/ELF/weak-and-strong-undef.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/weak-and-strong-undef.s -o %t2.o # RUN: not ld.lld %t1.o %t2.o -o %t 2>&1 | FileCheck %s Index: test/ELF/weak-entry.s =================================================================== --- test/ELF/weak-entry.s +++ test/ELF/weak-entry.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t # RUN: ld.lld %t -o %tout # RUN: llvm-nm %tout | FileCheck %s Index: test/ELF/weak-undef-export.s =================================================================== --- test/ELF/weak-undef-export.s +++ test/ELF/weak-undef-export.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # Test that we don't fail with foo being undefined. Index: test/ELF/weak-undef-hidden.s =================================================================== --- test/ELF/weak-undef-hidden.s +++ test/ELF/weak-undef-hidden.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: ld.lld %t.o -o %t.so -shared // RUN: llvm-readobj -r -s -section-data %t.so | FileCheck %s Index: test/ELF/weak-undef-lazy.s =================================================================== --- test/ELF/weak-undef-lazy.s +++ test/ELF/weak-undef-lazy.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/weak-undef-lazy.s -o %t2.o # RUN: rm -f %t2.a Index: test/ELF/weak-undef-lib.s =================================================================== --- test/ELF/weak-undef-lib.s +++ test/ELF/weak-undef-lib.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o # RUN: echo -e '.globl foo\nfoo: ret' | \ # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux - -o %t2.o Index: test/ELF/weak-undef-rw.s =================================================================== --- test/ELF/weak-undef-rw.s +++ test/ELF/weak-undef-rw.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: ld.lld %t.o -o %t --export-dynamic # RUN: llvm-readobj -r %t | FileCheck %s Index: test/ELF/weak-undef-shared.s =================================================================== --- test/ELF/weak-undef-shared.s +++ test/ELF/weak-undef-shared.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux // RUN: llvm-mc %p/Inputs/shared.s -o %t2.o -filetype=obj -triple=x86_64-pc-linux // RUN: ld.lld %t2.o -o %t2.so -shared Index: test/ELF/weak-undef-val.s =================================================================== --- test/ELF/weak-undef-val.s +++ test/ELF/weak-undef-val.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: ld.lld %t.o -o %t --export-dynamic # RUN: llvm-readobj -s -section-data %t | FileCheck %s Index: test/ELF/weak-undef.s =================================================================== --- test/ELF/weak-undef.s +++ test/ELF/weak-undef.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: ld.lld %t.o -o %t -pie # RUN: llvm-readobj -dyn-symbols %t | FileCheck %s Index: test/ELF/whole-archive-name.s =================================================================== --- test/ELF/whole-archive-name.s +++ test/ELF/whole-archive-name.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o // RUN: mkdir -p %t.dir // RUN: rm -f %t.dir/liba.a Index: test/ELF/whole-archive.s =================================================================== --- test/ELF/whole-archive.s +++ test/ELF/whole-archive.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux \ Index: test/ELF/wrap-dynamic-undef.s =================================================================== --- test/ELF/wrap-dynamic-undef.s +++ test/ELF/wrap-dynamic-undef.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/wrap-dynamic-undef.s -o %t2.o # RUN: ld.lld %t2.o -o %t2.so -shared Index: test/ELF/wrap-no-real.s =================================================================== --- test/ELF/wrap-no-real.s +++ test/ELF/wrap-no-real.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/wrap-no-real.s -o %t2.o // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/wrap-no-real2.s -o %t3.o Index: test/ELF/wrap.s =================================================================== --- test/ELF/wrap.s +++ test/ELF/wrap.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/wrap.s -o %t2 Index: test/ELF/writable-merge.s =================================================================== --- test/ELF/writable-merge.s +++ test/ELF/writable-merge.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux // RUN: not ld.lld %t.o -o %t 2>&1 | FileCheck %s // CHECK: writable SHF_MERGE section is not supported Index: test/ELF/writable-sec-plt-reloc.s =================================================================== --- test/ELF/writable-sec-plt-reloc.s +++ test/ELF/writable-sec-plt-reloc.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux # RUN: llvm-mc %p/Inputs/writable-sec-plt-reloc.s -o %t2.o -filetype=obj -triple=x86_64-pc-linux # RUN: ld.lld %t2.o -o %t2.so -shared Index: test/ELF/x86-64-dyn-rel-error.s =================================================================== --- test/ELF/x86-64-dyn-rel-error.s +++ test/ELF/x86-64-dyn-rel-error.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // 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/shared.s -o %t2.o // RUN: ld.lld %t2.o -shared -o %t2.so Index: test/ELF/x86-64-dyn-rel-error2.s =================================================================== --- test/ELF/x86-64-dyn-rel-error2.s +++ test/ELF/x86-64-dyn-rel-error2.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // 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/shared.s -o %t2.o // RUN: ld.lld %t2.o -shared -o %t2.so Index: test/ELF/x86-64-rela.s =================================================================== --- test/ELF/x86-64-rela.s +++ test/ELF/x86-64-rela.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: ld.lld %t.o -o %t.so -shared // RUN: llvm-readobj -dynamic-table %t.so | FileCheck %s Index: test/ELF/x86-64-relax-got-abs.s =================================================================== --- test/ELF/x86-64-relax-got-abs.s +++ test/ELF/x86-64-relax-got-abs.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -relax-relocations -triple=x86_64-pc-linux %s \ // RUN: -o %t.o // RUN: ld.lld --hash-style=sysv %t.o -o %t.so -shared Index: test/ELF/x86-64-relax-offset.s =================================================================== --- test/ELF/x86-64-relax-offset.s +++ test/ELF/x86-64-relax-offset.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -relax-relocations -triple=x86_64-pc-linux %s \ // RUN: -o %t.o // RUN: llvm-mc -filetype=obj -relax-relocations -triple=x86_64-pc-linux \ Index: test/ELF/x86-64-reloc-16.s =================================================================== --- test/ELF/x86-64-reloc-16.s +++ test/ELF/x86-64-reloc-16.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/x86-64-reloc-16.s -o %t1 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/x86-64-reloc-16-error.s -o %t2 Index: test/ELF/x86-64-reloc-32-fpic.s =================================================================== --- test/ELF/x86-64-reloc-32-fpic.s +++ test/ELF/x86-64-reloc-32-fpic.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: not ld.lld -shared %t.o -o %t.so 2>&1 | FileCheck %s Index: test/ELF/x86-64-reloc-8.s =================================================================== --- test/ELF/x86-64-reloc-8.s +++ test/ELF/x86-64-reloc-8.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/x86-64-reloc-8.s -o %t1 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/x86-64-reloc-8-error.s -o %t2 Index: test/ELF/x86-64-reloc-error.s =================================================================== --- test/ELF/x86-64-reloc-error.s +++ test/ELF/x86-64-reloc-error.s @@ -1,7 +1,7 @@ // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/x86-64-reloc-error.s -o %tabs // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t // RUN: not ld.lld -shared %tabs %t -o %t2 2>&1 | FileCheck %s -// REQUIRES: x86 +// REQUIRES: x86-registered-target movl $big, %edx movq $foo - 0x1000000000000, %rdx Index: test/ELF/x86-64-reloc-pc32-fpic.s =================================================================== --- test/ELF/x86-64-reloc-pc32-fpic.s +++ test/ELF/x86-64-reloc-pc32-fpic.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o # RUN: not ld.lld -shared %t.o -o %t.so 2>&1 | FileCheck %s Index: test/ELF/x86-64-reloc-tpoff32-fpic.s =================================================================== --- test/ELF/x86-64-reloc-tpoff32-fpic.s +++ test/ELF/x86-64-reloc-tpoff32-fpic.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: not ld.lld %t.o -shared -o %t.so 2>&1 | FileCheck %s Index: test/ELF/x86-64-retpoline-znow.s =================================================================== --- test/ELF/x86-64-retpoline-znow.s +++ test/ELF/x86-64-retpoline-znow.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.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 Index: test/ELF/x86-64-retpoline.s =================================================================== --- test/ELF/x86-64-retpoline.s +++ test/ELF/x86-64-retpoline.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.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 Index: test/ELF/x86-64-tls-gd-got.s =================================================================== --- test/ELF/x86-64-tls-gd-got.s +++ test/ELF/x86-64-tls-gd-got.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/x86-64-tls-gd-got.s -o %t2.o # RUN: ld.lld %t1.o %t2.o -o %t Index: test/ELF/x86-64-tls-gd-local.s =================================================================== --- test/ELF/x86-64-tls-gd-local.s +++ test/ELF/x86-64-tls-gd-local.s @@ -1,4 +1,4 @@ -// REQUIRES: x86 +// REQUIRES: x86-registered-target // RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux // RUN: ld.lld --hash-style=sysv %t.o -o %t.so -shared // RUN: llvm-readobj -r -s -section-data %t.so | FileCheck %s Index: test/ELF/x86-64-tls-pie.s =================================================================== --- test/ELF/x86-64-tls-pie.s +++ test/ELF/x86-64-tls-pie.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-cloudabi %s -o %t1.o # RUN: ld.lld -pie %t1.o -o %t # RUN: llvm-readobj -r %t | FileCheck %s Index: test/ELF/znotext-copy-relocation.s =================================================================== --- test/ELF/znotext-copy-relocation.s +++ test/ELF/znotext-copy-relocation.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # 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/znotext-copy-relocations.s -o %t2.o # RUN: ld.lld %t2.o -o %t2.so -shared Index: test/ELF/znotext-plt-relocations-protected.s =================================================================== --- test/ELF/znotext-plt-relocations-protected.s +++ test/ELF/znotext-plt-relocations-protected.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # 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/znotext-plt-relocations-protected.s -o %t2.o # RUN: ld.lld %t2.o -o %t2.so -shared Index: test/ELF/znotext-plt-relocations.s =================================================================== --- test/ELF/znotext-plt-relocations.s +++ test/ELF/znotext-plt-relocations.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # 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/znotext-plt-relocations.s -o %t2.o # RUN: ld.lld %t2.o -o %t2.so -shared Index: test/ELF/znotext-weak-undef.s =================================================================== --- test/ELF/znotext-weak-undef.s +++ test/ELF/znotext-weak-undef.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: not ld.lld -z notext -shared %t.o -o %t 2>&1 | FileCheck %s # CHECK: relocation R_X86_64_32 cannot be used against symbol foo; recompile with -fPIC Index: test/ELF/zstack-size.s =================================================================== --- test/ELF/zstack-size.s +++ test/ELF/zstack-size.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t # RUN: ld.lld -z stack-size=0x1000 %t -o %t1 # RUN: llvm-readobj -program-headers %t1 | FileCheck %s -check-prefix=CHECK1 Index: test/ELF/ztext-text-notext.s =================================================================== --- test/ELF/ztext-text-notext.s +++ test/ELF/ztext-text-notext.s @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # 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/ztext-text-notext.s -o %t2.o # RUN: ld.lld %t2.o -o %t2.so -shared Index: test/lit.cfg.py =================================================================== --- test/lit.cfg.py +++ test/lit.cfg.py @@ -60,15 +60,15 @@ llvm_config.feature_config( [('--build-mode', {'DEBUG': 'debug'}), ('--assertion-mode', {'ON': 'asserts'}), - ('--targets-built', {'AArch64': 'aarch64', - 'AMDGPU': 'amdgpu', - 'ARM': 'arm', - 'AVR': 'avr', - 'Mips': 'mips', - 'PowerPC': 'ppc', - 'Sparc': 'sparc', - 'WebAssembly': 'wasm', - 'X86': 'x86'}) + ('--targets-built', {'AArch64': 'aarch64-registered-target', + 'AMDGPU': 'amdgpu-registered-target', + 'ARM': 'arm-registered-target', + 'AVR': 'avr-registered-target', + 'Mips': 'mips-registered-target', + 'PowerPC': 'powerpc-registered-target', + 'Sparc': 'sparc-registered-target', + 'WebAssembly': 'webassembly-registered-target', + 'X86': 'x86-registered-target'}) ]) # Set a fake constant version so that we get consitent output. Index: test/mach-o/arm-interworking-movw.yaml =================================================================== --- test/mach-o/arm-interworking-movw.yaml +++ test/mach-o/arm-interworking-movw.yaml @@ -1,4 +1,4 @@ -# REQUIRES: arm +# REQUIRES: arm-registered-target # RUN: ld64.lld -arch armv7 -r -print_atoms %s -o %t | FileCheck %s # RUN: ld64.lld -arch armv7 -dylib -print_atoms %t -o %t2 \ # RUN: %p/Inputs/armv7/libSystem.yaml -sectalign __TEXT __text 0x1000 | FileCheck %s Index: test/mach-o/lazy-bind-x86_64.yaml =================================================================== --- test/mach-o/lazy-bind-x86_64.yaml +++ test/mach-o/lazy-bind-x86_64.yaml @@ -1,4 +1,4 @@ -# REQUIRES: x86 +# REQUIRES: x86-registered-target # RUN: ld64.lld -arch x86_64 -macosx_version_min 10.8 %s \ # RUN: %p/Inputs/lazy-bind-x86_64.yaml %p/Inputs/lazy-bind-x86_64-2.yaml \