[llvm] 277873c - [AARCH64] [MC] add memtag as an alias of mte architecture extension

Jian Cai via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 11 13:29:16 PDT 2020


Author: Jian Cai
Date: 2020-08-11T13:28:47-07:00
New Revision: 277873ce0f484e8cb5cb99dade63c7a93d99bd3b

URL: https://github.com/llvm/llvm-project/commit/277873ce0f484e8cb5cb99dade63c7a93d99bd3b
DIFF: https://github.com/llvm/llvm-project/commit/277873ce0f484e8cb5cb99dade63c7a93d99bd3b.diff

LOG: [AARCH64] [MC] add memtag as an alias of mte architecture extension

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

Reviewed By: nickdesaulniers, MaskRay

Differential Revision: https://reviews.llvm.org/D85620

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 beae2b059bec..e59dd3cd036c 100644
--- a/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
+++ b/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
@@ -2841,6 +2841,7 @@ static const struct Extension {
     {"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}},

diff  --git a/llvm/test/MC/AArch64/directive-arch_extension.s b/llvm/test/MC/AArch64/directive-arch_extension.s
index e351526c871b..790bcf355475 100644
--- a/llvm/test/MC/AArch64/directive-arch_extension.s
+++ b/llvm/test/MC/AArch64/directive-arch_extension.s
@@ -48,6 +48,10 @@ dc cvadp, x7
 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


        


More information about the llvm-commits mailing list