softfloat: Honour default_nan_mode for float-to-float conversions
authorChristophe Lyon <christophe.lyon@st.com>
Thu, 10 Feb 2011 11:28:57 +0000 (11:28 +0000)
committerAurelien Jarno <aurelien@aurel32.net>
Thu, 10 Feb 2011 17:28:19 +0000 (18:28 +0100)
commitbcd4d9afd411494f9e1cb2a3b4a65dcf4207857e
treef7977be794c6db992f1f20427723870485e1775f
parentbb4d4bb376c6ae4d2dfa6e59dfa4e87a75d3a672
softfloat: Honour default_nan_mode for float-to-float conversions

Honour the default_nan_mode flag when doing conversions between
different floating point formats, as well as when returning a NaN from
a two-operand floating point function. This corrects the behaviour
of float<->double conversions on both ARM and SH4.

Signed-off-by: Christophe Lyon <christophe.lyon@st.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
fpu/softfloat-specialize.h
fpu/softfloat.c