[Bug 289232] i386 (x87) signal incorrectly reports FPE_FLTRES over FPE_FLTUND when both are present

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 01 Sep 2025 20:05:09 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289232

--- Comment #10 from Konstantin Belousov <kib@FreeBSD.org> ---
> The flag bits from the status word are modified before the signal handler is
> called to only reflect the meaning of the si_code.
Where do you get this idea?

The FPU state is saved and provided to the signal handler in unaltered state.
We do not clear any status bits.

There are manipulations to the fetched status word to calculate index for
fpetable to return si_code, which is what the comment explains.

-- 
You are receiving this mail because:
You are the assignee for the bug.