target-arm: Fix VCLE.F32 #0, VCLT.F32 #0 NaN handling
commit0e3261098ff41c40ce3381b8ad7cff330458da3d
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 11 Mar 2011 08:12:23 +0000 (11 08:12 +0000)
committerAurelien Jarno <aurelien@aurel32.net>
Sun, 3 Apr 2011 15:19:38 +0000 (3 17:19 +0200)
tree6f255ed260c0fb1cfba9c6fce0fc5d3058a24842
parentc7498daea76948128c1298d78fe9e7e618b5ff7c
target-arm: Fix VCLE.F32 #0, VCLT.F32 #0 NaN handling

Implementing the floating-point versions of VCLE #0 and VCLT #0 by
doing a GT comparison and inverting the result gives the wrong
result if the input is a NaN. Implement as a GT comparison with the
operands swapped instead.

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