[PATCH] D110788: test/ExecutionEngine: Clean up lit.local.cfg

Tom Stellard via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 29 16:33:57 PDT 2021


tstellar created this revision.
tstellar added a reviewer: lhames.
Herald added a subscriber: fedor.sergeev.
tstellar requested review of this revision.
Herald added a project: LLVM.

Switch to using config.root.native_target to determine if tests are
supported.  This is a canonical form of the arch from the target
triple.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D110788

Files:
  llvm/test/ExecutionEngine/lit.local.cfg


Index: llvm/test/ExecutionEngine/lit.local.cfg
===================================================================
--- llvm/test/ExecutionEngine/lit.local.cfg
+++ llvm/test/ExecutionEngine/lit.local.cfg
@@ -1,18 +1,4 @@
-if config.root.host_arch in ['Sparc', 'PowerPC', 'AArch64', 'ARM64', 'SystemZ']:
-    config.unsupported = True
-
-# CMake and autoconf diverge in naming or host_arch
-if 'powerpc64' in config.root.target_triple:
-    config.unsupported = True
-
-if 'aarch64' in config.root.target_triple \
-    or 'arm64' in config.root.target_triple:
-        config.unsupported = True
-
-if 'hexagon' in config.root.target_triple:
-    config.unsupported = True
-
-if 'sparc' in config.root.target_triple:
+if config.root.native_target in ['Sparc', 'PowerPC', 'AArch64', 'ARM64', 'SystemZ', 'Hexagon']:
     config.unsupported = True
 
 # ExecutionEngine tests are not expected to pass in a cross-compilation setup.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110788.376066.patch
Type: text/x-patch
Size: 924 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210929/da4f0de3/attachment.bin>


More information about the llvm-commits mailing list