]> git.proxmox.com Git - qemu.git/commit
target-arm: Signal InvalidOp for Neon GE and GT compares of QNaN
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 19 May 2011 13:46:16 +0000 (14:46 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Mon, 23 May 2011 20:39:36 +0000 (22:39 +0200)
commitcab565c412a5634ce26f4d24ae65907c3108bdb0
tree3ff275e9ae2a667f106db9b9c21d60ae5e4a71b6
parent5500b06cb5091c352a7ce6552da02c9e1958bf3b
target-arm: Signal InvalidOp for Neon GE and GT compares of QNaN

If the input to a Neon float comparison is a quiet NaN, the ARM ARM
specifies that we should raise InvalidOp if the comparison is GE or GT
but not for EQ. (Signaling NaNs raise InvalidOp regardless). This means
only EQ should use the _quiet version of the comparison function.

We implement this by cleaning up the comparison helpers to call the
appopriate versions of the softfloat simple comparison functions
(float32_le and friends) rather than the generic float32_compare functions.
This makes them simple enough that they are clearer opencoded rather
than macroised.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-arm/neon_helper.c