]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
RISC-V: Add extension XTheadVdot for T-Head VECTOR vendor extension [1]
authorJin Ma <jinma@linux.alibaba.com>
Mon, 17 Mar 2025 06:07:35 +0000 (14:07 +0800)
committerNelson Chu <nelson@rivosinc.com>
Tue, 18 Mar 2025 04:27:26 +0000 (12:27 +0800)
commit66b81b40dcf1fe5739c6c8138b242e47ebab0c8a
treeb86d4fd2f21e213b095eecf596637b7b47dc6234
parente4c9f0e6c3a665c0a711dc6bf74e37dfc370e28c
RISC-V: Add extension XTheadVdot for T-Head VECTOR vendor extension [1]

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 additional extension "XTheadVdot" based on the
"V" extension, and it provides four 8-bit multiply and add with
32-bit instructions for the "v" extension. The 'th' prefix and the
"XTheadVector" extension are documented in a PR for the
RISC-V toolchain conventions ([2]).

Co-Authored-By: Lifang Xia <lifang_xia@linux.alibaba.com>
[1] https://github.com/XUANTIE-RV/thead-extension-spec/tree/master/xtheadvdot
[2] https://github.com/riscv-non-isa/riscv-toolchain-conventions/pull/19

bfd/ChangeLog:

* elfxx-riscv.c (riscv_multi_subset_supports): Add support
for "XTheadVdot" extension.
(riscv_multi_subset_supports_ext): Likewise.

gas/ChangeLog:

* doc/c-riscv.texi: Likewise.
* testsuite/gas/riscv/march-help.l: Likewise.
* testsuite/gas/riscv/x-thead-vdot.d: New test.
* testsuite/gas/riscv/x-thead-vdot.s: New test.

include/ChangeLog:

* opcode/riscv-opc.h (MATCH_TH_VMAQA_VV): New.
* opcode/riscv.h (enum riscv_insn_class): Add insn class for
XTheadVdot.

opcodes/ChangeLog:

* riscv-opc.c: Likewise.
bfd/elfxx-riscv.c
gas/doc/c-riscv.texi
gas/testsuite/gas/riscv/march-help.l
gas/testsuite/gas/riscv/x-thead-vdot.d [new file with mode: 0644]
gas/testsuite/gas/riscv/x-thead-vdot.s [new file with mode: 0644]
include/opcode/riscv-opc.h
include/opcode/riscv.h
opcodes/riscv-opc.c