[llvm] e30ce63 - llvm-exegesis: Only run target specfic tests on native hosts

Tom Stellard via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 10 11:24:53 PST 2023


Author: Tom Stellard
Date: 2023-03-10T11:22:10-08:00
New Revision: e30ce634f75c01cc8784cb0c4972c42987178c1d

URL: https://github.com/llvm/llvm-project/commit/e30ce634f75c01cc8784cb0c4972c42987178c1d
DIFF: https://github.com/llvm/llvm-project/commit/e30ce634f75c01cc8784cb0c4972c42987178c1d.diff

LOG: 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

Added: 
    

Modified: 
    llvm/test/tools/llvm-exegesis/PowerPC/lit.local.cfg
    llvm/test/tools/llvm-exegesis/X86/lit.local.cfg

Removed: 
    


################################################################################
diff  --git a/llvm/test/tools/llvm-exegesis/PowerPC/lit.local.cfg b/llvm/test/tools/llvm-exegesis/PowerPC/lit.local.cfg
index 135f5796b5837..2fb4364f3721c 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 7230f35fdb833..7d6abe8807057 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


        


More information about the llvm-commits mailing list