]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
RISC-V: Prohibit the 'Zcf' extension on RV64
authorTsukasa OI <research_trasio@irq.a4lg.com>
Mon, 24 Jul 2023 05:01:12 +0000 (05:01 +0000)
committerTsukasa OI <research_trasio@irq.a4lg.com>
Mon, 24 Jul 2023 23:42:35 +0000 (23:42 +0000)
commit766f6d170c56d1d7b03e81f64d069386d0a7c5dd
treebb3300ea74d92af8092c7fded0ec45a8a8c84ae0
parent6badd1020f5bebd3f60a780b8e41a1b581046087
RISC-V: Prohibit the 'Zcf' extension on RV64

As per:
<https://github.com/riscv/riscv-code-size-reduction/issues/221>,
the 'Zcf' extension does not exist on RV64.  This is reflected on the
version 1.0.4-1 of the code size reduction specification:
<https://github.com/riscv/riscv-code-size-reduction/releases/tag/v1.0.4-1>.

This commit prohibits the combination: RV64 (or any ISA with XLEN > 32)
and the 'Zcf' extension.

bfd/ChangeLog:

* elfxx-riscv.c (riscv_parse_check_conflicts): Prohibit
combination of RV64 and 'Zcf'.

gas/ChangeLog:

* testsuite/gas/riscv/march-fail-rv64i_zcf.d: New test.
* testsuite/gas/riscv/march-fail-rv64i_zcf.l: Likewise.
bfd/elfxx-riscv.c
gas/testsuite/gas/riscv/march-fail-rv64i_zcf.d [new file with mode: 0644]
gas/testsuite/gas/riscv/march-fail-rv64i_zcf.l [new file with mode: 0644]