On 12/14/21 15:44, matheus.fe...@eldorado.org.br wrote: > From: Matheus Ferst <matheus.fe...@eldorado.org.br> > > The non-signalling versions of VSX scalar convert to shorter/longer > precision insns doesn't silence SNaNs in the hardware. To better match > this behavior, use the non-arithmatic conversion of helper_todouble > instead of float32_to_float64. A test is added to prevent future > regressions. > > Signed-off-by: Matheus Ferst <matheus.fe...@eldorado.org.br> > --- > v2: > - helper_todouble instead of changing softfloat > - Basic test for SNaN->SNaN case of xscvspdpn/xscvdpspn and SNaN->Inf > case of xscvdpspn > --- > target/ppc/fpu_helper.c | 5 +--- > tests/tcg/ppc64/Makefile.target | 4 +-- > tests/tcg/ppc64le/Makefile.target | 4 +-- > tests/tcg/ppc64le/non_signalling_xscv.c | 36 +++++++++++++++++++++++++ > 4 files changed, 41 insertions(+), 8 deletions(-) > create mode 100644 tests/tcg/ppc64le/non_signalling_xscv.c
Reviewed-by: Philippe Mathieu-Daudé <f4...@amsat.org>