aarch64: Relax check for RNG system registers
authorRichard Sandiford <richard.sandiford@arm.com>
Thu, 31 Mar 2022 16:51:16 +0000 (17:51 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Thu, 31 Mar 2022 16:51:16 +0000 (17:51 +0100)
commit025f768ffc3aeb5561bb60a9c8f3841faa53bd6f
tree9c98019e7d6d7849a2fe4b627060a6ef1d2b1e1d
parentfa8a0804b8fd7599367147754b4c82d555860374
aarch64: Relax check for RNG system registers

FEAT_RNG is an optional Armv8.5-A extension, but it can be backported
to earlier architectures as well.  GAS previously made the RNG registers
conditional on having both armv8.5-a and +rng, but only +rng should be
required.

This seems to be the only feature that was handled like this.

opcodes/
* aarch64-opc.c (SR_RNG): Don't require V8_5.

gas/
* testsuite/gas/aarch64/rng-1.s, testsuite/gas/aarch64/rng-1.d: New
test.
gas/testsuite/gas/aarch64/rng-1.d [new file with mode: 0644]
gas/testsuite/gas/aarch64/rng-1.s [new file with mode: 0644]
opcodes/aarch64-opc.c