[PATCH] D145763: llvm-exegesis: Only run X86 tests on X86 hosts

Tom Stellard via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 9 22:33:05 PST 2023


tstellar updated this revision to Diff 504029.
tstellar added a comment.
Herald added a subscriber: nemanjai.

Fix PowerPC tests too.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D145763/new/

https://reviews.llvm.org/D145763

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


Index: llvm/test/tools/llvm-exegesis/X86/lit.local.cfg
===================================================================
--- llvm/test/tools/llvm-exegesis/X86/lit.local.cfg
+++ 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
Index: llvm/test/tools/llvm-exegesis/PowerPC/lit.local.cfg
===================================================================
--- llvm/test/tools/llvm-exegesis/PowerPC/lit.local.cfg
+++ 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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145763.504029.patch
Type: text/x-patch
Size: 963 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230310/fbb7cd07/attachment.bin>


More information about the llvm-commits mailing list