[llvm] 3cb2346 - [AArch64] Support .arch_extension pan
Roland McGrath via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 24 11:29:32 PDT 2021
Author: Roland McGrath
Date: 2021-03-24T11:29:22-07:00
New Revision: 3cb2346982399892eae36e660ffa7e77a27ee067
URL: https://github.com/llvm/llvm-project/commit/3cb2346982399892eae36e660ffa7e77a27ee067
DIFF: https://github.com/llvm/llvm-project/commit/3cb2346982399892eae36e660ffa7e77a27ee067.diff
LOG: [AArch64] Support .arch_extension pan
This makes the behavior consistent with the GNU assembler.
Reviewed By: phosek
Differential Revision: https://reviews.llvm.org/D99209
Added:
Modified:
llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
llvm/test/MC/AArch64/directive-arch_extension.s
Removed:
################################################################################
diff --git a/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp b/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
index e495003e3972..9141e786977a 100644
--- a/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
+++ b/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
@@ -2906,6 +2906,7 @@ static const struct Extension {
{"mte", {AArch64::FeatureMTE}},
{"memtag", {AArch64::FeatureMTE}},
{"tlb-rmi", {AArch64::FeatureTLB_RMI}},
+ {"pan", {AArch64::FeaturePAN}},
{"pan-rwv", {AArch64::FeaturePAN_RWV}},
{"ccpp", {AArch64::FeatureCCPP}},
{"rcpc", {AArch64::FeatureRCPC}},
@@ -2921,7 +2922,6 @@ static const struct Extension {
{"pauth", {AArch64::FeaturePAuth}},
{"flagm", {AArch64::FeatureFlagM}},
// FIXME: Unsupported extensions
- {"pan", {}},
{"lor", {}},
{"rdma", {}},
{"profile", {}},
diff --git a/llvm/test/MC/AArch64/directive-arch_extension.s b/llvm/test/MC/AArch64/directive-arch_extension.s
index 8cf2acd509b1..064c89ace652 100644
--- a/llvm/test/MC/AArch64/directive-arch_extension.s
+++ b/llvm/test/MC/AArch64/directive-arch_extension.s
@@ -56,6 +56,10 @@ irg x0, x1
tlbi vmalle1os
// CHECK: tlbi vmalle1os
+.arch_extension pan
+mrs x0, pan
+// CHECK: mrs x0, PAN
+
.arch_extension pan-rwv
at s1e1wp, x2
// CHECK: at s1e1wp, x2
More information about the llvm-commits
mailing list