]> git.proxmox.com Git - mirror_qemu.git/commit
target/ppc: do not silence snan in xscvspdpn
authorMatheus Ferst <matheus.ferst@eldorado.org.br>
Tue, 4 Jan 2022 06:55:34 +0000 (07:55 +0100)
committerCédric Le Goater <clg@kaod.org>
Tue, 4 Jan 2022 06:55:34 +0000 (07:55 +0100)
commit84ade98e87ea982ec6625ffd91058aaf443c206e
tree766f9d424a67491bf0b66cde92acce373753c4d0
parentfbe08667c5bd91395eea578398f07e83c768fa56
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>
target/ppc/fpu_helper.c
tests/tcg/ppc64/Makefile.target
tests/tcg/ppc64le/Makefile.target
tests/tcg/ppc64le/non_signalling_xscv.c [new file with mode: 0644]