target/mips: Fix MSA MADDV.B opcode
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Fri, 22 Oct 2021 09:33:42 +0000 (11:33 +0200)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Tue, 2 Nov 2021 13:32:32 +0000 (14:32 +0100)
commit06df015b69ba2812a9cff6858d32491d6a7b9c44
tree0a6ae8e356b9b1c6b641cae31d65d69e6e558870
parentf44d1d4ed9feb50f4d791b0b6827c1e0dba20555
target/mips: Fix MSA MADDV.B opcode

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

Cc: Aleksandar Rikalo <aleksandar.rikalo@syrmia.com>
Fixes: 7a7a162adde ("target/mips: msa: Split helpers for MADDV.<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-2-f4bug@amsat.org>
target/mips/tcg/msa_helper.c