target-arm: Squash input denormals in FRECPS and FRSQRTS
commita8eb6e19991d1a7a6a7b04ac447548d30d75eb4a
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 5 Feb 2015 13:37:22 +0000 (5 13:37 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 5 Feb 2015 13:37:22 +0000 (5 13:37 +0000)
tree799a46e9488640dae45bc518bfd0aebfd6455809
parentdabf005808f0830313f313c76a492294ef3bce6a
target-arm: Squash input denormals in FRECPS and FRSQRTS

The helper functions for FRECPS and FRSQRTS have special case
handling that includes checks for zero inputs, so squash input
denormals if necessary before those checks. This fixes incorrect
output when the FPCR DZ bit is set to enable squashing of input
denormals.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Tested-by: Laurent Desnogues <laurent.desnogues@gmail.com>
target-arm/helper-a64.c