glibc/sysdeps/sparc/sparc32/sparcv9
Aurelien Jarno 2cbec36566 SPARC: fix nearbyint on sNaN input
nearbyint and nearbyintf should not trigger inexact exceptions, but
should still trigger an invalid exception for a sNaN input.

The SPARC specific implementations of these functions save the FSR at
the beginning of the function and restore it at the end to not trigger
an inexact exception. This however doesn't work for an sNaN input which
need to trigger an invalid exception. Fix that by adding a fcmp
instruction using the input value before saving FSR, so that an invalid
exception is triggered for a sNaN input.

This fixes the math/test-nearbyint-except test on SPARC.

Changelog:
	* sparc/sparc32/sparcv9/fpu/s_nearbyint.S (__nearbyint): Trigger an
	invalid exception for a sNaN input.
	* sparc/sparc32/sparcv9/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
	* sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S
	(__nearbyint_vis3): Likewise
	* sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S
	(__nearbyintf_vis3): Likewise
	* sparc/sparc64/fpu/s_nearbyint.S (__nearbyint): Likewise.
	* sparc/sparc64/fpu/s_nearbyintf.S (__nearbyintf): Likewise.
	* sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S (__nearbyint_vis3):
	Likewise.
	* sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S (__nearbyintf_vis3):
	Likewise.
2016-07-01 16:36:41 +02:00
..
fpu SPARC: fix nearbyint on sNaN input 2016-07-01 16:36:41 +02:00
multiarch Add support for sparc cryptographic hash opcodes. 2012-11-13 17:12:45 -08:00
addmul_1.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
atomic-machine.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
backtrace.h Use libgcc unwinder for sparc backtraces, if available. 2013-01-21 14:15:30 -08:00
bzero.c
cpu_relax.S SPARC: Consolidate unnecessary nptl/ subdirectories. 2014-06-25 10:04:14 -07:00
dotmul.S
hp-timing.h Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
Makefile Fix sparc build. 2015-07-15 16:07:32 -07:00
memchr.S
memcmp.S
memcpy.S
memset.S
mul_1.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
pthread_barrier_wait.c New pthread_barrier algorithm to fulfill barrier destruction requirements. 2016-01-15 21:20:34 +01:00
pthread_spin_init.c SPARC: Consolidate unnecessary nptl/ subdirectories. 2014-06-25 10:04:14 -07:00
pthread_spin_lock.S SPARC: Consolidate unnecessary nptl/ subdirectories. 2014-06-25 10:04:14 -07:00
pthread_spin_trylock.S SPARC: Consolidate unnecessary nptl/ subdirectories. 2014-06-25 10:04:14 -07:00
pthread_spin_unlock.S SPARC: Consolidate unnecessary nptl/ subdirectories. 2014-06-25 10:04:14 -07:00
rawmemchr.S
rem.S
rtld-memcpy.c Use generic memset/memcpy in rtld on sparcv9/sparc64. 2012-03-28 22:22:15 -07:00
rtld-memset.c Use generic memset/memcpy in rtld on sparcv9/sparc64. 2012-03-28 22:22:15 -07:00
sdiv.S
sem_init.c Fix sparc semaphore implementation after recent changes. 2015-01-31 23:39:50 -08:00
sem_open.c Fix sparc semaphore implementation after recent changes. 2015-01-31 23:39:50 -08:00
sem_post.c Fix sparc semaphore implementation after recent changes. 2015-01-31 23:39:50 -08:00
sem_wait.c Fix sparc semaphore implementation after recent changes. 2015-01-31 23:39:50 -08:00
sem_waitcommon.c Fix sparc semaphore implementation after recent changes. 2015-01-31 23:39:50 -08:00
stpcpy.S
stpncpy.S
strcat.S
strchr.S
strcmp.S
strcpy.S
strcspn.S
strlen.S
strncmp.S
strncpy.S
strpbrk.S
strrchr.c
strspn.S
submul_1.S Update copyright dates with scripts/update-copyrights. 2016-01-04 16:05:18 +00:00
udiv.S
umul.S
urem.S