Use cast<> instead of dyn_cast to remove llvm_unreachable. NFC.
[oota-llvm.git] / test / ExecutionEngine / lit.local.cfg
index dd6a5bb240ecec4cde756ce26c83788f5e16520f..f6673df3c35823f7caf51104e9515ad6321632a1 100644 (file)
@@ -1,12 +1,17 @@
-config.suffixes = ['.ll', '.c', '.cpp']
+if config.root.host_arch in ['PowerPC', 'AArch64', 'SystemZ']:
+    config.unsupported = True
 
-def getRoot(config):
-    if not config.parent:
-        return config
-    return getRoot(config.parent)
+# CMake and autoconf diverge in naming or host_arch
+if 'powerpc64' in config.root.target_triple:
+    config.unsupported = True
 
-root = getRoot(config)
+if 'aarch64' in config.root.target_triple \
+    or 'arm64' in config.root.target_triple:
+        config.unsupported = True
 
-if root.host_arch in ['PowerPC', 'AArch64']:
+if 'hexagon' in config.root.target_triple:
     config.unsupported = True
 
+# ExecutionEngine tests are not expected to pass in a cross-compilation setup.
+if 'native' not in config.available_features:
+    config.unsupported = True