RISC-V: Assign DWARF numbers to vector registers
authorTsukasa OI <research_trasio@irq.a4lg.com>
Thu, 11 Aug 2022 21:16:51 +0000 (06:16 +0900)
committerTsukasa OI <research_trasio@irq.a4lg.com>
Mon, 3 Oct 2022 04:04:35 +0000 (04:04 +0000)
commit7b4f240762ffa03e65e17cb7dee807bc1628c24a
treef428de64dfdf15773b3c37b78d99796ebf2a1b8c
parent61233edc75c8aaa003e7cbe5e129faf6bb7b9126
RISC-V: Assign DWARF numbers to vector registers

This commit assigns DWARF register numbers to vector registers (v0-v31:
96..127) to implement RISC-V DWARF Specification version 1.0-rc4
(now in the frozen state):

https://github.com/riscv-non-isa/riscv-elf-psabi-doc/releases/tag/v1.0-rc4

binutils/ChangeLog:

* dwarf.c (dwarf_regnames_riscv): Assign DWARF register numbers
96..127 to vector registers v0-v31.

gas/ChangeLog:

* config/tc-riscv.c (tc_riscv_regname_to_dw2regnum): Support
vector registers.
* testsuite/gas/riscv/dw-regnums.s: Add vector registers to the
DWARF register number test.
* testsuite/gas/riscv/dw-regnums.d: Likewise.
binutils/dwarf.c
gas/config/tc-riscv.c
gas/testsuite/gas/riscv/dw-regnums.d
gas/testsuite/gas/riscv/dw-regnums.s