RISC-V: Support Zca/f/d extensions.
authorJiawei <jiawei@iscas.ac.cn>
Tue, 11 Jul 2023 08:32:14 +0000 (16:32 +0800)
committerNelson Chu <nelson@rivosinc.com>
Tue, 18 Jul 2023 02:49:49 +0000 (10:49 +0800)
commit7ab8bf1c777644f834ccbc5d1e83d721859ca1ba
treece5428212c4b5deda63a08a0a5b5bc6bb1efb1ec
parentffcdd0184d2da860d45ab326dd7afe00c432e428
RISC-V: Support Zca/f/d extensions.

This patch add Zca/f/d extensions support, since all ZC*
extensions will imply Zca extension, just enabled compress
feature when Zca extension is available.

Co-Authored by: Charlie Keaney <charlie.keaney@embecosm.com>
Co-Authored by: Mary Bennett <mary.bennett@embecosm.com>
Co-Authored by: Nandni Jamnadas <nandni.jamnadas@embecosm.com>
Co-Authored by: Sinan Lin <sinan.lin@linux.alibaba.com>
Co-Authored by: Simon Cook <simon.cook@embecosm.com>
Co-Authored by: Shihua Liao <shihua@iscas.ac.cn>
Co-Authored by: Yulong Shi <yulong@iscas.ac.cn>

bfd/ChangeLog:

* elfxx-riscv.c (riscv_multi_subset_supports): New extensions.
(riscv_multi_subset_supports_ext): Ditto.

gas/ChangeLog:

* config/tc-riscv.c (riscv_set_arch): Extend compress check.
* testsuite/gas/riscv/zca.d: New test.
* testsuite/gas/riscv/zca.s: New test.
* testsuite/gas/riscv/zcd.d: New test.
* testsuite/gas/riscv/zcd.s: New test.
* testsuite/gas/riscv/zcf.d: New test.
* testsuite/gas/riscv/zcf.s: New test.
bfd/elfxx-riscv.c
gas/config/tc-riscv.c
gas/testsuite/gas/riscv/zca.d [new file with mode: 0644]
gas/testsuite/gas/riscv/zca.s [new file with mode: 0644]
gas/testsuite/gas/riscv/zcd.d [new file with mode: 0644]
gas/testsuite/gas/riscv/zcd.s [new file with mode: 0644]
gas/testsuite/gas/riscv/zcf.d [new file with mode: 0644]
gas/testsuite/gas/riscv/zcf.s [new file with mode: 0644]