[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PING] target/ppc: Fix bugs in VSX_CVT_FP_TO_INT and VSX_CVT_FP_TO_I
From: |
John Platts |
Subject: |
Re: [PING] target/ppc: Fix bugs in VSX_CVT_FP_TO_INT and VSX_CVT_FP_TO_INT2 macros |
Date: |
Thu, 9 Nov 2023 22:18:08 +0000 |
What is the status of integrating the fixes to the VSX_CVT_FP_TO_INT and
VSX_CVT_FP_TO_INT2 macros in target/ppc/fpu_helper.c?
The bug that is currently there with the VSX_CVT_FP_TO_INT and
VSX_CVT_FP_TO_INT2 macros is that float_invalid_cvt is incorrectly called if
the current source value is a non-NaN value and a previous NaN source value
from the same source vector was encountered.
The link to a patch that fixes the above bug in the VSX_CVT_FP_TO_INT and
VSX_CVT_FP_TO_INT2 macros can be found at
SN6PR05MB5837B5EF0D11E0A787EC30179DA5A@SN6PR05MB5837.namprd05.prod.outlook.com/">https://patchew.org/QEMU/SN6PR05MB5837B5EF0D11E0A787EC30179DA5A@SN6PR05MB5837.namprd05.prod.outlook.com/.
A description of this bug can be found at
https://gitlab.com/qemu-project/qemu/-/issues/1941.
Here is a link to a test program that will detect the bugs that are currently
there with the emulation of the xvcvspsxws, xvcvspuxws, xvcvspsxds, xvcvspuxds,
xvcvdpsxws, xvcvdpuxws, xvcvdpsxds, and xvcvdpuxds instructions if the source
vector contains at least one NaN value:
https://gitlab.com/qemu-project/qemu/uploads/fcbb97896ff2f4ab435affae94467f4d/vsx_f2i_nan_test_102523.c