forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
committed by
Christoph Müllner
parent
e20298da05
commit
8cb16b6858
@@ -2515,10 +2515,10 @@
|
||||
#define MATCH_TH_FSURW 0x5000700b
|
||||
#define MASK_TH_FSURW 0xf800707f
|
||||
/* Vendor-specific (T-Head) XTheadFmv instructions. */
|
||||
#define MATCH_TH_FMV_HW_X 0x5000100b
|
||||
#define MASK_TH_FMV_HW_X 0xfff0707f
|
||||
#define MATCH_TH_FMV_X_HW 0x6000100b
|
||||
#define MASK_TH_FMV_X_HW 0xfff0707f
|
||||
#define MATCH_TH_FMV_X_HW 0xc000100b
|
||||
#define MASK_TH_FMV_X_HW 0xfff0707f
|
||||
#define MATCH_TH_FMV_HW_X 0xa000100b
|
||||
#define MASK_TH_FMV_HW_X 0xfff0707f
|
||||
/* Vendor-specific (T-Head) XTheadInt instructions. */
|
||||
#define MATCH_TH_IPOP 0x0050000b
|
||||
#define MASK_TH_IPOP 0xffffffff
|
||||
|
||||
Reference in New Issue
Block a user