summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Stellard <tstellar@redhat.com>2023-03-10 00:06:22 -0500
committerTom Stellard <tstellar@redhat.com>2023-04-18 18:05:59 -0700
commitf2b0bf3208246f0b41e2b5dc73bccdc2064b17e2 (patch)
tree58a915301db8889f06270f9e7bc89dbbab1950dd
parentb32dda29731d5ed716ff3a04c2cd747408018262 (diff)
downloadllvm-f2b0bf3208246f0b41e2b5dc73bccdc2064b17e2.tar.gz
llvm-exegesis: Only run target specfic tests on native hosts
These tests were failing on SystemZ hosts, I don't think JIT'ing non-SystemZ modules on SystemZ is supported. The tests were initiallay enabled on all arches by 7a76140220bd2c4730a2c39b6fd645402040f011. Differential Revision: https://reviews.llvm.org/D145763 (cherry picked from commit e30ce634f75c01cc8784cb0c4972c42987178c1d)
-rw-r--r--llvm/test/tools/llvm-exegesis/PowerPC/lit.local.cfg3
-rw-r--r--llvm/test/tools/llvm-exegesis/X86/lit.local.cfg3
2 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-exegesis/PowerPC/lit.local.cfg b/llvm/test/tools/llvm-exegesis/PowerPC/lit.local.cfg
index 135f5796b583..2fb4364f3721 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 7230f35fdb83..7d6abe880705 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