]> git.ipfire.org Git - thirdparty/valgrind.git/commit
PPC64, fix issues with dnormal values in the vector fp instructions.
authorCarl Love <carll@us.ibm.com>
Tue, 28 May 2019 16:26:13 +0000 (11:26 -0500)
committerCarl Love <carll@us.ibm.com>
Tue, 28 May 2019 18:49:33 +0000 (13:49 -0500)
commit991db2a39bcbdbf5cdb4337684c29f96c63070a8
tree02726fd8a6a22dd2b8b71625534922929f407e31
parentc39ee0c37082e2d1723a8671fca2b3af029e2712
PPC64, fix issues with dnormal values in the vector fp instructions.

The result of the floating point instructions vmaddfp, vnmsubfp,
vaddfp, vsubfp, vmaxfp, vminfp, vrefp, vrsqrtefp, vcmpeqfp, vcmpeqfp,
vcmpgefp, vcmpgtfp are controlled by the setting of the NJ bit in
the VSCR register.  If VSCR[NJ] = 0; then denormalized values are
handled as specified by Java and the IEEE standard.  If the bit is
a 1, then the denormalized element in the vector is replaced with
a zero.

Valgrind was not properly handling the denormalized case for these
instructions.  This patch fixes the issue.

https://bugs.kde.org/show_bug.cgi?id=406256
NEWS
VEX/priv/guest_ppc_helpers.c
VEX/priv/guest_ppc_toIR.c
coregrind/m_dispatch/dispatch-ppc32-linux.S
coregrind/m_dispatch/dispatch-ppc64be-linux.S
coregrind/m_dispatch/dispatch-ppc64le-linux.S