[PATCH] D85620: [AARCH64] [MC] add memtag as an alis of mte architecture extension

Jian Cai via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 9 14:41:01 PDT 2020


jcai19 created this revision.
Herald added subscribers: llvm-commits, danielkiss, hiraditya, kristof.beyls.
Herald added a project: LLVM.
jcai19 requested review of this revision.

Add memtag as an alis of met architectture extesion to be consistent
with GNU as.

LINK:https://sourceware.org/bugzilla/show_bug.cgi?id=26339


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D85620

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
@@ -48,6 +48,10 @@
 irg x0, x1
 // CHECK: irg x0, x1
 
+.arch_extension memtag
+irg x0, x1
+// CHECK: irg x0, x1
+
 .arch_extension tlb-rmi
 tlbi vmalle1os
 // CHECK: tlbi vmalle1os
Index: llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
===================================================================
--- llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
+++ llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
@@ -2841,6 +2841,7 @@
     {"predres", {AArch64::FeaturePredRes}},
     {"ccdp", {AArch64::FeatureCacheDeepPersist}},
     {"mte", {AArch64::FeatureMTE}},
+    {"memtag", {AArch64::FeatureMTE}},
     {"tlb-rmi", {AArch64::FeatureTLB_RMI}},
     {"pan-rwv", {AArch64::FeaturePAN_RWV}},
     {"ccpp", {AArch64::FeatureCCPP}},


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85620.284235.patch
Type: text/x-patch
Size: 981 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200809/5c62cfdf/attachment.bin>


More information about the llvm-commits mailing list