Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 01 Sep 2025 17:31:13 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 289232] i386 (x87) signal incorrectly reports FPE_FLTRES over FPE_FLTUND when both are present
Message-ID:  <bug-289232-227-r85o2P5eXk@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-289232-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

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.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-289232-227-r85o2P5eXk>