target/ppc: do not silence snan in xscvspdpn
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.ferst@eldorado.org.br> Message-Id: <20211228120310.1957990-1-matheus.ferst@eldorado.org.br> Signed-off-by:
Cédric Le Goater <clg@kaod.org>
Showing
- target/ppc/fpu_helper.c 1 addition, 4 deletionstarget/ppc/fpu_helper.c
- tests/tcg/ppc64/Makefile.target 2 additions, 2 deletionstests/tcg/ppc64/Makefile.target
- tests/tcg/ppc64le/Makefile.target 2 additions, 2 deletionstests/tcg/ppc64le/Makefile.target
- tests/tcg/ppc64le/non_signalling_xscv.c 37 additions, 0 deletionstests/tcg/ppc64le/non_signalling_xscv.c
Loading
Please register or sign in to comment