target/s390x: Fix assertion failure in VFMIN/VFMAX with type 13
commitff537b0370ab5918052b8d8a798e803c47272406
authorIlya Leoshkevich <iii@linux.ibm.com>
Mon, 24 Jul 2023 08:16:00 +0000 (24 10:16 +0200)
committerThomas Huth <thuth@redhat.com>
Mon, 24 Jul 2023 16:44:47 +0000 (24 18:44 +0200)
treedb167f47c7a90d124456e08715590ba8c5732626
parent9c028c057adce49304c6e4a51f6b426bd4f8f6b8
target/s390x: Fix assertion failure in VFMIN/VFMAX with type 13

Type 13 is reserved, so using it should result in specification
exception. Due to an off-by-1 error the code triggers an assertion at a
later point in time instead.

Cc: qemu-stable@nongnu.org
Fixes: da4807527f3b ("s390x/tcg: Implement VECTOR FP (MAXIMUM|MINIMUM)")
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Message-Id: <20230724082032.66864-8-iii@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
target/s390x/tcg/translate_vx.c.inc