target-arm: Fix implementation of VRSQRTS
commit9ea62f571ce8953dba1d2bad2bdeaf9c3a84b7d7
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 14 Jan 2011 19:39:18 +0000 (14 20:39 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Fri, 14 Jan 2011 19:39:18 +0000 (14 20:39 +0100)
tree8895bae6a06582fa53a2cbee9a9bec360cb53c76
parent6f3300ad2b5a1e7090720993d9fcb9f550259e12
target-arm: Fix implementation of VRSQRTS

The implementation of the ARM VRSQRTS instruction (which calculates
(3 - op1 * op2) / 2) was missing the division operation. It also
did not handle the special cases of (0,inf) and (inf,0).

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