]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: riscv-ext.def: Add allocated group IDs and group bit positions
authorChristoph Müllner <christoph.muellner@vrull.eu>
Tue, 10 Jun 2025 08:53:54 +0000 (10:53 +0200)
committerChristoph Müllner <christoph.muellner@vrull.eu>
Sat, 26 Jul 2025 10:31:10 +0000 (12:31 +0200)
commit7ac42d3d7c4557a613bd33150e7f6b368418f555
treeca0c0c182a93f1cf7a1637d0c6d847f0ffcfc090
parent13516aff9ac497cce7ef6495749d9ed4ee1e65f2
RISC-V: riscv-ext.def: Add allocated group IDs and group bit positions

The riscv-c-api-doc defines a group ID and and a bit position for some
extension.  Most of them are set in riscv-ext.def, but some are missing
and one bit position (for Zilsd) is wrong.

This patch replaces the `BITMASK_NOT_YET_ALLOCATED` value for the actual
allocated value wherever possible and fixes the bit position for Zilsd.

Currently, we don't have any infrastructure to utilize the information
that is placed into riscv_ext_info_t::m_bitmask_group_id and
riscv_ext_info_t::m_bitmask_group_bit_pos.  This also means we can't
test.

gcc/ChangeLog:

* config/riscv/riscv-ext.def: Add allocated group IDs and
group bit positions.

Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
gcc/config/riscv/riscv-ext.def