[ARM] 3758/1: Preserve signalling NaNs in conversion

Patch from Daniel Jacobowitz

The fcvtds and fcvtsd instructions were generating a qnan bit pattern
for both quiet and signalling NaNs.

Signed-off-by: Daniel Jacobowitz <dan@codesourcery.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

authored by Daniel Jacobowitz and committed by Russell King b53a2b41 c29ecac1

+2 -2
+1 -1
arch/arm/vfp/vfpdouble.c
··· 465 465 */ 466 466 if (tm & (VFP_INFINITY|VFP_NAN)) { 467 467 vsd.exponent = 255; 468 - if (tm & VFP_NAN) 468 + if (tm == VFP_QNAN) 469 469 vsd.significand |= VFP_SINGLE_SIGNIFICAND_QNAN; 470 470 goto pack_nan; 471 471 } else if (tm & VFP_ZERO)
+1 -1
arch/arm/vfp/vfpsingle.c
··· 506 506 */ 507 507 if (tm & (VFP_INFINITY|VFP_NAN)) { 508 508 vdd.exponent = 2047; 509 - if (tm & VFP_NAN) 509 + if (tm == VFP_QNAN) 510 510 vdd.significand |= VFP_DOUBLE_SIGNIFICAND_QNAN; 511 511 goto pack_nan; 512 512 } else if (tm & VFP_ZERO)