gcc/libgcc/config/arm
Aurelien Jarno a1b01d3403 [ARM] Fix PR target/59833
For Aurelien Jarno <aurelien@aurel32.net>

On ARM soft-float, the float to double conversion doesn't convert a sNaN
to qNaN as the IEEE Std 754 standard mandates:

"Under default exception handling, any operation signaling an invalid
operation exception and for which a floating-point result is to be
delivered shall deliver a quiet NaN."

Given the soft float ARM code ignores exceptions and always provides a
result, a float to double conversion of a signaling NaN should return a
quiet NaN. Fix this in extendsfdf2.

gcc/ChangeLog:

	PR target/59833
	* config/arm/ieee754-df.S (extendsfdf2): Convert sNaN to qNaN.

gcc/testsuite/ChangeLog:

	* gcc.dg/pr59833.c: New testcase.

From-SVN: r238584
2016-07-21 08:27:47 +00:00
..
bpabi-lib.h Update copyright years. 2016-01-04 15:30:50 +01:00
bpabi-v6m.S elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to decide whether to prevent... 2016-07-07 08:54:18 +00:00
bpabi.c Update copyright years. 2016-01-04 15:30:50 +01:00
bpabi.S Update copyright years. 2016-01-04 15:30:50 +01:00
crtfastmath.c Update copyright years. 2016-01-04 15:30:50 +01:00
crti.S Update copyright years. 2016-01-04 15:30:50 +01:00
crtn.S Update copyright years. 2016-01-04 15:30:50 +01:00
fp16.c Update copyright years. 2016-01-04 15:30:50 +01:00
freebsd-atomic.c Update copyright years. 2016-01-04 15:30:50 +01:00
ieee754-df.S [ARM] Fix PR target/59833 2016-07-21 08:27:47 +00:00
ieee754-sf.S Update copyright years. 2016-01-04 15:30:50 +01:00
lib1funcs.S lib1funcs.S: Add new wrapper. 2016-07-11 17:11:31 +00:00
libgcc-bpabi.ver Update copyright years. 2016-01-04 15:30:50 +01:00
libunwind.S elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to decide whether to prevent... 2016-07-07 08:54:18 +00:00
linux-atomic-64bit.c Update copyright years. 2016-01-04 15:30:50 +01:00
linux-atomic.c Update copyright years. 2016-01-04 15:30:50 +01:00
pr-support.c Update copyright years. 2016-01-04 15:30:50 +01:00
sfp-machine.h re PR libgcc/60166 (ARM default NAN encoding violates EABI) 2014-05-21 01:24:05 +00:00
symbian-lib.h Update copyright years. 2016-01-04 15:30:50 +01:00
t-arm Move libgcc1 to toplevel libgcc 2011-11-02 15:03:19 +00:00
t-bpabi Makefile.in (LIB2_DIVMOD_EXCEPTION_FLAGS): Default to -fexceptions -fnon-call-exceptions if not defined. 2012-08-17 15:06:06 +00:00
t-elf lib1funcs.asm (ctzsi2): New function. 2012-03-22 15:14:46 +00:00
t-freebsd configure.ac: Don't add ${libgcj} for arm*-*-freebsd*. 2015-01-09 15:06:02 +01:00
t-linux lib1funcs.asm (ctzsi2): New function. 2012-03-22 15:14:46 +00:00
t-linux-eabi Move libgcc2 to toplevel libgcc 2011-11-02 15:23:48 +00:00
t-netbsd Move libgcc2 to toplevel libgcc 2011-11-02 15:23:48 +00:00
t-softfp elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to decide whether to prevent... 2016-07-07 08:54:18 +00:00
t-strongarm-elf lib1funcs.asm (ctzsi2): New function. 2012-03-22 15:14:46 +00:00
t-symbian lib1funcs.asm (ctzsi2): New function. 2012-03-22 15:14:46 +00:00
t-wince-pe lib1funcs.asm (ctzsi2): New function. 2012-03-22 15:14:46 +00:00
unaligned-funcs.c Update copyright years. 2016-01-04 15:30:50 +01:00
unwind-arm.c Update copyright years. 2016-01-04 15:30:50 +01:00
unwind-arm.h Update copyright years. 2016-01-04 15:30:50 +01:00