]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/mips: Fix MSA MSUBV.B opcode
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Fri, 22 Oct 2021 09:33:49 +0000 (11:33 +0200)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Tue, 2 Nov 2021 13:32:32 +0000 (14:32 +0100)
commit36b39a69b2e7649d317a08dd81da39a7c9bc14f3
tree698ab69bbfff971e122cc215868fc4eea6b88f94
parent06df015b69ba2812a9cff6858d32491d6a7b9c44
target/mips: Fix MSA MSUBV.B opcode

The result of the 'Vector Multiply and Subtract' opcode is
incorrect with Byte vectors. Probably due to a copy/paste error,
commit 5f148a02327 mistakenly used the $wt (target register)
instead  of $wd (destination register) as first operand. Fix that.

Cc: Aleksandar Rikalo <aleksandar.rikalo@syrmia.com>
Fixes: 5f148a02327 ("target/mips: msa: Split helpers for MSUBV.<B|H|W|D>")
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20211028210843.2120802-3-f4bug@amsat.org>
target/mips/tcg/msa_helper.c