]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/s390x: Use a 16-bit immediate in VREP
authorIlya Leoshkevich <iii@linux.ibm.com>
Mon, 7 Aug 2023 16:34:31 +0000 (18:34 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Sun, 10 Sep 2023 16:39:41 +0000 (19:39 +0300)
commit14f78932e02c15e59f3a0894a08159cd00712765
tree4955f41af11b152248832c8bbc1b6db6e087278f
parent179a37924d55e645e660731f0e389d70a277a1c2
target/s390x: Use a 16-bit immediate in VREP

Unlike most other instructions that contain an immediate element index,
VREP's one is 16-bit, and not 4-bit. The code uses only 8 bits, so
using, e.g., 0x101 does not lead to a specification exception.

Fix by checking all 16 bits.

Cc: qemu-stable@nongnu.org
Fixes: 28d08731b1d8 ("s390x/tcg: Implement VECTOR REPLICATE")
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Message-Id: <20230807163459.849766-1-iii@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
(cherry picked from commit 23e87d419f347b6b5f4da3bf70d222acc24cdb64)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target/s390x/tcg/translate_vx.c.inc