RISC-V: Implications from 'Zc[fd]' extensions
authorTsukasa OI <research_trasio@irq.a4lg.com>
Mon, 24 Jul 2023 05:09:39 +0000 (05:09 +0000)
committerTsukasa OI <research_trasio@irq.a4lg.com>
Mon, 24 Jul 2023 23:42:35 +0000 (23:42 +0000)
commit6e30678feb8ab38ad80a589226c5d0e9c9dc399e
tree2575ed38bd4d8980dc63bb69338ced81f57ecb02
parent766f6d170c56d1d7b03e81f64d069386d0a7c5dd
RISC-V: Implications from 'Zc[fd]' extensions

The version 1.0.4-1 of the code size reduction specification clarifies
that 'Zcf' implies 'F' and 'Zcd' implies 'D'.

cf:
<https://github.com/riscv/riscv-code-size-reduction/releases/tag/v1.0.4-1>

This commit adds those implications.

bfd/ChangeLog:

* elfxx-riscv.c (riscv_implicit_subsets): Add two implications,
'Zcf' -> 'F' and 'Zcd' -> 'D'.

gas/ChangeLog:

* testsuite/gas/riscv/march-imply-zcd.d: New test.
* testsuite/gas/riscv/march-imply-zcf.d: New test.
bfd/elfxx-riscv.c
gas/testsuite/gas/riscv/march-imply-zcd.d [new file with mode: 0644]
gas/testsuite/gas/riscv/march-imply-zcf.d [new file with mode: 0644]