From e0ca2ff0708602eb446b8a7043d727290e11ffbc Mon Sep 17 00:00:00 2001 From: Jon Chesterfield Date: Tue, 18 Jul 2017 18:40:50 +0000 Subject: [PATCH] [LLD] Mark a number of x86 only tests to require x86 Noticed while testing for an out of tree target. There are probably more tests that should be so marked. I'm not sure who owns these tests so I've added a few names I recognise from the recent history. With advice from probinson, ruiu, rafael and dramatically improved by davidb. Thank you all! Differential Revision: https://reviews.llvm.org/D34685 llvm-svn: 308335 --- lld/test/COFF/common.test | 1 + lld/test/COFF/conflict.test | 1 + lld/test/COFF/constant.test | 1 + lld/test/COFF/def-export-stdcall.s | 1 + lld/test/COFF/delayimports32.test | 1 + lld/test/COFF/entry-mangled.test | 1 + lld/test/COFF/entrylib.ll | 1 + lld/test/COFF/imports.test | 1 + lld/test/COFF/include-lto.ll | 1 + lld/test/COFF/msvclto-archive.ll | 1 + lld/test/COFF/msvclto-order.ll | 1 + lld/test/COFF/msvclto.ll | 1 + lld/test/COFF/pdb-lib.s | 1 + lld/test/COFF/savetemps.ll | 1 + lld/test/COFF/thinlto-archives.ll | 1 + lld/test/COFF/thinlto-mangled.ll | 1 + lld/test/COFF/thinlto.ll | 1 + lld/test/ELF/allow-shlib-undefined.s | 1 + lld/test/ELF/auxiliary.s | 1 + lld/test/ELF/gdb-index-empty.s | 1 + lld/test/ELF/gdb-index-gc-sections.s | 1 + lld/test/ELF/i386-reloc-large-addend.s | 1 + lld/test/ELF/i386-reloc-range.s | 1 + lld/test/ELF/linkerscript/output-too-large.s | 1 + lld/test/ELF/lto/available-externally.ll | 1 + lld/test/ELF/lto/comdat2.ll | 1 + lld/test/ELF/lto/common2.ll | 1 + lld/test/ELF/lto/common3.ll | 1 + lld/test/ELF/lto/discard-value-names.ll | 1 + lld/test/ELF/lto/opt-level.ll | 1 + lld/test/ELF/lto/opt-remarks.ll | 1 + lld/test/ELF/lto/relax-relocs.ll | 1 + lld/test/ELF/lto/thin-archivecollision.ll | 1 + lld/test/ELF/lto/thinlto.ll | 1 + lld/test/ELF/lto/type-merge2.ll | 1 + lld/test/ELF/lto/unnamed-addr-comdat.ll | 1 + lld/test/ELF/lto/unnamed-addr-drop.ll | 1 + lld/test/ELF/lto/unnamed-addr.ll | 1 + lld/test/ELF/many-alloc-sections.s | 1 + lld/test/ELF/many-sections.s | 1 + lld/test/ELF/merge-section-types.s | 1 + lld/test/ELF/new-dtags.test | 1 + lld/test/ELF/no-obj.s | 1 + lld/test/ELF/no-soname.s | 1 + lld/test/ELF/no-symtab.s | 1 + lld/test/ELF/no-undefined.s | 1 + lld/test/ELF/pie-weak.s | 1 + lld/test/ELF/progname.s | 1 + lld/test/ELF/relative-dynamic-reloc-pie.s | 1 + lld/test/ELF/relative-dynamic-reloc.s | 1 + lld/test/ELF/relocatable-compressed-input.s | 1 + lld/test/ELF/relocatable-reloc.s | 1 + lld/test/ELF/relocatable-section-symbol.s | 1 + lld/test/ELF/relocatable-sections.s | 1 + lld/test/ELF/relocatable-tls.s | 1 + lld/test/ELF/relocation-shared.s | 1 + 56 files changed, 56 insertions(+) diff --git a/lld/test/COFF/common.test b/lld/test/COFF/common.test index 007cfcfb6f92..4a00153f3e93 100644 --- a/lld/test/COFF/common.test +++ b/lld/test/COFF/common.test @@ -1,3 +1,4 @@ +# REQUIRES: x86 # 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 diff --git a/lld/test/COFF/conflict.test b/lld/test/COFF/conflict.test index a634c7185675..ae8e6c8ad327 100644 --- a/lld/test/COFF/conflict.test +++ b/lld/test/COFF/conflict.test @@ -1,3 +1,4 @@ +# REQUIRES: x86 # RUN: yaml2obj < %s > %t1.obj # RUN: yaml2obj < %s > %t2.obj # RUN: not lld-link /out:%t.exe %t1.obj %t2.obj >& %t.log diff --git a/lld/test/COFF/constant.test b/lld/test/COFF/constant.test index 3c8956beac9c..02d6b3e2ccae 100644 --- a/lld/test/COFF/constant.test +++ b/lld/test/COFF/constant.test @@ -1,3 +1,4 @@ +REQUIRES: x86 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 diff --git a/lld/test/COFF/def-export-stdcall.s b/lld/test/COFF/def-export-stdcall.s index cdca7ae76acf..d7700d9e9535 100644 --- a/lld/test/COFF/def-export-stdcall.s +++ b/lld/test/COFF/def-export-stdcall.s @@ -1,3 +1,4 @@ +# REQUIRES: x86 # 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 diff --git a/lld/test/COFF/delayimports32.test b/lld/test/COFF/delayimports32.test index 9c4fcae5b6a5..53aadbb6a185 100644 --- a/lld/test/COFF/delayimports32.test +++ b/lld/test/COFF/delayimports32.test @@ -1,3 +1,4 @@ +# REQUIRES: x86 # 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 \ diff --git a/lld/test/COFF/entry-mangled.test b/lld/test/COFF/entry-mangled.test index acf54ba07973..1140e8298fbc 100644 --- a/lld/test/COFF/entry-mangled.test +++ b/lld/test/COFF/entry-mangled.test @@ -1,3 +1,4 @@ +# REQUIRES: x86 # 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 diff --git a/lld/test/COFF/entrylib.ll b/lld/test/COFF/entrylib.ll index 4ffa42c44a3e..602b4ff63336 100644 --- a/lld/test/COFF/entrylib.ll +++ b/lld/test/COFF/entrylib.ll @@ -1,3 +1,4 @@ +; REQUIRES: x86 ; RUN: llvm-as -o %t.obj %s ; RUN: rm -f %t.lib ; RUN: llvm-ar cru %t.lib %t.obj diff --git a/lld/test/COFF/imports.test b/lld/test/COFF/imports.test index 584c24eb1b76..326bfbebbb05 100644 --- a/lld/test/COFF/imports.test +++ b/lld/test/COFF/imports.test @@ -1,3 +1,4 @@ +# REQUIRES: x86 # Verify that the lld can handle .lib files and emit .idata sections. # # RUN: lld-link /out:%t.exe /entry:main /subsystem:console \ diff --git a/lld/test/COFF/include-lto.ll b/lld/test/COFF/include-lto.ll index 6ca32fa71ad1..d5ae546ab719 100644 --- a/lld/test/COFF/include-lto.ll +++ b/lld/test/COFF/include-lto.ll @@ -1,3 +1,4 @@ +; REQUIRES: x86 ; RUN: llvm-as -o %t.obj %s ; RUN: lld-link /dll /out:%t.dll %t.obj ; RUN: llvm-objdump -d %t.dll | FileCheck %s diff --git a/lld/test/COFF/msvclto-archive.ll b/lld/test/COFF/msvclto-archive.ll index 047b19e76ddf..334565a1bef7 100644 --- a/lld/test/COFF/msvclto-archive.ll +++ b/lld/test/COFF/msvclto-archive.ll @@ -1,3 +1,4 @@ +; REQUIRES: x86 ;; Make sure we re-create archive files to strip bitcode files. ;; Do not create empty archives because the MSVC linker diff --git a/lld/test/COFF/msvclto-order.ll b/lld/test/COFF/msvclto-order.ll index 8991dce4a8d5..6f569af4af0c 100644 --- a/lld/test/COFF/msvclto-order.ll +++ b/lld/test/COFF/msvclto-order.ll @@ -1,3 +1,4 @@ +; REQUIRES: x86 ; 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 diff --git a/lld/test/COFF/msvclto.ll b/lld/test/COFF/msvclto.ll index 7fa9c54711b4..66fabeb80c74 100644 --- a/lld/test/COFF/msvclto.ll +++ b/lld/test/COFF/msvclto.ll @@ -1,3 +1,4 @@ +; REQUIRES: x86 ; 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 diff --git a/lld/test/COFF/pdb-lib.s b/lld/test/COFF/pdb-lib.s index ab95f82a2a91..74d987eac814 100644 --- a/lld/test/COFF/pdb-lib.s +++ b/lld/test/COFF/pdb-lib.s @@ -1,3 +1,4 @@ +# REQUIRES: x86 # 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 diff --git a/lld/test/COFF/savetemps.ll b/lld/test/COFF/savetemps.ll index 4e59812441a9..7f2e11c17715 100644 --- a/lld/test/COFF/savetemps.ll +++ b/lld/test/COFF/savetemps.ll @@ -1,3 +1,4 @@ +; REQUIRES: x86 ; RUN: rm -fr %T/savetemps ; RUN: mkdir %T/savetemps ; RUN: llvm-as -o %T/savetemps/savetemps.obj %s diff --git a/lld/test/COFF/thinlto-archives.ll b/lld/test/COFF/thinlto-archives.ll index 7a5e36aa1fb9..9a47a3a6feb6 100644 --- a/lld/test/COFF/thinlto-archives.ll +++ b/lld/test/COFF/thinlto-archives.ll @@ -1,3 +1,4 @@ +; REQUIRES: x86 ; 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 diff --git a/lld/test/COFF/thinlto-mangled.ll b/lld/test/COFF/thinlto-mangled.ll index efcd9c3d2d0a..8c901cbd70ba 100644 --- a/lld/test/COFF/thinlto-mangled.ll +++ b/lld/test/COFF/thinlto-mangled.ll @@ -1,3 +1,4 @@ +; REQUIRES: x86 ; 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 diff --git a/lld/test/COFF/thinlto.ll b/lld/test/COFF/thinlto.ll index 11b689d6327e..f01d0d802289 100644 --- a/lld/test/COFF/thinlto.ll +++ b/lld/test/COFF/thinlto.ll @@ -1,3 +1,4 @@ +; REQUIRES: x86 ; RUN: rm -fr %T/thinlto ; RUN: mkdir %T/thinlto ; RUN: opt -thinlto-bc -o %T/thinlto/main.obj %s diff --git a/lld/test/ELF/allow-shlib-undefined.s b/lld/test/ELF/allow-shlib-undefined.s index 2d068b0f60ed..abb0351db723 100644 --- a/lld/test/ELF/allow-shlib-undefined.s +++ b/lld/test/ELF/allow-shlib-undefined.s @@ -1,3 +1,4 @@ +# REQUIRES: x86 # --allow-shlib-undefined and --no-allow-shlib-undefined are fully # ignored in linker implementation. # --allow-shlib-undefined is set by default diff --git a/lld/test/ELF/auxiliary.s b/lld/test/ELF/auxiliary.s index 236d0a421d4f..18fbdf05f9ec 100644 --- a/lld/test/ELF/auxiliary.s +++ b/lld/test/ELF/auxiliary.s @@ -1,3 +1,4 @@ +# REQUIRES: x86 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o # RUN: ld.lld %t.o -shared -f aaa --auxiliary bbb -o %t # RUN: llvm-readobj --dynamic-table %t | FileCheck %s diff --git a/lld/test/ELF/gdb-index-empty.s b/lld/test/ELF/gdb-index-empty.s index 24f20803a008..0158357c9bfd 100644 --- a/lld/test/ELF/gdb-index-empty.s +++ b/lld/test/ELF/gdb-index-empty.s @@ -1,3 +1,4 @@ +# REQUIRES: x86 # 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 diff --git a/lld/test/ELF/gdb-index-gc-sections.s b/lld/test/ELF/gdb-index-gc-sections.s index 70a14754656c..58c47ae5e987 100644 --- a/lld/test/ELF/gdb-index-gc-sections.s +++ b/lld/test/ELF/gdb-index-gc-sections.s @@ -1,3 +1,4 @@ +# REQUIRES: x86 # 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 diff --git a/lld/test/ELF/i386-reloc-large-addend.s b/lld/test/ELF/i386-reloc-large-addend.s index b644640404e2..5af584475562 100644 --- a/lld/test/ELF/i386-reloc-large-addend.s +++ b/lld/test/ELF/i386-reloc-large-addend.s @@ -1,3 +1,4 @@ +// REQUIRES: x86 // RUN: llvm-mc %s -o %t.o -triple i386-pc-linux-code16 -filetype=obj // RUN: echo ".global foo; foo = 0x1" > %t1.s diff --git a/lld/test/ELF/i386-reloc-range.s b/lld/test/ELF/i386-reloc-range.s index 47447d0efa32..4fb5325e5434 100644 --- a/lld/test/ELF/i386-reloc-range.s +++ b/lld/test/ELF/i386-reloc-range.s @@ -1,3 +1,4 @@ +// REQUIRES: x86 // RUN: llvm-mc %s -o %t.o -triple i386-pc-linux-code16 -filetype=obj // RUN: echo ".global foo; foo = 0x10202" > %t1.s diff --git a/lld/test/ELF/linkerscript/output-too-large.s b/lld/test/ELF/linkerscript/output-too-large.s index db021eaa99e0..c892a88a947e 100644 --- a/lld/test/ELF/linkerscript/output-too-large.s +++ b/lld/test/ELF/linkerscript/output-too-large.s @@ -1,3 +1,4 @@ +# REQUIRES: x86 # 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 diff --git a/lld/test/ELF/lto/available-externally.ll b/lld/test/ELF/lto/available-externally.ll index 181042b9d1e1..3c86922c17fd 100644 --- a/lld/test/ELF/lto/available-externally.ll +++ b/lld/test/ELF/lto/available-externally.ll @@ -1,3 +1,4 @@ +# REQUIRES: x86 ; RUN: llvm-as %s -o %t1.o ; RUN: llvm-as %p/Inputs/available-externally.ll -o %t2.o ; RUN: ld.lld %t1.o %t2.o -m elf_x86_64 -o %t.so -shared -save-temps diff --git a/lld/test/ELF/lto/comdat2.ll b/lld/test/ELF/lto/comdat2.ll index 1509585f1553..283182155ae6 100644 --- a/lld/test/ELF/lto/comdat2.ll +++ b/lld/test/ELF/lto/comdat2.ll @@ -1,3 +1,4 @@ +; REQUIRES: x86 ; RUN: llvm-as %s -o %t.o ; RUN: llvm-mc -triple=x86_64-pc-linux %p/Inputs/comdat.s -o %t2.o -filetype=obj ; RUN: ld.lld -m elf_x86_64 %t.o %t2.o -o %t.so -shared diff --git a/lld/test/ELF/lto/common2.ll b/lld/test/ELF/lto/common2.ll index b44bbac4fda3..2345a203b24c 100644 --- a/lld/test/ELF/lto/common2.ll +++ b/lld/test/ELF/lto/common2.ll @@ -1,3 +1,4 @@ +; REQUIRES: x86 ; 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 diff --git a/lld/test/ELF/lto/common3.ll b/lld/test/ELF/lto/common3.ll index 6d40de547fcd..aea33f443f4c 100644 --- a/lld/test/ELF/lto/common3.ll +++ b/lld/test/ELF/lto/common3.ll @@ -1,3 +1,4 @@ +; REQUIRES: x86 ; RUN: llvm-as %s -o %t1.o ; RUN: llvm-as %S/Inputs/common3.ll -o %t2.o ; RUN: ld.lld -m elf_x86_64 %t1.o %t2.o -o %t -shared -save-temps diff --git a/lld/test/ELF/lto/discard-value-names.ll b/lld/test/ELF/lto/discard-value-names.ll index c71dc386113d..f1e95fe75000 100644 --- a/lld/test/ELF/lto/discard-value-names.ll +++ b/lld/test/ELF/lto/discard-value-names.ll @@ -1,3 +1,4 @@ +; REQUIRES: x86 ; RUN: llvm-as %s -o %t.o ; RUN: ld.lld -m elf_x86_64 -shared -save-temps %t.o -o %t2.o diff --git a/lld/test/ELF/lto/opt-level.ll b/lld/test/ELF/lto/opt-level.ll index 934bf01b6c32..1065ca775751 100644 --- a/lld/test/ELF/lto/opt-level.ll +++ b/lld/test/ELF/lto/opt-level.ll @@ -1,3 +1,4 @@ +; REQUIRES: x86 ; RUN: llvm-as -o %t.o %s ; RUN: ld.lld -o %t0 -m elf_x86_64 -e main --lto-O0 %t.o ; RUN: llvm-nm %t0 | FileCheck --check-prefix=CHECK-O0 %s diff --git a/lld/test/ELF/lto/opt-remarks.ll b/lld/test/ELF/lto/opt-remarks.ll index 88304205caba..e29cc72bb3cc 100644 --- a/lld/test/ELF/lto/opt-remarks.ll +++ b/lld/test/ELF/lto/opt-remarks.ll @@ -1,3 +1,4 @@ +; REQUIRES: x86 ; RUN: llvm-as %s -o %t.o ; RUN: rm -f %t.yaml diff --git a/lld/test/ELF/lto/relax-relocs.ll b/lld/test/ELF/lto/relax-relocs.ll index 929e124b2d8e..8e8d9d165787 100644 --- a/lld/test/ELF/lto/relax-relocs.ll +++ b/lld/test/ELF/lto/relax-relocs.ll @@ -1,3 +1,4 @@ +; REQUIRES: x86 ; RUN: llvm-as %s -o %t.o ; RUN: ld.lld -m elf_x86_64 -save-temps -shared %t.o -o %t.so ; RUN: llvm-readobj -r %t.so.lto.o | FileCheck %s diff --git a/lld/test/ELF/lto/thin-archivecollision.ll b/lld/test/ELF/lto/thin-archivecollision.ll index f1dd5ae4d85f..554c2b02fc40 100644 --- a/lld/test/ELF/lto/thin-archivecollision.ll +++ b/lld/test/ELF/lto/thin-archivecollision.ll @@ -1,3 +1,4 @@ +; REQUIRES: x86 ; 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 diff --git a/lld/test/ELF/lto/thinlto.ll b/lld/test/ELF/lto/thinlto.ll index 2036c554a76d..99dd19130d28 100644 --- a/lld/test/ELF/lto/thinlto.ll +++ b/lld/test/ELF/lto/thinlto.ll @@ -1,3 +1,4 @@ +; REQUIRES: x86 ; Basic ThinLTO tests. ; RUN: opt -module-summary %s -o %t.o ; RUN: opt -module-summary %p/Inputs/thinlto.ll -o %t2.o diff --git a/lld/test/ELF/lto/type-merge2.ll b/lld/test/ELF/lto/type-merge2.ll index 45777a7e6a48..6ebbf778dd8e 100644 --- a/lld/test/ELF/lto/type-merge2.ll +++ b/lld/test/ELF/lto/type-merge2.ll @@ -1,3 +1,4 @@ +; REQUIRES: x86 ; RUN: llvm-as %s -o %t.o ; RUN: llvm-as %p/Inputs/type-merge2.ll -o %t2.o ; RUN: ld.lld -m elf_x86_64 %t.o %t2.o -o %t.so -shared -save-temps diff --git a/lld/test/ELF/lto/unnamed-addr-comdat.ll b/lld/test/ELF/lto/unnamed-addr-comdat.ll index ed48f3ba5e04..29a59415851b 100644 --- a/lld/test/ELF/lto/unnamed-addr-comdat.ll +++ b/lld/test/ELF/lto/unnamed-addr-comdat.ll @@ -1,3 +1,4 @@ +; REQUIRES: x86 ; RUN: llvm-as %s -o %t.o ; RUN: ld.lld -m elf_x86_64 %t.o %t.o -o %t.so -save-temps -shared ; RUN: llvm-dis %t.so.0.2.internalize.bc -o - | FileCheck %s diff --git a/lld/test/ELF/lto/unnamed-addr-drop.ll b/lld/test/ELF/lto/unnamed-addr-drop.ll index 9142537fe57d..e827cbb435e6 100644 --- a/lld/test/ELF/lto/unnamed-addr-drop.ll +++ b/lld/test/ELF/lto/unnamed-addr-drop.ll @@ -1,3 +1,4 @@ +; REQUIRES: x86 ; RUN: llvm-as %s -o %t1.o ; RUN: llvm-as %S/Inputs/unnamed-addr-drop.ll -o %t2.o ; RUN: ld.lld -m elf_x86_64 %t1.o %t2.o -o %t.so -save-temps -shared diff --git a/lld/test/ELF/lto/unnamed-addr.ll b/lld/test/ELF/lto/unnamed-addr.ll index 6a6dd73dad86..56fe148b0995 100644 --- a/lld/test/ELF/lto/unnamed-addr.ll +++ b/lld/test/ELF/lto/unnamed-addr.ll @@ -1,3 +1,4 @@ +; REQUIRES: x86 ; RUN: llvm-as %s -o %t.o ; RUN: ld.lld -m elf_x86_64 %t.o -o %t.so -save-temps -shared ; RUN: llvm-dis %t.so.0.4.opt.bc -o - | FileCheck %s diff --git a/lld/test/ELF/many-alloc-sections.s b/lld/test/ELF/many-alloc-sections.s index 441e5ff32d08..648ab8250286 100644 --- a/lld/test/ELF/many-alloc-sections.s +++ b/lld/test/ELF/many-alloc-sections.s @@ -1,3 +1,4 @@ +// REQUIRES: x86 // 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). diff --git a/lld/test/ELF/many-sections.s b/lld/test/ELF/many-sections.s index ae923889ddc1..7ef0f7ceaac4 100644 --- a/lld/test/ELF/many-sections.s +++ b/lld/test/ELF/many-sections.s @@ -1,3 +1,4 @@ +// REQUIRES: x86 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o %t // RUN: llvm-readobj -t %t | FileCheck %s diff --git a/lld/test/ELF/merge-section-types.s b/lld/test/ELF/merge-section-types.s index ee80fe177fe0..f8462824684f 100644 --- a/lld/test/ELF/merge-section-types.s +++ b/lld/test/ELF/merge-section-types.s @@ -1,3 +1,4 @@ +// REQUIRES: x86 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: ld.lld -shared %t.o -o %t // RUN: llvm-readobj -s %t | FileCheck %s diff --git a/lld/test/ELF/new-dtags.test b/lld/test/ELF/new-dtags.test index 334d477622a7..1ae328c6b502 100644 --- a/lld/test/ELF/new-dtags.test +++ b/lld/test/ELF/new-dtags.test @@ -1,3 +1,4 @@ +# REQUIRES: x86 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: ld.lld %t.o -rpath=/somepath -shared --disable-new-dtags -o %t // RUN: ld.lld %t.o -rpath=/somepath -shared --enable-new-dtags -o %t2 diff --git a/lld/test/ELF/no-obj.s b/lld/test/ELF/no-obj.s index eea10a45d879..693cdf1e9d3f 100644 --- a/lld/test/ELF/no-obj.s +++ b/lld/test/ELF/no-obj.s @@ -1,3 +1,4 @@ +// REQUIRES: x86 // 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 diff --git a/lld/test/ELF/no-soname.s b/lld/test/ELF/no-soname.s index 08a6fe22323d..e3869ff5a03c 100644 --- a/lld/test/ELF/no-soname.s +++ b/lld/test/ELF/no-soname.s @@ -1,3 +1,4 @@ +// REQUIRES: x86 // 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 diff --git a/lld/test/ELF/no-symtab.s b/lld/test/ELF/no-symtab.s index 158bd727f251..af9df13e9768 100644 --- a/lld/test/ELF/no-symtab.s +++ b/lld/test/ELF/no-symtab.s @@ -1,3 +1,4 @@ +// REQUIRES: x86 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: ld.lld %t.o %p/Inputs/no-symtab.o -o %t .global _start diff --git a/lld/test/ELF/no-undefined.s b/lld/test/ELF/no-undefined.s index fa4d5e928763..493a38987091 100644 --- a/lld/test/ELF/no-undefined.s +++ b/lld/test/ELF/no-undefined.s @@ -1,3 +1,4 @@ +# REQUIRES: x86 # 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 diff --git a/lld/test/ELF/pie-weak.s b/lld/test/ELF/pie-weak.s index e74bcdfc09c0..99dbd47488fc 100644 --- a/lld/test/ELF/pie-weak.s +++ b/lld/test/ELF/pie-weak.s @@ -1,3 +1,4 @@ +# REQUIRES: x86 # 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 diff --git a/lld/test/ELF/progname.s b/lld/test/ELF/progname.s index 6d91823c9481..be8ab9e31c4f 100644 --- a/lld/test/ELF/progname.s +++ b/lld/test/ELF/progname.s @@ -1,3 +1,4 @@ +// REQUIRES: x86 // 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 diff --git a/lld/test/ELF/relative-dynamic-reloc-pie.s b/lld/test/ELF/relative-dynamic-reloc-pie.s index 25b3e0ac2333..f7c8b3c1516c 100644 --- a/lld/test/ELF/relative-dynamic-reloc-pie.s +++ b/lld/test/ELF/relative-dynamic-reloc-pie.s @@ -1,3 +1,4 @@ +# REQUIRES: x86 # 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 diff --git a/lld/test/ELF/relative-dynamic-reloc.s b/lld/test/ELF/relative-dynamic-reloc.s index 39382124e889..0ed7e40f7436 100644 --- a/lld/test/ELF/relative-dynamic-reloc.s +++ b/lld/test/ELF/relative-dynamic-reloc.s @@ -1,3 +1,4 @@ +// REQUIRES: x86 // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o // RUN: ld.lld -shared %t.o -o %t.so // RUN: llvm-readobj -t -r -dyn-symbols %t.so | FileCheck %s diff --git a/lld/test/ELF/relocatable-compressed-input.s b/lld/test/ELF/relocatable-compressed-input.s index bdfb2073a1e0..5f6b23e82da2 100644 --- a/lld/test/ELF/relocatable-compressed-input.s +++ b/lld/test/ELF/relocatable-compressed-input.s @@ -1,3 +1,4 @@ +# REQUIRES: x86 # REQUIRES: zlib # RUN: llvm-mc -compress-debug-sections=zlib-gnu -filetype=obj -triple=x86_64-unknown-linux %s -o %t1 diff --git a/lld/test/ELF/relocatable-reloc.s b/lld/test/ELF/relocatable-reloc.s index c576073a7510..7c699b9bf314 100644 --- a/lld/test/ELF/relocatable-reloc.s +++ b/lld/test/ELF/relocatable-reloc.s @@ -1,3 +1,4 @@ +// REQUIRES: x86 // 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 diff --git a/lld/test/ELF/relocatable-section-symbol.s b/lld/test/ELF/relocatable-section-symbol.s index 9ac3a91d2c24..57a75ab92f11 100644 --- a/lld/test/ELF/relocatable-section-symbol.s +++ b/lld/test/ELF/relocatable-section-symbol.s @@ -1,3 +1,4 @@ +# REQUIRES: x86 # 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 diff --git a/lld/test/ELF/relocatable-sections.s b/lld/test/ELF/relocatable-sections.s index d6a922fba482..75ede137293c 100644 --- a/lld/test/ELF/relocatable-sections.s +++ b/lld/test/ELF/relocatable-sections.s @@ -1,3 +1,4 @@ +# REQUIRES: x86 # 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 diff --git a/lld/test/ELF/relocatable-tls.s b/lld/test/ELF/relocatable-tls.s index 88d38c2ae4b4..ff04dd2dfccb 100644 --- a/lld/test/ELF/relocatable-tls.s +++ b/lld/test/ELF/relocatable-tls.s @@ -1,3 +1,4 @@ +# REQUIRES: x86 # 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 diff --git a/lld/test/ELF/relocation-shared.s b/lld/test/ELF/relocation-shared.s index e1850944c459..4fba7a5683b0 100644 --- a/lld/test/ELF/relocation-shared.s +++ b/lld/test/ELF/relocation-shared.s @@ -1,3 +1,4 @@ +// REQUIRES: x86 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o // RUN: ld.lld %t.o -shared -o %t.so // RUN: llvm-readobj -r -s -section-data %t.so | FileCheck %s