or1k: Do not clear existing FPU exceptions before updating

We should always carry the exceptions forward.  This bug was found when
working on testing glibc math tests, many tests were failing with
Overflow and Underflow flags not set.  This was traced to here.

libgcc/ChangeLog:

	* config/or1k/sfp-machine.h (FP_HANDLE_EXCEPTIONS): Remove
	statement clearing existing exceptions.
This commit is contained in:
Stafford Horne 2023-03-18 16:43:05 +09:00
parent 0e38aedc6a
commit 33fb162599

View file

@ -73,7 +73,6 @@ do { \
do { \ do { \
if (__builtin_expect (_fex, 0)) \ if (__builtin_expect (_fex, 0)) \
{ \ { \
_fpcsr &= ~FP_EX_ALL; \
_fpcsr |= _fex; \ _fpcsr |= _fex; \
__asm__ volatile ("l.mtspr r0,%0,20" : : "r" (_fpcsr)); \ __asm__ volatile ("l.mtspr r0,%0,20" : : "r" (_fpcsr)); \
} \ } \