target/s390x: fix handling of zeroes in vfmin/vfmax
commit13c59eb09bd6d1fbc13f08b708226421f14a232b
authorIlya Leoshkevich <iii@linux.ibm.com>
Wed, 13 Jul 2022 18:26:10 +0000 (13 20:26 +0200)
committerThomas Huth <thuth@redhat.com>
Tue, 19 Jul 2022 10:49:56 +0000 (19 12:49 +0200)
tree71a5abf92ebd5e593a0f79c5e157091f33e35c4c
parentb8bb9bbf4695b89bbdca702a054db0a7a2c8ff2b
target/s390x: fix handling of zeroes in vfmin/vfmax

vfmin_res() / vfmax_res() are trying to check whether a and b are both
zeroes, but in reality they check that they are the same kind of zero.
This causes incorrect results when comparing positive and negative
zeroes.

Fixes: da4807527f3b ("s390x/tcg: Implement VECTOR FP (MAXIMUM|MINIMUM)")
Co-developed-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Message-Id: <20220713182612.3780050-2-iii@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
target/s390x/tcg/vec_fpu_helper.c