aarch64 assembler adds PAuth_LR instructions with register operands
The aarch64 assembler now supports PAuth_LR instructions that take no operands or a single register operand, including variants for `AUTI` and `RETA`.
Support for several FEAT_PAuth_LR instructions has been added to the aarch64 assembler. This includes instructions with no operands (PACI<k>SPPC, PACNBI<k>SPPC, AUTI<k>171615), a register variant of AUTI<k>SPPC (AUTI<k>SPPCR), and a register variant of RETA<k>SPPC (RETA<k>SPPCR). A new operand type Rd_NOT_ZR is introduced for RETA<k>SPPCR to reject the XZR register, while AUTI<k>SPPCR accepts it.
In Details
The gas backend for aarch64 now supports FEAT_PAuth_LR instructions lacking operands or taking a single register operand. This includes PACI<k>SPPC, PACNBI<k>SPPC, AUTI<k>171615, AUTI<k>SPPCR (register operand, accepts XZR), and RETA<k>SPPCR (register operand, rejects XZR via Rd_NOT_ZR). The opcode definitions, disassembler, and test suite are updated.
- FEAT_PAuth_LR
- A hardware feature extension for aarch64 processors that enables Pointer Authentication for Link Register (LR) signing, enhancing security by detecting certain types of control-flow hijacking attacks.
- XZR
- The zero register in the aarch64 architecture. It always reads as zero and writes to it are discarded.
- Operand
- A value or register that an instruction operates on.