[llvm] d5df500 - [AArch64] Parse "rng" feature flag in .arch directive
Roland McGrath via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 16 14:10:31 PDT 2021
Author: Roland McGrath
Date: 2021-03-16T14:10:19-07:00
New Revision: d5df500ab83b9d5550fbc03ba4f68a1d8d440af9
URL: https://github.com/llvm/llvm-project/commit/d5df500ab83b9d5550fbc03ba4f68a1d8d440af9
DIFF: https://github.com/llvm/llvm-project/commit/d5df500ab83b9d5550fbc03ba4f68a1d8d440af9.diff
LOG: [AArch64] Parse "rng" feature flag in .arch directive
Reviewed By: phosek
Differential Revision: https://reviews.llvm.org/D98566
Added:
Modified:
llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
llvm/test/MC/AArch64/directive-arch.s
Removed:
################################################################################
diff --git a/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp b/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
index 037e24b1b486..e495003e3972 100644
--- a/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
+++ b/llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
@@ -2909,6 +2909,7 @@ static const struct Extension {
{"pan-rwv", {AArch64::FeaturePAN_RWV}},
{"ccpp", {AArch64::FeatureCCPP}},
{"rcpc", {AArch64::FeatureRCPC}},
+ {"rng", {AArch64::FeatureRandGen}},
{"sve", {AArch64::FeatureSVE}},
{"sve2", {AArch64::FeatureSVE2}},
{"sve2-aes", {AArch64::FeatureSVE2AES}},
diff --git a/llvm/test/MC/AArch64/directive-arch.s b/llvm/test/MC/AArch64/directive-arch.s
index 7dfcdb4598f0..2aa2bcbf5665 100644
--- a/llvm/test/MC/AArch64/directive-arch.s
+++ b/llvm/test/MC/AArch64/directive-arch.s
@@ -17,3 +17,9 @@
.arch armv8-a+lse
casa w5, w7, [x20]
# CHECK: casa w5, w7, [x20]
+
+ .arch armv8.5-a+rng
+ mrs x0, rndr
+ mrs x0, rndrrs
+# CHECK: mrs x0, RNDR
+# CHECK: mrs x0, RNDRRS
More information about the llvm-commits
mailing list