1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

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

Reviewed By: phosek

Differential Revision: https://reviews.llvm.org/D98566
This commit is contained in:
Roland McGrath 2021-03-12 16:08:42 -08:00
parent 0efd7ce0e4
commit 0f93f116e0
2 changed files with 7 additions and 0 deletions

View File

@ -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}},

View File

@ -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