diff --git a/llvm/test/ExecutionEngine/OrcLazy/debug-descriptor-elf-minimal.ll b/llvm/test/ExecutionEngine/OrcLazy/debug-descriptor-elf-minimal.ll --- a/llvm/test/ExecutionEngine/OrcLazy/debug-descriptor-elf-minimal.ll +++ b/llvm/test/ExecutionEngine/OrcLazy/debug-descriptor-elf-minimal.ll @@ -1,3 +1,6 @@ +# REQUIRES: x86-registered-target +# REQUIRES: 64bit-process + ; RUN: lli --jit-kind=orc-lazy --per-module-lazy --jit-linker=rtdyld \ ; RUN: --generate=__dump_jit_debug_descriptor %s | FileCheck %s ; diff --git a/llvm/test/ExecutionEngine/OrcLazy/debug-objects-elf-minimal.ll b/llvm/test/ExecutionEngine/OrcLazy/debug-objects-elf-minimal.ll --- a/llvm/test/ExecutionEngine/OrcLazy/debug-objects-elf-minimal.ll +++ b/llvm/test/ExecutionEngine/OrcLazy/debug-objects-elf-minimal.ll @@ -1,3 +1,6 @@ +# REQUIRES: x86-registered-target +# REQUIRES: 64bit-process + ; In-memory debug-object contains some basic DWARF ; ; RUN: lli --jit-kind=orc-lazy --per-module-lazy --jit-linker=rtdyld \ diff --git a/llvm/test/ExecutionEngine/OrcLazy/lit.local.cfg b/llvm/test/ExecutionEngine/OrcLazy/lit.local.cfg --- a/llvm/test/ExecutionEngine/OrcLazy/lit.local.cfg +++ b/llvm/test/ExecutionEngine/OrcLazy/lit.local.cfg @@ -6,3 +6,7 @@ # FIXME: These tests don't pass with the COFF rtld. if sys.platform == 'win32': config.unsupported = True + +# Some tests only work for 64-bit processes on 64-bit hosts. +if sys.int_info.sizeof_digit == 8: + config.available_features.add('64bit-process')