RISC-V: Add T-Head MemPair vendor extension
authorChristoph Müllner <christoph.muellner@vrull.eu>
Fri, 1 Jul 2022 03:01:20 +0000 (05:01 +0200)
committerPhilipp Tomsich <philipp.tomsich@vrull.eu>
Thu, 22 Sep 2022 16:06:09 +0000 (18:06 +0200)
commit6e17ae625570ff8f3c12c8765b8d45d4db8694bd
treeb2add49965e7e814881d5987f7c047a7756ea277
parent25236d63fdb138e24cb34aa6c513ae8de2dac7b8
RISC-V: Add T-Head MemPair vendor extension

T-Head has a range of vendor-specific instructions.
Therefore it makes sense to group them into smaller chunks
in form of vendor extensions.

This patch adds the XTheadMemPair extension, a collection of T-Head specific
two-GP-register memory operations.
The 'th' prefix and the "XTheadMemPair" extension are documented in a PR
for the RISC-V toolchain conventions ([1]).

[1] https://github.com/riscv-non-isa/riscv-toolchain-conventions/pull/19

Co-developed-by: Lifang Xia <lifang_xia@linux.alibaba.com>
Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
bfd/elfxx-riscv.c
gas/doc/c-riscv.texi
gas/testsuite/gas/riscv/x-thead-mempair-fail.d [new file with mode: 0644]
gas/testsuite/gas/riscv/x-thead-mempair-fail.l [new file with mode: 0644]
gas/testsuite/gas/riscv/x-thead-mempair-fail.s [new file with mode: 0644]
gas/testsuite/gas/riscv/x-thead-mempair.d [new file with mode: 0644]
gas/testsuite/gas/riscv/x-thead-mempair.s [new file with mode: 0644]
include/opcode/riscv-opc.h
include/opcode/riscv.h
opcodes/riscv-opc.c