[PATCH] D99209: [AArch64] Support .arch_extension pan
Roland McGrath via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 23 12:50:19 PDT 2021
mcgrathr created this revision.
mcgrathr added a reviewer: phosek.
Herald added subscribers: danielkiss, hiraditya, kristof.beyls.
mcgrathr requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This makes the behavior consistent with the GNU assembler.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D99209
Files:
llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
llvm/test/MC/AArch64/directive-arch_extension.s
Index: llvm/test/MC/AArch64/directive-arch_extension.s
===================================================================
--- llvm/test/MC/AArch64/directive-arch_extension.s
+++ llvm/test/MC/AArch64/directive-arch_extension.s
@@ -56,6 +56,10 @@
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
Index: llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
===================================================================
--- llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
+++ llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
@@ -2906,6 +2906,7 @@
{"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 @@
{"pauth", {AArch64::FeaturePAuth}},
{"flagm", {AArch64::FeatureFlagM}},
// FIXME: Unsupported extensions
- {"pan", {}},
{"lor", {}},
{"rdma", {}},
{"profile", {}},
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99209.332764.patch
Type: text/x-patch
Size: 1185 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210323/5d976891/attachment.bin>
More information about the llvm-commits
mailing list