summaryrefslogtreecommitdiffstats
path: root/unittests/ExecutionEngine/MCJIT/MCJITTestBase.h
diff options
context:
space:
mode:
authorRenato Golin <renato.golin@linaro.org>2013-05-19 20:10:10 +0000
committerRenato Golin <renato.golin@linaro.org>2013-05-19 20:10:10 +0000
commit4e4464bf744030ae4a775bf49a30e9e4ea625682 (patch)
tree9ef1c06f66293db5298d87ef2f7193086debd539 /unittests/ExecutionEngine/MCJIT/MCJITTestBase.h
parent21886a495a5467aa241f325cdd3dd2532fa7dcde (diff)
downloadexternal_llvm-4e4464bf744030ae4a775bf49a30e9e4ea625682.zip
external_llvm-4e4464bf744030ae4a775bf49a30e9e4ea625682.tar.gz
external_llvm-4e4464bf744030ae4a775bf49a30e9e4ea625682.tar.bz2
SubArch support in MCJIT unittest
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182220 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/ExecutionEngine/MCJIT/MCJITTestBase.h')
-rw-r--r--unittests/ExecutionEngine/MCJIT/MCJITTestBase.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/unittests/ExecutionEngine/MCJIT/MCJITTestBase.h b/unittests/ExecutionEngine/MCJIT/MCJITTestBase.h
index 71f2bc5..fd358cd 100644
--- a/unittests/ExecutionEngine/MCJIT/MCJITTestBase.h
+++ b/unittests/ExecutionEngine/MCJIT/MCJITTestBase.h
@@ -50,6 +50,13 @@ protected:
SupportedArchs.push_back(Triple::x86);
SupportedArchs.push_back(Triple::x86_64);
+ // Some architectures have sub-architectures in which tests will fail, like
+ // ARM. These two vectors will define if they do have sub-archs (to avoid
+ // extra work for those who don't), and if so, if they are listed to work
+ HasSubArchs.push_back(Triple::arm);
+ SupportedSubArchs.push_back("armv6");
+ SupportedSubArchs.push_back("armv7");
+
// The operating systems below are known to be incompatible with MCJIT as
// they are copied from the test/ExecutionEngine/MCJIT/lit.local.cfg and
// should be kept in sync.