From 86e52fd58617c03a0f4d562b3aa7e35eb7938cc9 Mon Sep 17 00:00:00 2001 From: Evandro Menezes Date: Thu, 21 Mar 2019 18:54:58 +0000 Subject: [PATCH] [AArch64] Update for Exynos Fix the feature set for Exynos M4 by removing support for `+fp16fml` and fix test case. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@356698 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/AArch64/AArch64.td | 2 +- unittests/Support/TargetParserTest.cpp | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/Target/AArch64/AArch64.td b/lib/Target/AArch64/AArch64.td index 940b73f9655..364a502085a 100644 --- a/lib/Target/AArch64/AArch64.td +++ b/lib/Target/AArch64/AArch64.td @@ -573,7 +573,7 @@ def ProcExynosM4 : SubtargetFeature<"exynosm4", "ARMProcFamily", "ExynosM3", FeatureDotProd, FeatureExynosCheapAsMoveHandling, FeatureForce32BitJumpTables, - FeatureFP16FML, + FeatureFullFP16, FeatureFuseAddress, FeatureFuseAES, FeatureFuseArithmeticLogic, diff --git a/unittests/Support/TargetParserTest.cpp b/unittests/Support/TargetParserTest.cpp index 2790a984b14..6b71dc7297a 100644 --- a/unittests/Support/TargetParserTest.cpp +++ b/unittests/Support/TargetParserTest.cpp @@ -899,15 +899,15 @@ TEST(TargetParserTest, testAArch64Extension) { EXPECT_FALSE(testAArch64Extension("exynos-m3", AArch64::ArchKind::INVALID, "ras")); EXPECT_TRUE(testAArch64Extension("exynos-m4", - AArch64::ArchKind::INVALID, "lse")); + AArch64::ArchKind::INVALID, "dotprod")); EXPECT_TRUE(testAArch64Extension("exynos-m4", - AArch64::ArchKind::INVALID, "rdm")); + AArch64::ArchKind::INVALID, "fp16")); + EXPECT_TRUE(testAArch64Extension("exynos-m4", + AArch64::ArchKind::INVALID, "lse")); EXPECT_TRUE(testAArch64Extension("exynos-m4", AArch64::ArchKind::INVALID, "ras")); - EXPECT_FALSE(testAArch64Extension("exynos-m4", - AArch64::ArchKind::INVALID, "fullfp16")); EXPECT_TRUE(testAArch64Extension("exynos-m4", - AArch64::ArchKind::INVALID, "dotprod")); + AArch64::ArchKind::INVALID, "rdm")); EXPECT_TRUE(testAArch64Extension("falkor", AArch64::ArchKind::INVALID, "rdm")); EXPECT_FALSE(testAArch64Extension("kryo", -- 2.40.0