diff --git a/llvm/test/tools/llvm-exegesis/PowerPC/lit.local.cfg b/llvm/test/tools/llvm-exegesis/PowerPC/lit.local.cfg index 135f5796b58373..2fb4364f3721cd 100644 --- a/llvm/test/tools/llvm-exegesis/PowerPC/lit.local.cfg +++ b/llvm/test/tools/llvm-exegesis/PowerPC/lit.local.cfg @@ -1,3 +1,6 @@ if not ('PowerPC' in config.root.targets): # We need support for PowerPC. config.unsupported = True +elif not ('powerpc' in config.root.host_triple): + # We need to be running on an PPC host. + config.unsupported = True diff --git a/llvm/test/tools/llvm-exegesis/X86/lit.local.cfg b/llvm/test/tools/llvm-exegesis/X86/lit.local.cfg index 7230f35fdb8331..7d6abe88070571 100644 --- a/llvm/test/tools/llvm-exegesis/X86/lit.local.cfg +++ b/llvm/test/tools/llvm-exegesis/X86/lit.local.cfg @@ -1,3 +1,6 @@ if not ('X86' in config.root.targets): # We need support for X86. config.unsupported = True +elif not ('x86_64' in config.root.host_triple): + # We need to be running on an X86 host. + config.unsupported = True