[REVIEW ONLY] UNRATIFIED RISC-V: Add support for the 'Zimop' extension
Lyut Nersisyan
lyut.nersisyan@gmail.com
Wed Nov 22 15:25:14 GMT 2023
[DO NOT MERGE]
Until this extension is frozen/ratified and final version number is
determined, this patch should not be merged upstream. This commit uses
unratified version 0.1 as in the documentation file name (instead of
possible 1.0 after ratification).
The 'Zimop' extension provides may be operations instructions. This commit
adds instruction and extension support for this extension.
This is based on the draft specification:
<https://github.com/riscv/riscv-isa-manual/blob/main/src/zimop.adoc>
bfd/ChangeLog:
* elfxx-riscv.c
(riscv_supported_std_z_ext): Add 'Zimop' to the supported list.
(riscv_multi_subset_supports, riscv_multi_subset_supports_ext): Add
handling for new instruction class.
gas/ChangeLog:
* testsuite/gas/riscv/zimop.s: New test.
* testsuite/gas/riscv/zalasr-32.d: Likewise.
* testsuite/gas/riscv/zalasr-64.d: Likewise.
include/ChangeLog:
* opcode/riscv-opc.h (MATCH_MOP_R_[0...31], MASK_MOP_R,
MATCH_MOP_RR_[0...7], MASK_MOP_RR): New.
* opcode/riscv.h (enum riscv_insn_class): Add new instruction class
INSN_CLASS_ZIMOP.
opcodes/ChangeLog:
* riscv-opc.c (riscv_opcodes): Add instructions from the 'Zimop' extension.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/binutils/attachments/20231122/d45a625e/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zimop.diff
Type: text/x-patch
Size: 8960 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20231122/d45a625e/attachment.bin>
More information about the Binutils
mailing list