]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
RISC-V: Fix the wrong encoding and operand of the XTheadFmv extension.
authorJin Ma <jinma@linux.alibaba.com>
Fri, 17 Nov 2023 06:20:53 +0000 (14:20 +0800)
committerChristoph Müllner <christoph.muellner@vrull.eu>
Thu, 14 Dec 2023 08:54:19 +0000 (09:54 +0100)
commit8cb16b68584e14aade8de166c75e1d85e38507bd
tree05c2821251d0efffa731fa57d99f10d4b6046770
parente20298da05f212c04022c4f1a9991e09e2199c9a
RISC-V: Fix the wrong encoding and operand of the XTheadFmv extension.

The description of instructions 'th.fmv.hw.x' and 'th.fmv.x.hw' of the
XTheadFmv extension in T-Head specific is incorrect, and it also has
some impact on the implementation of the binutils, so this patch
corrects this.

For details see:
https://github.com/T-head-Semi/thead-extension-spec/pull/34

gas/ChangeLog:

* testsuite/gas/riscv/x-thead-fmv.d: Correct test.
* testsuite/gas/riscv/x-thead-fmv.s: Likewise.

include/ChangeLog:

* opcode/riscv-opc.h (MATCH_TH_FMV_HW_X): Correct coding.
(MASK_TH_FMV_HW_X): Likewise.
(MATCH_TH_FMV_X_HW): Likewise.
(MASK_TH_FMV_X_HW): Likewise.

opcodes/ChangeLog:

* riscv-opc.c: Correct operands.
gas/testsuite/gas/riscv/x-thead-fmv.d
gas/testsuite/gas/riscv/x-thead-fmv.s
include/opcode/riscv-opc.h
opcodes/riscv-opc.c