diff options
author | Tim Northover <Tim.Northover@arm.com> | 2013-02-18 11:08:37 +0000 |
---|---|---|
committer | Tim Northover <Tim.Northover@arm.com> | 2013-02-18 11:08:37 +0000 |
commit | 67d3c093323a12835127d87145bf8d1b22246aea (patch) | |
tree | c45371db17e1937278eda233a45f79a2c68165e6 /llvm/test | |
parent | 40c36c54ca01c3f96644962971da1c23a4cda945 (diff) | |
download | bcm5719-llvm-67d3c093323a12835127d87145bf8d1b22246aea.tar.gz bcm5719-llvm-67d3c093323a12835127d87145bf8d1b22246aea.zip |
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.
llvm-svn: 175433
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/Analysis/Profiling/lit.local.cfg | 12 | ||||
-rw-r--r-- | llvm/test/ExecutionEngine/lit.local.cfg | 2 | ||||
-rw-r--r-- | llvm/test/Transforms/LICM/2003-12-11-SinkingToPHI.ll | 2 |
3 files changed, 14 insertions, 2 deletions
diff --git a/llvm/test/Analysis/Profiling/lit.local.cfg b/llvm/test/Analysis/Profiling/lit.local.cfg index 19eebc0ac7a..d507d3fd71a 100644 --- a/llvm/test/Analysis/Profiling/lit.local.cfg +++ b/llvm/test/Analysis/Profiling/lit.local.cfg @@ -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 diff --git a/llvm/test/ExecutionEngine/lit.local.cfg b/llvm/test/ExecutionEngine/lit.local.cfg index f0343263dba..dd6a5bb240e 100644 --- a/llvm/test/ExecutionEngine/lit.local.cfg +++ b/llvm/test/ExecutionEngine/lit.local.cfg @@ -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 diff --git a/llvm/test/Transforms/LICM/2003-12-11-SinkingToPHI.ll b/llvm/test/Transforms/LICM/2003-12-11-SinkingToPHI.ll index fe8d4453132..2bf26041626 100644 --- a/llvm/test/Transforms/LICM/2003-12-11-SinkingToPHI.ll +++ b/llvm/test/Transforms/LICM/2003-12-11-SinkingToPHI.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -licm | lli %defaultjit +; RUN: opt < %s -licm | lli -force-interpreter define i32 @main() { entry: |