arch-arm: Do not increment exponent if FPSCR.FZ in fplib
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Wed, 22 Apr 2020 13:50:15 +0000 (14:50 +0100)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Mon, 27 Apr 2020 13:10:45 +0000 (13:10 +0000)
commitb089163b72812366def0c07d9d0ea27bb580b20e
tree57b606164976d1dcfe6e8d07a149e5955cbf1599
parentda21567d2cfb0a4279d3a6c8ebe2aa01fa7b7306
arch-arm: Do not increment exponent if FPSCR.FZ in fplib

If flushing to zero, the exponent shouldn't be incremented since
we are supposed to produce a 0 value and not a denormal number

Change-Id: Ib6dd594a6555b2fd9a20a52b59cbf1f5f94c2eb5
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/28107
Reviewed-by: Jordi Vaquero <jordi.vaquero@metempsy.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/arm/insts/fplib.cc