[PATCH] i386: Simplify powl computation for small integral y [BZ #33586]
Sunil Pandey
skpgkp2@gmail.com
Wed Nov 5 12:49:21 GMT 2025
On Sat, Nov 1, 2025 at 8:13 PM H.J. Lu <hjl.tools@gmail.com> wrote:
> On i386, tests added by
>
> commit 1b657c53c21a100082b0855392e4cb40c9c43a87
> Author: Siddhesh Poyarekar <siddhesh@sourceware.org>
> Date: Fri Oct 10 20:21:13 2025 -0400
>
> Simplify powl computation for small integral y [BZ #33411]
>
> exposed the same bug in i386 e_powl.S:
>
> FAIL: math/test-float64x-pow
> original exit status 1
> testing _Float64x (without inline functions)
> Failure: pow (0x1p+8192, 0x1p+0): Exception "Overflow" set
> Failure: pow_downward (0x1p+8192, 0x1p+0): Exception "Overflow" set
> Failure: pow_towardzero (0x1p+8192, 0x1p+0): Exception "Overflow" set
> Failure: pow_upward (0x1p+8192, 0x1p+0): Exception "Overflow" set
>
> FAIL: math/test-ldouble-pow
> original exit status 1
> testing long double (without inline functions)
> Failure: pow (0x1p+8192, 0x1p+0): Exception "Overflow" set
> Failure: pow_downward (0x1p+8192, 0x1p+0): Exception "Overflow" set
> Failure: pow_towardzero (0x1p+8192, 0x1p+0): Exception "Overflow" set
> Failure: pow_upward (0x1p+8192, 0x1p+0): Exception "Overflow" set
>
> Port x86-64 e_powl.S fix to i386 e_powl.S. This fixes BZ #33586.
>
> OK for master?
>
LGTM
Reviewed-by: Sunil K Pandey <skpgkp2@gmail.com>
Thanks,
Sunil
> Thanks.
>
> --
> H.J.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20251105/1f867742/attachment.htm>
More information about the Libc-alpha
mailing list