[Bug math/33623] [ldbl-128ibm] roundl, ceill, truncl, floorl bad sign of zero results
cvs-commit at gcc dot gnu.org
sourceware-bugzilla@sourceware.org
Sat Jan 24 11:00:58 GMT 2026
https://sourceware.org/bugzilla/show_bug.cgi?id=33623
--- Comment #5 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The release/2.43/master branch has been updated by Aurelien Jarno
<aurel32@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=022abaeacbc85d8409bad22375b16a8c07d3ae39
commit 022abaeacbc85d8409bad22375b16a8c07d3ae39
Author: Aurelien Jarno <aurelien@aurel32.net>
Date: Tue Jan 20 18:25:08 2026 +0100
Fix ldbl-128ibm ceill, floorl, roundl and truncl zero-sign handling
When the result of ceill, floorl, roundl and truncl is zero, the sign of
the result must match the sign of the input. For the IBM 128-bit long
double format, the sign is determined by the high part.
Ensure the correct sign when the high part is the result of
computations, by copying the sign from the input high part to the output
high part. On POWER, this conveniently maps to the fcpsgn instruction.
In addition add test for the values provided in BZ #33623, and for the
opposite value when the result is 0.
Fixes: BZ #33623
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
(cherry picked from commit 6f4b28b20aa9161aeb42a7f34f4d3b96194e5666)
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list