RISC-V: Fix T-Head Fmv vendor extension encoding
authorChristoph Müllner <christoph.muellner@vrull.eu>
Fri, 16 Dec 2022 18:44:07 +0000 (19:44 +0100)
committerPhilipp Tomsich <philipp.tomsich@vrull.eu>
Tue, 27 Dec 2022 19:43:30 +0000 (20:43 +0100)
A recent change in the XTheadFmv spec fixed an encoding bug in the
document. This patch changes the code to follow this bugfix.

Spec patch can be found here:
  https://github.com/T-head-Semi/thead-extension-spec/pull/11

Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
gas/testsuite/gas/riscv/x-thead-fmv.d
include/opcode/riscv-opc.h

index f2bbe010beb9b58ffff193c3817cb64cf78b6f78..af8ce0c8ee03f1b88050d0aa79c4998b7de73eb0 100644 (file)
@@ -7,5 +7,5 @@
 Disassembly of section .text:
 
 0+000 <target>:
-[      ]+[0-9a-f]+:[   ]+6005950b[     ]+th.fmv.hw.x[  ]+a0,fa1
-[      ]+[0-9a-f]+:[   ]+5005158b[     ]+th.fmv.x.hw[  ]+a1,fa0
+[      ]+[0-9a-f]+:[   ]+5005950b[     ]+th.fmv.hw.x[  ]+a0,fa1
+[      ]+[0-9a-f]+:[   ]+6005158b[     ]+th.fmv.x.hw[  ]+a1,fa0
index 06e3df0f5a63a32d1b0d8b5a9670153c13c45de8..5420bfac91bbc583cab9980cd08c23238c7f48eb 100644 (file)
 #define MATCH_TH_FSURW 0x5000700b
 #define MASK_TH_FSURW 0xf800707f
 /* Vendor-specific (T-Head) XTheadFmv instructions. */
-#define MATCH_TH_FMV_HW_X 0x6000100b
+#define MATCH_TH_FMV_HW_X 0x5000100b
 #define MASK_TH_FMV_HW_X 0xfff0707f
-#define MATCH_TH_FMV_X_HW 0x5000100b
+#define MATCH_TH_FMV_X_HW 0x6000100b
 #define MASK_TH_FMV_X_HW 0xfff0707f
 /* Vendor-specific (T-Head) XTheadInt instructions. */
 #define MATCH_TH_IPOP 0x0050000b