gcc/libgcc/config
Joseph Myers fec5f4e041 Make MIPS soft-fp preserve NaN payloads for NAN2008.
The MIPS sfp-machine.h has an _FP_CHOOSENAN implementation which
emulates hardware semantics of not preserving signaling NaN payloads
for an operation with two NaN arguments (although that doesn't suffice
to avoid sNaN payload preservation in any case with just one NaN
argument).

However, those are only hardware semantics in the legacy NaN case; in
the NAN2008 case, the architecture documentation says hardware
preserves payloads in such cases.  Furthermore, this implementation
assumes legacy NaN semantics, so in the NAN2008 case the
implementation actually has the effect of preserving sNaN payloads but
not preserving qNaN payloads, when both should be preserved.

This patch fixes the code just to copy from the first argument (at the
level of libgcc, it's not meaningful which argument is the first and
which is the second).

Tested for mips64-linux-gnu (soft float, NAN2008) with the glibc math/
tests.

	* config/mips/sfp-machine.h (_FP_CHOOSENAN): Always preserve NaN
	payload if [__mips_nan2008].

From-SVN: r244059
2017-01-04 17:06:33 +00:00
..
aarch64 Update copyright years. 2017-01-01 13:07:43 +01:00
alpha Update copyright years. 2017-01-01 13:07:43 +01:00
arc Update copyright years. 2017-01-01 13:07:43 +01:00
arm Update copyright years. 2017-01-01 13:07:43 +01:00
avr Update copyright years. 2017-01-01 13:07:43 +01:00
bfin Update copyright years. 2017-01-01 13:07:43 +01:00
c6x Update copyright years. 2017-01-01 13:07:43 +01:00
cr16 Update copyright years. 2017-01-01 13:07:43 +01:00
cris Update copyright years. 2017-01-01 13:07:43 +01:00
epiphany Update copyright years. 2017-01-01 13:07:43 +01:00
fr30 Update copyright years. 2017-01-01 13:07:43 +01:00
frv Update copyright years. 2017-01-01 13:07:43 +01:00
ft32 Update copyright years. 2017-01-01 13:07:43 +01:00
h8300 Update copyright years. 2017-01-01 13:07:43 +01:00
i386 Update copyright years. 2017-01-01 13:07:43 +01:00
ia64 Update copyright years. 2017-01-01 13:07:43 +01:00
iq2000 Update copyright years. 2017-01-01 13:07:43 +01:00
libbid Update copyright years. 2017-01-01 13:07:43 +01:00
lm32 Update copyright years. 2017-01-01 13:07:43 +01:00
m32c Update copyright years. 2017-01-01 13:07:43 +01:00
m32r Update copyright years. 2017-01-01 13:07:43 +01:00
m68k Update copyright years. 2017-01-01 13:07:43 +01:00
mcore Update copyright years. 2017-01-01 13:07:43 +01:00
microblaze Update copyright years. 2017-01-01 13:07:43 +01:00
mips Make MIPS soft-fp preserve NaN payloads for NAN2008. 2017-01-04 17:06:33 +00:00
mmix Update copyright years. 2017-01-01 13:07:43 +01:00
moxie Update copyright years. 2017-01-01 13:07:43 +01:00
msp430 Update copyright years. 2017-01-01 13:07:43 +01:00
nds32 Update copyright years. 2017-01-01 13:07:43 +01:00
nios2 Update copyright years. 2017-01-01 13:07:43 +01:00
nvptx Update copyright years. 2017-01-01 13:07:43 +01:00
pa Update copyright years. 2017-01-01 13:07:43 +01:00
pdp11
rl78 Update copyright years. 2017-01-01 13:07:43 +01:00
rs6000 Update copyright years. 2017-01-01 13:07:43 +01:00
rx Update copyright years. 2017-01-01 13:07:43 +01:00
s390 Update copyright years. 2017-01-01 13:07:43 +01:00
score Update copyright years. 2017-01-01 13:07:43 +01:00
sh Update copyright years. 2017-01-01 13:07:43 +01:00
sol2 Update copyright years. 2017-01-01 13:07:43 +01:00
sparc Update copyright years. 2017-01-01 13:07:43 +01:00
spu Update copyright years. 2017-01-01 13:07:43 +01:00
stormy16 Update copyright years. 2017-01-01 13:07:43 +01:00
tilegx TILE-Gx big endian support. 2014-02-24 15:08:00 +00:00
tilepro Update copyright years. 2017-01-01 13:07:43 +01:00
v850 Update copyright years. 2017-01-01 13:07:43 +01:00
vax Update copyright years. 2017-01-01 13:07:43 +01:00
visium Update copyright years. 2017-01-01 13:07:43 +01:00
vms Update copyright years. 2017-01-01 13:07:43 +01:00
xtensa Update copyright years. 2017-01-01 13:07:43 +01:00
darwin-64.c Update copyright years. 2017-01-01 13:07:43 +01:00
darwin-crt-tm.c Update copyright years. 2017-01-01 13:07:43 +01:00
darwin-crt3.c Update copyright years. 2017-01-01 13:07:43 +01:00
gthr-lynx.h Update copyright years. 2017-01-01 13:07:43 +01:00
gthr-rtems.h Update copyright years. 2017-01-01 13:07:43 +01:00
gthr-vxworks.h Update copyright years. 2017-01-01 13:07:43 +01:00
hardfp.c Update copyright years. 2017-01-01 13:07:43 +01:00
libgcc-glibc.ver Update copyright years. 2017-01-01 13:07:43 +01:00
libgcc-libsystem.ver
no-sfp-machine.h
no-unwind.h
t-crtfm Remove obsolete Tru64 UNIX V5.1B support 2012-03-12 15:35:56 +00:00
t-crtstuff-pic
t-darwin [Darwin] fix PR67710 by updating 'as' specs to handle newer assembler versions. 2016-11-27 15:07:22 +00:00
t-dfprules
t-eh-dw2-dip
t-fdpbit
t-fixedpoint-gnu-prefix
t-fpbit
t-freebsd-thread
t-gnu-prefix
t-hardfp Update copyright years. 2017-01-01 13:07:43 +01:00
t-hardfp-sfdf Update copyright years. 2017-01-01 13:07:43 +01:00
t-libgcc-pic
t-libunwind
t-libunwind-elf Update copyright years. 2017-01-01 13:07:43 +01:00
t-linux
t-openbsd-thread
t-rtems
t-slibgcc Update copyright years. 2017-01-01 13:07:43 +01:00
t-slibgcc-darwin
t-slibgcc-elf-ver
t-slibgcc-gld
t-slibgcc-gld-nover
t-slibgcc-hpux re PR other/55274 (gcc build hangs on HP-UX 11.11) 2013-04-06 18:22:09 +00:00
t-slibgcc-libgcc Update copyright years. 2017-01-01 13:07:43 +01:00
t-slibgcc-nolc-override
t-slibgcc-sld Don't build libgcc-unwind.map with --disable-shared (PR libgcc/61097) 2014-05-08 12:11:14 +00:00
t-slibgcc-vms
t-softfp Update copyright years. 2017-01-01 13:07:43 +01:00
t-softfp-compat Make soft-fp symbols into compat symbols for powerpc*-*-linux*. 2014-10-30 17:28:30 +00:00
t-softfp-excl
t-softfp-sfdf
t-softfp-sfdftf IA MCU psABI support: changes to libraries 2015-06-30 09:42:07 -07:00
t-softfp-tf
t-stack
t-tls
t-vxworks
unwind-dw2-fde-darwin.c Update copyright years. 2017-01-01 13:07:43 +01:00
vxlib-tls.c Update copyright years. 2017-01-01 13:07:43 +01:00
vxlib.c Update copyright years. 2017-01-01 13:07:43 +01:00