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 
https://patchew.org/QEMU/sn6pr05mb5837b5ef0d11e0a787ec30179d...@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

Reply via email to