Enable MCJIT tests on PowerPC.
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Mon, 19 Nov 2012 17:57:07 +0000 (17:57 +0000)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Mon, 19 Nov 2012 17:57:07 +0000 (17:57 +0000)
Disable old JIT tests on PowerPC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168316 91177308-0d34-0410-b5e6-96231b3b80d8

test/ExecutionEngine/MCJIT/lit.local.cfg
test/ExecutionEngine/lit.local.cfg

index af3d13f746749ada6675c3254cfeb1b892900868..7bcb9ae82cad358a466ef1a6bce5d3160dd769a5 100644 (file)
@@ -8,12 +8,13 @@ def getRoot(config):
 root = getRoot(config)
 
 targets = set(root.targets_to_build.split())
-if ('X86' in targets) | ('ARM' in targets) | ('Mips' in targets):
+if ('X86' in targets) | ('ARM' in targets) | ('Mips' in targets) | \
+   ('PowerPC' in targets):
     config.unsupported = False
 else:
     config.unsupported = True
 
-if root.host_arch not in ['x86', 'x86_64', 'ARM', 'Mips']:
+if root.host_arch not in ['x86', 'x86_64', 'ARM', 'Mips', 'PowerPC']:
     config.unsupported = True
 
 if root.host_os in ['Darwin']:
index 19eebc0ac7ac345747856190cdcccb57bf60eec6..f0343263dba6169956d737cd724bbd186c0090b7 100644 (file)
@@ -1 +1,12 @@
 config.suffixes = ['.ll', '.c', '.cpp']
+
+def getRoot(config):
+    if not config.parent:
+        return config
+    return getRoot(config.parent)
+
+root = getRoot(config)
+
+if root.host_arch in ['PowerPC']:
+    config.unsupported = True
+