aarch64: Add FEAT_LSC64B assembly support
binutils assembler and disassembler now support new aarch64 FEAT_LSC64B instructions.
This patch series adds support for the FEAT_LSC64B architecture extension and its associated instructions (LDA64B, STL64B, STL64BV, STL64BV0) to the binutils assembler and disassembler for the aarch64 architecture. The changes include updating opcode tables, documentation, and adding comprehensive test cases to ensure correct assembly and disassembly.
- proposer
Proposes adding assembly and disassembly support for the aarch64 FEAT_LSC64B extension and its instructions, including updates to opcode definitions and test suites.
“This patch adds asm/disasm support for instructions from FEAT_LSC64B.”
- contributor
Provides clarification on the new extension, noting its dependencies on FEAT_LSCP and FEAT_LS64, and that it reuses the LS64 Rt operand.
“FEAT_LSC64B implies FEAT_LSCP, while the LSC64B instructions also require FEAT_LS64. Model this by making +lsc64b depend on +lscp and requiring both LSC64B and LS64 in the opcode feature set.”
Technical Tradeoffs
- Adds new functionality for a specific CPU extension, increasing the complexity of the assembler and disassembler.
- Requires ongoing maintenance to ensure compatibility with future ARM architecture updates.
In Details
Binutils' gas assembler and objdump disassembler have been updated to support the aarch64 FEAT_LSC64B extension. This includes new instructions like LDA64B and STL64B, which require specific feature flags (+lsc64b, +lscp, +ls64) and reuse the Rt operand from FEAT_LS64. The patch series introduces the necessary opcode definitions, updates the C and TEXI documentation, and provides extensive test cases in the gas/testsuite/gas/aarch64 directory.
- FEAT_LSC64B
- A feature (extension) for the Armv8.0-A architecture that introduces specific load-store-cache instructions.
- LDA64B
- An instruction within the FEAT_LSC64B extension that likely performs a 64-byte atomic load-and-allocate operation.
- STL64B
- An instruction within the FEAT_LSC64B extension that likely performs a 64-byte atomic store-and-allocate operation.
- STL64BV
- An instruction within the FEAT_LSC64B extension that likely performs a 64-byte atomic store-and-allocate operation with a vector register operand.
- STL64BV0
- An instruction within the FEAT_LSC64B extension that likely performs a 64-byte atomic store-and-allocate operation with a vector register operand, potentially with zeroing.
- aarch64
- The 64-bit execution state of the Arm architecture.
- gas
- The GNU Assembler, part of the binutils package, which translates assembly language into machine code.
- disassembler
- A tool that translates machine code back into assembly language instructions.