]> gcc.gnu.org Git - gcc.git/commit
RISC-V: Fix parsing of Zic* extensions
authorChristoph Müllner <christoph.muellner@vrull.eu>
Sun, 28 Apr 2024 22:46:06 +0000 (00:46 +0200)
committerChristoph Müllner <christoph.muellner@vrull.eu>
Mon, 29 Apr 2024 07:07:48 +0000 (09:07 +0200)
commit285300eb928b171236e895f28c960ad02dcb0d67
treea1e8e7716781ada9f999bb15e26e0cc75feef2a7
parent11c13111ac64a035d6c4ea6c118eff4ece7a9d9b
RISC-V: Fix parsing of Zic* extensions

The extension parsing table entries for a range of Zic* extensions
does not match the mask definition in riscv.opt.
This results in broken TARGET_ZIC* macros, because the values of
riscv_zi_subext and riscv_zicmo_subext are set wrong.

This patch fixes this by moving Zic64b into riscv_zicmo_subext
and all other affected Zic* extensions to riscv_zi_subext.

gcc/ChangeLog:

* common/config/riscv/riscv-common.cc: Move ziccamoa, ziccif,
zicclsm, and ziccrse into riscv_zi_subext.
* config/riscv/riscv.opt: Define MASK_ZIC64B for
riscv_ziccmo_subext.

Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
gcc/common/config/riscv/riscv-common.cc
gcc/config/riscv/riscv.opt
This page took 0.056499 seconds and 6 git commands to generate.