<div dir="ltr">[DO NOT MERGE]<br>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).<div><br>The 'Zimop' extension provides may be operations instructions. This commit adds instruction and extension support for this extension.</div><div><br>This is based on the draft specification:<br><<a href="https://github.com/riscv/riscv-isa-manual/blob/main/src/zimop.adoc" target="_blank">https://github.com/riscv/riscv-isa-manual/blob/main/src/zimop.adoc</a>><br><br>bfd/ChangeLog:<br><br>* elfxx-riscv.c<br>(riscv_supported_std_z_ext): Add 'Zimop' to the supported list.<br>(riscv_multi_subset_supports, riscv_multi_subset_supports_ext): Add handling for new instruction class.<br><br>gas/ChangeLog:<br><br>* testsuite/gas/riscv/zimop.s: New test.<br>* testsuite/gas/riscv/zalasr-32.d: Likewise.<br>* testsuite/gas/riscv/zalasr-64.d: Likewise.<br><br>include/ChangeLog:<br><br>* opcode/riscv-opc.h (MATCH_MOP_R_[0...31], MASK_MOP_R, MATCH_MOP_RR_[0...7], MASK_MOP_RR): New.<br>* opcode/riscv.h (enum riscv_insn_class): Add new instruction class INSN_CLASS_ZIMOP.<br><br>opcodes/ChangeLog:<br><br>* riscv-opc.c (riscv_opcodes): Add instructions from the 'Zimop' extension.</div></div>