RISC-V: Add Zama16b extension support
Adds support for the RISC-V Zama16b extension to binutils, fixing an assembler error.
Wang Yaduo proposes adding support for the RISC-V Zama16b extension to binutils. Currently, using -march with this extension causes an assembler error, even though GCC supports it. This patch updates bfd/elfxx-riscv.c to include Zama16b in the list of supported extensions and modifies gas/NEWS and gas/testsuite/gas/riscv/march-help.l accordingly.
- proposer
Submits a patch to add RISC-V Zama16b extension support to binutils, addressing an assembler error.
“I noticed that using -march with zama16b on current trunk triggers an assembler error(https://godbolt.org/z/ed1EdfaKr). GCC has supported the extension but it seems that the binutils misses it.”
In Details
This patch adds support for the RISC-V 'Zama16b' extension, a draft feature. The change involves updating the BFD module's list of recognized RISC-V extensions and consequently updating the gas assembler's knowledge base and test suite. This is necessary for binutils to correctly assemble code targeting this new extension, preventing errors that would otherwise occur.
- RISC-V
- An open-source instruction set architecture (ISA).
- Zama16b
- A draft extension for the RISC-V architecture, likely related to specific arithmetic or bit manipulation operations.
- binutils
- A collection of programming tools for manipulating binary files, including the assembler (gas), linker (ld), and disassembler (objdump).
- BFD
- Binary File Descriptor library. A low-level library used by GNU binutils to handle various object file formats.
- gas
- The GNU Assembler, part of the GNU binutils.