[Bug 289232] i386 (x87) signal incorrectly reports FPE_FLTRES over FPE_FLTUND when both are present
Date: Mon, 01 Sep 2025 17:31:13 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289232
--- Comment #7 from Dave Rivers <riverstdr@gmail.com> ---
Ah - yes - that's because the code I mentioned masks out every flag out of the
fp mask except the one it is reporting... (there are comments to that effect in
the source.)
If you set the mask to just FE_UNDERFLOW, you can see that FPE_FLTUND will be
correctly reported (and the #P bit will be turned off in the fp mask.)
You can test this by commenting out the line:
feenableexcept(FE_UNDERFLOW | FE_INEXACT);
so that the only enabled mask is FE_UNDERFLOW.
- Dave
--
You are receiving this mail because:
You are the assignee for the bug.