softfloat: fix float{32,64}_maybe_silence_nan() for MIPS
authorAurelien Jarno <aurelien@aurel32.net>
Thu, 6 Jan 2011 14:38:19 +0000 (15:38 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Thu, 6 Jan 2011 15:29:17 +0000 (16:29 +0100)
commitcc715c241835a4531a08414bec5a084d780d16db
tree863cf98e15ae32df999aad885365c01ef965a712
parent566a43d89c0d428f39741451a99f2f49ce3d440e
softfloat: fix float{32,64}_maybe_silence_nan() for MIPS

On targets that define sNaN with the sNaN bit as one, simply clearing
this bit may correspond to an infinite value.

Convert it to a default NaN if SNAN_BIT_IS_ONE, as it corresponds to
the MIPS implementation, the only emulated CPU with SNAN_BIT_IS_ONE.
When other CPU of this type are added, this might be updated to include
more cases.

Acked-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
fpu/softfloat-specialize.h