AArch64: adjust tests which rely on a default JIT
authorTim Northover <Tim.Northover@arm.com>
Mon, 18 Feb 2013 11:08:37 +0000 (11:08 +0000)
committerTim Northover <Tim.Northover@arm.com>
Mon, 18 Feb 2013 11:08:37 +0000 (11:08 +0000)
Profiling tests *do* need a JIT. They'll pass if a cross-compiler targetting
AArch64 by default has been built, but fail if a native AArch64 compiler has
been build. Therefore XFAIL is inappropriate and we mark them unsupported.

ExecutionEngine tests are JIT by definition, they should also be unsupported.

Transforms/LICM only uses the interpreter to check the output is still sane
after optimisation. It can be switched to use an interpreter.

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

test/Analysis/Profiling/lit.local.cfg
test/ExecutionEngine/lit.local.cfg
test/Transforms/LICM/2003-12-11-SinkingToPHI.ll

index 19eebc0ac7ac345747856190cdcccb57bf60eec6..d507d3fd71a4c5b0695458123cc6657c3c39103d 100644 (file)
@@ -1 +1,13 @@
 config.suffixes = ['.ll', '.c', '.cpp']
+
+def getRoot(config):
+    if not config.parent:
+        return config
+    return getRoot(config.parent)
+
+root = getRoot(config)
+
+# Most profiling tests rely on a JIT being present to gather their data; AArch64
+# doesn't have any JIT at present so they will fail when run there.
+if root.host_arch in ['AArch64']:
+    config.unsupported = True
index f0343263dba6169956d737cd724bbd186c0090b7..dd6a5bb240ecec4cde756ce26c83788f5e16520f 100644 (file)
@@ -7,6 +7,6 @@ def getRoot(config):
 
 root = getRoot(config)
 
-if root.host_arch in ['PowerPC']:
+if root.host_arch in ['PowerPC', 'AArch64']:
     config.unsupported = True
 
index fe8d44531322832ed3d70ec0e03b69cab37c5025..2bf26041626c4e393fd9295b147c925e3ae2ce8c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -licm | lli %defaultjit
+; RUN: opt < %s -licm | lli -force-interpreter
 
 define i32 @main() {
 entry: