Index: test/COFF/guardcf-align.s =================================================================== --- test/COFF/guardcf-align.s +++ test/COFF/guardcf-align.s @@ -6,6 +6,8 @@ # RUN: %t.obj %T/guardcf-align-foobar.obj # RUN: llvm-readobj -coff-load-config %T/guardcf-align.exe | FileCheck %s +# REQUIRES: x86_64 + # Check that the gfids table contains at least one entry that ends in 0 # and no entries that end in something other than 0. # CHECK: GuardFidTable [ Index: test/ELF/icf13.s =================================================================== --- test/ELF/icf13.s +++ test/ELF/icf13.s @@ -2,6 +2,8 @@ # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1 # RUN: ld.lld -shared -z notext %t1 -o /dev/null --icf=all --print-icf-sections 2>&1 | FileCheck -allow-empty %s +# REQUIRES: x86_64 + ## Check that ICF does not merge sections which relocations point to symbols ## that are not of the regular defined kind. Index: test/ELF/icf15.s =================================================================== --- test/ELF/icf15.s +++ test/ELF/icf15.s @@ -2,6 +2,8 @@ # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1 # RUN: ld.lld %t1 -o /dev/null --icf=all --print-icf-sections 2>&1 | FileCheck -allow-empty %s +# REQUIRES: x86_64 + ## Check that ICF does not merge sections which relocations have equal addends, ## but different target values. Index: test/ELF/icf16.s =================================================================== --- test/ELF/icf16.s +++ test/ELF/icf16.s @@ -2,6 +2,8 @@ # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1 # RUN: ld.lld -shared -z notext %t1 -o /dev/null --icf=all --print-icf-sections 2>&1 | FileCheck -allow-empty %s +# REQUIRES: x86_64 + ## ICF is able to merge sections which relocations referring regular input sections ## or mergeable sections. .eh_frame is represented with a different kind of section, ## here we check that ICF code is able to handle and will not merge sections which Index: test/ELF/icf17.s =================================================================== --- test/ELF/icf17.s +++ test/ELF/icf17.s @@ -2,6 +2,8 @@ # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1 # RUN: ld.lld %t1 -o /dev/null --icf=all --print-icf-sections 2>&1 | FileCheck -allow-empty %s +# REQUIRES: x86_64 + # CHECK-NOT: selected .section .text Index: test/ELF/lto/libcall-archive.ll =================================================================== --- test/ELF/lto/libcall-archive.ll +++ test/ELF/lto/libcall-archive.ll @@ -9,6 +9,8 @@ ; RUN: ld.lld -o %t2 %t.o --start-lib %t2.o %t3.o --end-lib ; RUN: llvm-nm %t2 | FileCheck %s +; REQUIRES: x86_64 + ; CHECK-NOT: T __sync_val_compare_and_swap_8 ; CHECK: T _start ; CHECK: T memcpy