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