Index: test/COFF/common.test =================================================================== --- test/COFF/common.test +++ test/COFF/common.test @@ -1,3 +1,4 @@ +# 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,3 +1,4 @@ +# 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,3 +1,4 @@ +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/def-export-stdcall.s =================================================================== --- test/COFF/def-export-stdcall.s +++ test/COFF/def-export-stdcall.s @@ -1,3 +1,4 @@ +# 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" > %t.def # RUN: lld-link -entry:dllmain -dll -def:%t.def %t.obj -out:%t.dll -implib:%t.lib Index: test/COFF/delayimports32.test =================================================================== --- test/COFF/delayimports32.test +++ test/COFF/delayimports32.test @@ -1,3 +1,4 @@ +# 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/entry-mangled.test =================================================================== --- test/COFF/entry-mangled.test +++ test/COFF/entry-mangled.test @@ -1,3 +1,4 @@ +# 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,3 +1,4 @@ +; 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/imports.test =================================================================== --- test/COFF/imports.test +++ test/COFF/imports.test @@ -1,3 +1,4 @@ +# 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,3 +1,4 @@ +; 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/msvclto-archive.ll =================================================================== --- test/COFF/msvclto-archive.ll +++ test/COFF/msvclto-archive.ll @@ -1,3 +1,4 @@ +; 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,3 +1,4 @@ +; 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,3 +1,4 @@ +; 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,3 +1,4 @@ +# 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,3 +1,4 @@ +; 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/thinlto-archives.ll =================================================================== --- test/COFF/thinlto-archives.ll +++ test/COFF/thinlto-archives.ll @@ -1,3 +1,4 @@ +; 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,3 +1,4 @@ +; 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,3 +1,4 @@ +; 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/ELF/allow-shlib-undefined.s =================================================================== --- test/ELF/allow-shlib-undefined.s +++ test/ELF/allow-shlib-undefined.s @@ -1,3 +1,4 @@ +# 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/auxiliary.s =================================================================== --- test/ELF/auxiliary.s +++ test/ELF/auxiliary.s @@ -1,3 +1,4 @@ +# 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/gdb-index-empty.s =================================================================== --- test/ELF/gdb-index-empty.s +++ test/ELF/gdb-index-empty.s @@ -1,3 +1,4 @@ +# 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 -debug-dump=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,3 +1,4 @@ +# 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 -debug-dump=gdb_index %t2 | FileCheck %s Index: test/ELF/i386-reloc-large-addend.s =================================================================== --- test/ELF/i386-reloc-large-addend.s +++ test/ELF/i386-reloc-large-addend.s @@ -1,3 +1,4 @@ +// 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,3 +1,4 @@ +// 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/linkerscript/output-too-large.s =================================================================== --- test/ELF/linkerscript/output-too-large.s +++ test/ELF/linkerscript/output-too-large.s @@ -1,3 +1,4 @@ +# 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/lto/available-externally.ll =================================================================== --- test/ELF/lto/available-externally.ll +++ test/ELF/lto/available-externally.ll @@ -1,3 +1,4 @@ +# 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/comdat2.ll =================================================================== --- test/ELF/lto/comdat2.ll +++ test/ELF/lto/comdat2.ll @@ -1,3 +1,4 @@ +; 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/common2.ll =================================================================== --- test/ELF/lto/common2.ll +++ test/ELF/lto/common2.ll @@ -1,3 +1,4 @@ +; 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,3 +1,4 @@ +; 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/discard-value-names.ll =================================================================== --- test/ELF/lto/discard-value-names.ll +++ test/ELF/lto/discard-value-names.ll @@ -1,3 +1,4 @@ +; 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/opt-level.ll =================================================================== --- test/ELF/lto/opt-level.ll +++ test/ELF/lto/opt-level.ll @@ -1,3 +1,4 @@ +; 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,3 +1,4 @@ +; REQUIRES: x86-registered-target ; RUN: llvm-as %s -o %t.o ; RUN: rm -f %t.yaml Index: test/ELF/lto/relax-relocs.ll =================================================================== --- test/ELF/lto/relax-relocs.ll +++ test/ELF/lto/relax-relocs.ll @@ -1,3 +1,4 @@ +; 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/thin-archivecollision.ll =================================================================== --- test/ELF/lto/thin-archivecollision.ll +++ test/ELF/lto/thin-archivecollision.ll @@ -1,3 +1,4 @@ +; 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,3 +1,4 @@ +; 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/type-merge2.ll =================================================================== --- test/ELF/lto/type-merge2.ll +++ test/ELF/lto/type-merge2.ll @@ -1,3 +1,4 @@ +; 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/unnamed-addr-comdat.ll =================================================================== --- test/ELF/lto/unnamed-addr-comdat.ll +++ test/ELF/lto/unnamed-addr-comdat.ll @@ -1,3 +1,4 @@ +; 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,3 +1,4 @@ +; 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.ll =================================================================== --- test/ELF/lto/unnamed-addr.ll +++ test/ELF/lto/unnamed-addr.ll @@ -1,3 +1,4 @@ +; 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/many-alloc-sections.s =================================================================== --- test/ELF/many-alloc-sections.s +++ test/ELF/many-alloc-sections.s @@ -1,3 +1,4 @@ +// 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 // FIXME: threads are disable because the test is too slow with them (PR32942). Index: test/ELF/many-sections.s =================================================================== --- test/ELF/many-sections.s +++ test/ELF/many-sections.s @@ -1,3 +1,4 @@ +// 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/merge-section-types.s =================================================================== --- test/ELF/merge-section-types.s +++ test/ELF/merge-section-types.s @@ -1,3 +1,4 @@ +// 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/new-dtags.test =================================================================== --- test/ELF/new-dtags.test +++ test/ELF/new-dtags.test @@ -1,3 +1,4 @@ +# 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-obj.s =================================================================== --- test/ELF/no-obj.s +++ test/ELF/no-obj.s @@ -1,3 +1,4 @@ +// 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-soname.s =================================================================== --- test/ELF/no-soname.s +++ test/ELF/no-soname.s @@ -1,3 +1,4 @@ +// 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,3 +1,4 @@ +// 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,3 +1,4 @@ +# 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/pie-weak.s =================================================================== --- test/ELF/pie-weak.s +++ test/ELF/pie-weak.s @@ -1,3 +1,4 @@ +# REQUIRES: x86-registered-target # RUN: llvm-mc -filetype=obj -relax-relocations=false -triple=x86_64-unknown-linux %s -o %t.o # RUN: ld.lld -pie %t.o -o %t # RUN: llvm-readobj -r %t | FileCheck --check-prefix=RELOCS %s Index: test/ELF/progname.s =================================================================== --- test/ELF/progname.s +++ test/ELF/progname.s @@ -1,3 +1,4 @@ +// REQUIRES: x86-registered-target // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: echo .global __progname > %t2.s // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %t2.s -o %t2.o Index: test/ELF/relative-dynamic-reloc-pie.s =================================================================== --- test/ELF/relative-dynamic-reloc-pie.s +++ test/ELF/relative-dynamic-reloc-pie.s @@ -1,3 +1,4 @@ +# 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.s =================================================================== --- test/ELF/relative-dynamic-reloc.s +++ test/ELF/relative-dynamic-reloc.s @@ -1,3 +1,4 @@ +// 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-compressed-input.s =================================================================== --- test/ELF/relocatable-compressed-input.s +++ test/ELF/relocatable-compressed-input.s @@ -1,3 +1,4 @@ +# REQUIRES: x86-registered-target # REQUIRES: zlib # RUN: llvm-mc -compress-debug-sections=zlib-gnu -filetype=obj -triple=x86_64-unknown-linux %s -o %t1 Index: test/ELF/relocatable-reloc.s =================================================================== --- test/ELF/relocatable-reloc.s +++ test/ELF/relocatable-reloc.s @@ -1,3 +1,4 @@ +// 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-section-symbol.s =================================================================== --- test/ELF/relocatable-section-symbol.s +++ test/ELF/relocatable-section-symbol.s @@ -1,3 +1,4 @@ +# 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,3 +1,4 @@ +# 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-tls.s =================================================================== --- test/ELF/relocatable-tls.s +++ test/ELF/relocatable-tls.s @@ -1,3 +1,4 @@ +# 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/relocation-shared.s =================================================================== --- test/ELF/relocation-shared.s +++ test/ELF/relocation-shared.s @@ -1,3 +1,4 @@ +// 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