[llvm-branch-commits] [llvm] f2b0bf3 - llvm-exegesis: Only run target specfic tests on native hosts

Tom Stellard via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Apr 18 18:06:29 PDT 2023


Author: Tom Stellard
Date: 2023-04-18T18:05:59-07:00
New Revision: f2b0bf3208246f0b41e2b5dc73bccdc2064b17e2

URL: https://github.com/llvm/llvm-project/commit/f2b0bf3208246f0b41e2b5dc73bccdc2064b17e2
DIFF: https://github.com/llvm/llvm-project/commit/f2b0bf3208246f0b41e2b5dc73bccdc2064b17e2.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

(cherry picked from commit e30ce634f75c01cc8784cb0c4972c42987178c1d)

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-branch-commits mailing list