summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2012-11-19 17:57:07 +0000
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2012-11-19 17:57:07 +0000
commit26786bacd131d8b2b349749e55eefb7fc1e1e557 (patch)
treecb6d8e11298c1bfa4d367caab7f2a5e4491dd4ea /llvm/test
parent20921e1883bc5a9f0b56d6f18d92980530d180ef (diff)
downloadbcm5719-llvm-26786bacd131d8b2b349749e55eefb7fc1e1e557.tar.gz
bcm5719-llvm-26786bacd131d8b2b349749e55eefb7fc1e1e557.zip
Enable MCJIT tests on PowerPC.
Disable old JIT tests on PowerPC. llvm-svn: 168316
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/ExecutionEngine/MCJIT/lit.local.cfg5
-rw-r--r--llvm/test/ExecutionEngine/lit.local.cfg11
2 files changed, 14 insertions, 2 deletions
diff --git a/llvm/test/ExecutionEngine/MCJIT/lit.local.cfg b/llvm/test/ExecutionEngine/MCJIT/lit.local.cfg
index af3d13f7467..7bcb9ae82ca 100644
--- a/llvm/test/ExecutionEngine/MCJIT/lit.local.cfg
+++ b/llvm/test/ExecutionEngine/MCJIT/lit.local.cfg
@@ -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']:
diff --git a/llvm/test/ExecutionEngine/lit.local.cfg b/llvm/test/ExecutionEngine/lit.local.cfg
index 19eebc0ac7a..f0343263dba 100644
--- a/llvm/test/ExecutionEngine/lit.local.cfg
+++ b/llvm/test/ExecutionEngine/lit.local.cfg
@@ -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
+
OpenPOWER on IntegriCloud