RISC-V: Add T-Head Bitmanip vendor extension
authorChristoph Müllner <christoph.muellner@vrull.eu>
Fri, 1 Jul 2022 03:21:01 +0000 (05:21 +0200)
committerPhilipp Tomsich <philipp.tomsich@vrull.eu>
Thu, 22 Sep 2022 16:06:09 +0000 (18:06 +0200)
commit8254c3d2c94ae5458095ea6c25446ba89134b9da
tree0978d35a008fa77f701bbb187dcaad68c1832dc5
parent8b7419c429919884adced1fd2eae8c805b45b49a
RISC-V: Add T-Head Bitmanip 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 XThead{Ba,Bb,Bs} extensions, a collection of
T-Head-specific bitmanipulation instructions.
The 'th' prefix and the "XThead{Ba,Bb,Bs}" 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>
20 files changed:
bfd/elfxx-riscv.c
gas/doc/c-riscv.texi
gas/testsuite/gas/riscv/x-thead-ba-fail.d [new file with mode: 0644]
gas/testsuite/gas/riscv/x-thead-ba-fail.l [new file with mode: 0644]
gas/testsuite/gas/riscv/x-thead-ba-fail.s [new file with mode: 0644]
gas/testsuite/gas/riscv/x-thead-ba.d [new file with mode: 0644]
gas/testsuite/gas/riscv/x-thead-ba.s [new file with mode: 0644]
gas/testsuite/gas/riscv/x-thead-bb-fail.d [new file with mode: 0644]
gas/testsuite/gas/riscv/x-thead-bb-fail.l [new file with mode: 0644]
gas/testsuite/gas/riscv/x-thead-bb-fail.s [new file with mode: 0644]
gas/testsuite/gas/riscv/x-thead-bb.d [new file with mode: 0644]
gas/testsuite/gas/riscv/x-thead-bb.s [new file with mode: 0644]
gas/testsuite/gas/riscv/x-thead-bs-fail.d [new file with mode: 0644]
gas/testsuite/gas/riscv/x-thead-bs-fail.l [new file with mode: 0644]
gas/testsuite/gas/riscv/x-thead-bs-fail.s [new file with mode: 0644]
gas/testsuite/gas/riscv/x-thead-bs.d [new file with mode: 0644]
gas/testsuite/gas/riscv/x-thead-bs.s [new file with mode: 0644]
include/opcode/riscv-opc.h
include/opcode/riscv.h
opcodes/riscv-opc.c