[llvm] [AArch64] Add armv9.6 features to AArch64AsmParser (PR #112722)

via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 17 08:04:57 PDT 2024


https://github.com/Lukacma created https://github.com/llvm/llvm-project/pull/112722

New features need to be added to ExtensionMap for .arch and .arch_extension to work.

>From 5b0a110bd8420ef4cd1c120645bcd2c895a327ab Mon Sep 17 00:00:00 2001
From: Marian Lukac <Marian.Lukac at arm.com>
Date: Thu, 17 Oct 2024 14:59:56 +0000
Subject: [PATCH] [AArch64] Add armv9.6 features to AArch64AsmParser

New features need to be added to ExtensionMap for .arch and
.arch_extension to work
---
 .../lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp b/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
index df69c20b1359fc..a5165d45893f3e 100644
--- a/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
+++ b/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
@@ -3736,6 +3736,17 @@ static const struct Extension {
     {"sme-fa64", {AArch64::FeatureSMEFA64}},
     {"cpa", {AArch64::FeatureCPA}},
     {"tlbiw", {AArch64::FeatureTLBIW}},
+    {"cmpbr", {AArch64::FeatureCMPBR}},
+    {"f8f32mm", {AArch64::FeatureF8F32MM}},
+    {"f8f16mm", {AArch64::FeatureF8F16MM}},
+    {"fprcvt", {AArch64::FeatureFPRCVT}},
+    {"lsfe", {AArch64::FeatureLSFE}},
+    {"sme2p2", {AArch64::FeatureSME2p2}},
+    {"ssve-aes", {AArch64::FeatureSSVE_AES}},
+    {"sve2p2", {AArch64::FeatureSVE2p2}},
+    {"sve-aes2", {AArch64::FeatureSVEAES2}},
+    {"sve-bfscale", {AArch64::FeatureSVEBFSCALE}},
+    {"sve-f16f32mm", {AArch64::FeatureSVE_F16F32MM}},
 };
 
 static void setRequiredFeatureString(FeatureBitset FBS, std::string &Str) {



More information about the llvm-commits mailing list