From 8119cc38379eb136a62b64f642ab4e3b6d4c6abd Mon Sep 17 00:00:00 2001 From: Cooper Qu Date: Wed, 2 Sep 2020 14:05:49 +0800 Subject: [PATCH] CSKY: Fix Encode of mulsws. gas/ * testsuite/gas/csky/cskyv2_dsp.d : Fix Encode of mulsws. opcodes/ * csky-opc.h (csky_v2_opcodes): Fix Encode of mulsws. --- gas/ChangeLog | 4 ++++ gas/testsuite/gas/csky/cskyv2_dsp.d | 2 +- opcodes/ChangeLog | 4 ++++ opcodes/csky-opc.h | 2 +- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 0e2434f9862..303a332a0a4 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2020-09-02 Cooper Qu + + * testsuite/gas/csky/cskyv2_dsp.d : Fix Encode of mulsws. + 2020-09-02 Cooper Qu * config/tc-csky.c (struct literal): New member bignum. diff --git a/gas/testsuite/gas/csky/cskyv2_dsp.d b/gas/testsuite/gas/csky/cskyv2_dsp.d index 3bc52fee8c3..54845a9c32a 100644 --- a/gas/testsuite/gas/csky/cskyv2_dsp.d +++ b/gas/testsuite/gas/csky/cskyv2_dsp.d @@ -15,5 +15,5 @@ Disassembly of section \.text: \s*[0-9a-f]*:\s*c6689040\s*mulsha\s*r8,\s*r19 \s*[0-9a-f]*:\s*c4319080\s*mulshs\s*r17,\s*r1 \s*[0-9a-f]*:\s*c6ec9440\s*mulswa\s*r12,\s*r23 -\s*[0-9a-f]*:\s*c4a39480\s*mulsws\s*r3,\s*r5 +\s*[0-9a-f]*:\s*c4a39500\s*mulsws\s*r3,\s*r5 #... diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 719cf05a3ef..a4e95aea5e4 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,7 @@ +2020-09-02 Cooper Qu + + * csky-opc.h (csky_v2_opcodes): Fix Encode of mulsws. + 2020-09-01 Alan Modra * mep-ibld.c: Regenerate. diff --git a/opcodes/csky-opc.h b/opcodes/csky-opc.h index 0a0b138fac7..54203aaab7e 100644 --- a/opcodes/csky-opc.h +++ b/opcodes/csky-opc.h @@ -2634,7 +2634,7 @@ const struct csky_opcode csky_v2_opcodes[] = (21_25, AREG, OPRND_SHIFT_0_BIT)), CSKY_ISA_DSP), OP32 ("mulsws", - OPCODE_INFO2 (0xc4009480, + OPCODE_INFO2 (0xc4009500, (16_20, AREG, OPRND_SHIFT_0_BIT), (21_25, AREG, OPRND_SHIFT_0_BIT)), CSKY_ISA_DSP), -- 2.30.2