summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support
diff options
context:
space:
mode:
authorJaved Absar <javed.absar@arm.com>2017-02-01 11:55:03 +0000
committerJaved Absar <javed.absar@arm.com>2017-02-01 11:55:03 +0000
commite5ad87e9395568ba5d0387e6907bc6d1dd9b4042 (patch)
tree35b876d0b1c6ef63e5e2750b7c60f29e7f58f561 /llvm/unittests/Support
parent43c882c6f8e06ba37181f63dee84c8c710f50c78 (diff)
downloadbcm5719-llvm-e5ad87e9395568ba5d0387e6907bc6d1dd9b4042.tar.gz
bcm5719-llvm-e5ad87e9395568ba5d0387e6907bc6d1dd9b4042.zip
[ARM] Enable Cortex-M23 and Cortex-M33 support.
Add both cores to the target parser and TableGen. Test that eabi attributes are set correctly for both cores. Additionally, test the absence and presence of MOVT in Cortex-M23 and Cortex-M33, respectively. Committed on behalf of Sanne Wouda. Reviewers : rengolin, olista01. Differential Revision: https://reviews.llvm.org/D29073 llvm-svn: 293761
Diffstat (limited to 'llvm/unittests/Support')
-rw-r--r--llvm/unittests/Support/TargetParserTest.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/unittests/Support/TargetParserTest.cpp b/llvm/unittests/Support/TargetParserTest.cpp
index a3d806f76fb..01136cb9717 100644
--- a/llvm/unittests/Support/TargetParserTest.cpp
+++ b/llvm/unittests/Support/TargetParserTest.cpp
@@ -246,6 +246,10 @@ TEST(TargetParserTest, testARMCPU) {
ARM::AEK_VIRT | ARM::AEK_HWDIVARM |
ARM::AEK_HWDIV | ARM::AEK_DSP,
"8-A"));
+ EXPECT_TRUE(testARMCPU("cortex-m23", "armv8-m.base", "none",
+ ARM::AEK_HWDIV, "8-M.Baseline"));
+ EXPECT_TRUE(testARMCPU("cortex-m33", "armv8-m.main", "fpv5-sp-d16",
+ ARM::AEK_HWDIV | ARM::AEK_DSP, "8-M.Mainline"));
EXPECT_TRUE(testARMCPU("iwmmxt", "iwmmxt", "none",
ARM::AEK_NONE, "iwmmxt"));
EXPECT_TRUE(testARMCPU("xscale", "xscale", "none",
OpenPOWER on IntegriCloud