[llvm] r175433 - AArch64: adjust tests which rely on a default JIT
Tim Northover
Tim.Northover at arm.com
Mon Feb 18 03:08:37 PST 2013
Author: tnorthover
Date: Mon Feb 18 05:08:37 2013
New Revision: 175433
URL: http://llvm.org/viewvc/llvm-project?rev=175433&view=rev
Log:
AArch64: adjust tests which rely on a default JIT
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.
Modified:
llvm/trunk/test/Analysis/Profiling/lit.local.cfg
llvm/trunk/test/ExecutionEngine/lit.local.cfg
llvm/trunk/test/Transforms/LICM/2003-12-11-SinkingToPHI.ll
Modified: llvm/trunk/test/Analysis/Profiling/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Analysis/Profiling/lit.local.cfg?rev=175433&r1=175432&r2=175433&view=diff
==============================================================================
--- llvm/trunk/test/Analysis/Profiling/lit.local.cfg (original)
+++ llvm/trunk/test/Analysis/Profiling/lit.local.cfg Mon Feb 18 05:08:37 2013
@@ -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
Modified: llvm/trunk/test/ExecutionEngine/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/ExecutionEngine/lit.local.cfg?rev=175433&r1=175432&r2=175433&view=diff
==============================================================================
--- llvm/trunk/test/ExecutionEngine/lit.local.cfg (original)
+++ llvm/trunk/test/ExecutionEngine/lit.local.cfg Mon Feb 18 05:08:37 2013
@@ -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
Modified: llvm/trunk/test/Transforms/LICM/2003-12-11-SinkingToPHI.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/LICM/2003-12-11-SinkingToPHI.ll?rev=175433&r1=175432&r2=175433&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/LICM/2003-12-11-SinkingToPHI.ll (original)
+++ llvm/trunk/test/Transforms/LICM/2003-12-11-SinkingToPHI.ll Mon Feb 18 05:08:37 2013
@@ -1,4 +1,4 @@
-; RUN: opt < %s -licm | lli %defaultjit
+; RUN: opt < %s -licm | lli -force-interpreter
define i32 @main() {
entry:
More information about the llvm-commits
mailing list