[PATCH] D98566: [AArch64] Parse "rng" feature flag in .arch directive

Roland McGrath via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 12 16:16:42 PST 2021


mcgrathr created this revision.
mcgrathr added reviewers: phosek, MarkMurrayARM.
Herald added subscribers: danielkiss, hiraditya, kristof.beyls.
mcgrathr requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D98566

Files:
  llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
  llvm/test/MC/AArch64/directive-arch.s


Index: llvm/test/MC/AArch64/directive-arch.s
===================================================================
--- llvm/test/MC/AArch64/directive-arch.s
+++ 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
Index: llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
===================================================================
--- llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
+++ llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
@@ -2909,6 +2909,7 @@
     {"pan-rwv", {AArch64::FeaturePAN_RWV}},
     {"ccpp", {AArch64::FeatureCCPP}},
     {"rcpc", {AArch64::FeatureRCPC}},
+    {"rng", {AArch64::FeatureRandGen}},
     {"sve", {AArch64::FeatureSVE}},
     {"sve2", {AArch64::FeatureSVE2}},
     {"sve2-aes", {AArch64::FeatureSVE2AES}},


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98566.330397.patch
Type: text/x-patch
Size: 982 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210313/d1d7c7cb/attachment.bin>


More information about the llvm-commits mailing list