aarch64: Add support for 128-bit system register mrrs and msrr insns
authorVictor Do Nascimento <victor.donascimento@arm.com>
Mon, 20 Nov 2023 20:40:10 +0000 (20:40 +0000)
committerVictor Do Nascimento <victor.donascimento@arm.com>
Tue, 9 Jan 2024 10:16:41 +0000 (10:16 +0000)
commit9af8f6711831f2851bf88c46a1f0f2a43fb49be8
treee43d08a9a5c8ab7dd7a04ade9d9219620d09a55c
parent33ccb0e0dbd9707b537e385dc06eaf0a5b389d8e
aarch64: Add support for 128-bit system register mrrs and msrr insns

With the addition of 128-bit system registers to the Arm architecture
starting with Armv9.4-a, a mechanism for manipulating their contents
is introduced with the `msrr' and `mrrs' instruction pair.

These move values from one such 128-bit system register into a pair of
contiguous general-purpose registers and vice-versa, as for example:

   msrr ttlb0_el1, x0, x1
   mrrs x0, x1, ttlb0_el1

This patch adds the necessary support for these instructions, adding
checks for system-register width by defining a new operand type in the
form of `AARCH64_OPND_SYSREG128' and the `aarch64_sys_reg_128bit_p'
predicate, responsible for checking whether the requested system
register table entry is marked as implemented in the 128-bit mode via
the F_REG_128 flag.
gas/config/tc-aarch64.c
gas/testsuite/gas/aarch64/illegal-sysreg128.d [new file with mode: 0644]
gas/testsuite/gas/aarch64/illegal-sysreg128.l [new file with mode: 0644]
gas/testsuite/gas/aarch64/illegal-sysreg128.s [new file with mode: 0644]
gas/testsuite/gas/aarch64/sysreg128.d [new file with mode: 0644]
gas/testsuite/gas/aarch64/sysreg128.s [new file with mode: 0644]
include/opcode/aarch64.h
opcodes/aarch64-dis.c
opcodes/aarch64-opc.c
opcodes/aarch64-tbl.h