]> git.ipfire.org Git - thirdparty/qemu.git/commit
tcg/s390x: Fix encoding of VRIc, VRSa, VRSc insns
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 17 Jan 2024 21:13:35 +0000 (21:13 +0000)
committerMichael Tokarev <mjt@tls.msk.ru>
Thu, 25 Jan 2024 16:13:41 +0000 (19:13 +0300)
commit005d7236dba9434afdbcb8e2e174364cd330a2c4
treeb46fb5b11d41ae8a1bc82eaa731b0f27fd4b4400
parentef74024b76bf285e247add8538c11cb3c7399a1a
tcg/s390x: Fix encoding of VRIc, VRSa, VRSc insns

While the format names the second vector register 'v3',
it is still in the second position (bits 12-15) and
the argument to RXB must match.

Example error:
 -   e7 00 00 10 2a 33       verllf  %v16,%v0,16
 +   e7 00 00 10 2c 33       verllf  %v16,%v16,16

Cc: qemu-stable@nongnu.org
Reported-by: Michael Tokarev <mjt@tls.msk.ru>
Fixes: 22cb37b4172 ("tcg/s390x: Implement vector shift operations")
Fixes: 79cada8693d ("tcg/s390x: Implement tcg_out_dup*_vec")
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2054
Reviewed-by: Thomas Huth <thuth@redhat.com>
Tested-by: Michael Tokarev <mjt@tls.msk.ru>
Message-Id: <20240117213646.159697-2-richard.henderson@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
(cherry picked from commit c1ddc18f37108498f45d57afd6bf33a23b703648)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
tcg/s390x/tcg-target.c.inc