softfloat: Handle float_muladd_negate_c when product is zero
commita6e7c18476f5383720b3f57ef4f467b2e7c2565e
authorRichard Sandiford <rdsandiford@googlemail.com>
Tue, 22 Jan 2013 17:03:05 +0000 (22 17:03 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 26 Jan 2013 13:22:09 +0000 (26 13:22 +0000)
tree9682242c1c4597fd0891742dc2e0a460167b5cec
parentde16017dc8f2c33c73bd3faebf3c626c400af5e4
softfloat: Handle float_muladd_negate_c when product is zero

Honour float_muladd_negate_c in the case where the product is zero and
c is nonzero.  Previously we would fail to negate c.

Seen in (and tested against) the gfortran testsuite on MIPS.

Signed-off-by: Richard Sandiford <rdsandiford@googlemail.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
fpu/softfloat.c