]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
RISC-V: Add support for RISC-V Profiles 20/22.
authorJiawei <jiawei@iscas.ac.cn>
Sun, 11 May 2025 13:38:18 +0000 (21:38 +0800)
committerNelson Chu <nelson@rivosinc.com>
Fri, 23 May 2025 01:21:49 +0000 (09:21 +0800)
commit3d7fb9fa5c667c0bf8760dd0db5fee7bb3e05379
treedf18e1f48e69122dd334ce81bbabdffb35b9d528
parent13a5dd968feb38220b4ea53b7e8ebea481f81ed9
RISC-V: Add support for RISC-V Profiles 20/22.

This patch introduces support for RISC-V Profiles RV20 and RV22 [1],
enabling developers to utilize these profiles through the -march option.

[1] https://github.com/riscv/riscv-profiles/releases/tag/v1.0

bfd/ChangeLog:

* elfxx-riscv.c (struct riscv_profiles): New struct.
(riscv_parse_extensions): New argument.
(riscv_find_profiles): New checking function.
(riscv_parse_subset): Add Profiles handler.

gas/ChangeLog:

* NEWS: Add RISC-V Profiles.
* doc/as.texi: Update -march input type.
* doc/c-riscv.texi: Ditto.
* testsuite/gas/riscv/option-arch-fail.l: Modify hint info.
* testsuite/gas/riscv/attribute-17.d: New test.
* testsuite/gas/riscv/attribute-18.d: New test.
* testsuite/gas/riscv/march-fail-rvi20u64v.d: New test.
* testsuite/gas/riscv/march-fail-rvi20u64v.l: New test.
bfd/elfxx-riscv.c
gas/NEWS
gas/doc/as.texi
gas/doc/c-riscv.texi
gas/testsuite/gas/riscv/attribute-17.d [new file with mode: 0644]
gas/testsuite/gas/riscv/attribute-18.d [new file with mode: 0644]
gas/testsuite/gas/riscv/march-fail-rvi20u64v.d [new file with mode: 0644]
gas/testsuite/gas/riscv/march-fail-rvi20u64v.l [new file with mode: 0644]
gas/testsuite/gas/riscv/option-arch-fail.l