Skip to content

Commit 277873c

Browse files
committed
[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
1 parent 9df7ee3 commit 277873c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2841,6 +2841,7 @@ static const struct Extension {
28412841
{"predres", {AArch64::FeaturePredRes}},
28422842
{"ccdp", {AArch64::FeatureCacheDeepPersist}},
28432843
{"mte", {AArch64::FeatureMTE}},
2844+
{"memtag", {AArch64::FeatureMTE}},
28442845
{"tlb-rmi", {AArch64::FeatureTLB_RMI}},
28452846
{"pan-rwv", {AArch64::FeaturePAN_RWV}},
28462847
{"ccpp", {AArch64::FeatureCCPP}},

llvm/test/MC/AArch64/directive-arch_extension.s

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ dc cvadp, x7
4848
irg x0, x1
4949
// CHECK: irg x0, x1
5050

51+
.arch_extension memtag
52+
irg x0, x1
53+
// CHECK: irg x0, x1
54+
5155
.arch_extension tlb-rmi
5256
tlbi vmalle1os
5357
// CHECK: tlbi vmalle1os

0 commit comments

Comments
 (0)