Skip to content

Commit d5df500

Browse files
committed
[AArch64] Parse "rng" feature flag in .arch directive
Reviewed By: phosek Differential Revision: https://reviews.llvm.org/D98566
1 parent 302b80a commit d5df500

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2909,6 +2909,7 @@ static const struct Extension {
29092909
{"pan-rwv", {AArch64::FeaturePAN_RWV}},
29102910
{"ccpp", {AArch64::FeatureCCPP}},
29112911
{"rcpc", {AArch64::FeatureRCPC}},
2912+
{"rng", {AArch64::FeatureRandGen}},
29122913
{"sve", {AArch64::FeatureSVE}},
29132914
{"sve2", {AArch64::FeatureSVE2}},
29142915
{"sve2-aes", {AArch64::FeatureSVE2AES}},

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,9 @@
1717
.arch armv8-a+lse
1818
casa w5, w7, [x20]
1919
# CHECK: casa w5, w7, [x20]
20+
21+
.arch armv8.5-a+rng
22+
mrs x0, rndr
23+
mrs x0, rndrrs
24+
# CHECK: mrs x0, RNDR
25+
# CHECK: mrs x0, RNDRRS

0 commit comments

Comments
 (0)