Re: [PATCH] math: Fix unsupported check in test-narrowing-trap

"Andreas K. Huettel" <[email protected]>
Newsgroups gmane.comp.lib.glibc.alpha
Organization Gentoo Linux
Message-ID <[email protected]>
Am Freitag, 17. Juli 2026, 00:39:12 Japanische Normalzeit schrieb Adhemerval Zanella Netto:
> 
> On 16/07/26 12:25, Yury Khrustalev wrote:
> > On Thu, Jul 16, 2026 at 12:13:58PM -0300, Adhemerval Zanella Netto wrote:
> >>
> >>
> >> On 16/07/26 12:03, Yury Khrustalev wrote:
> >>> On Thu, Jul 16, 2026 at 12:00:16PM -0300, Adhemerval Zanella Netto wrote:
> >>>>
> >>>> On 16/07/26 11:01, Yury Khrustalev wrote:
> >>>>> ---
> >>>>>
> >>>>> Base commit: af51ed63d0
> >>>>>
> >>>>> Test change only. Passes regression on aarch64-linux-gnu,
> >>>>> x86_64-linux-gnu, i686-linux-gnu and build-tested for
> >>>>> several targets with build-many-glibcs.py.
> >>>>>
> >>>>> Andreas, I suppose we could merge this test fix now? It's OK if not.

Sure. Test improvement, that's fine. Thank you!

> >>>>
> >>>> Is this fix for loongarch? If so I think you can check with cfarm401
> >>>> machine [1] (for some reason cfarm400 is not accepting my keys).
> >>>>
> >>>> [1] https://portal.cfarm.net/machines/list/
> >>>
> >>> The fix is for aarch64 actually. Some hosts support these tests and
> >>> in this case the 'math/test-narrowing-trap' test was incorrectly
> >>> reported as UNSUPPORTED.
> >> Right, so maybe add some context on the commit message. Another option
> >> would to rewrite EXCEPTION_ENABLE_SUPPORTED on aarch64/arm to actually
> >> test whether exceptions are support (since on ARM seems to have the
> >> concept of being 'optional').
> > 
> > The fix is not aarch64-specific though. All other tests that use this
> > functionality use return value of feenableexcept before they decide if
> > the test is supported or not. In the test-narrowing-trap test, however,
> > the order of checks was wrong. As a side-effect of this I see spurious
> > UNSUPPORTED math test on some aarch64 hosts. I've asked the authors of
> > the these tests to fix it, but they haven't, hence this patch.
> Fair enough, the patch looks good then.
> 


-- 
PD Dr. Andreas K. Hüttel
[email protected]
Gentoo Linux developer 
(council, comrel, toolchain, base-system, perl, libreoffice)
https://wiki.gentoo.org/wiki/User:Dilfridge
signature.asc (application/pgp-signature, 870 B)
-----BEGIN PGP SIGNATURE-----

iQJPBAABCAA5FiEE/Rnm0xsZLuTcY+rT3CsWIV7VQSoFAmpaO48bFIAAAAAABAAO
bWFudTIsMi41KzEuMTIsMiwyAAoJENwrFiFe1UEqEO8P/AgiA8UTmg159jzarjlG
wF74dMuXv4Rh1fdtP21n2ZJyatMbXnQv3jgTOk3hkz+DbCXSg0tECJVwrwaQcj/p
6mkANWVNSjD20IYJcFXyJH3mYE/uF3ZRVLJYAZqgwAPXWuYo5k23lQzJl2DK3ive
n/opC0WnUshZE8GEbO1QO8Ia85Ur514fomtRp1Pa+lnsHOc4iRyRqWBluN5SNCU9
LJnSVEFPR3MQmDQAF3dpR4X+K/qZ2cuXMUfQYB15B68eCuxL2Z6IvpiqsgqE82CF
v3pAVVnT6WaZkMFKLQIN1dJtXkBmnkzIeaX4q1/WcDUof7LTH9qhpVnbNrkykBdX
K7EqGrhiHXuX8z9j2MuC63xZi+Pq5afpG/XNQCK5uC5wRtSgs/NyUuCk6yxBAzur
OC1NyFyhkD3E0PBlrOSDLY3Z06fFwvB1YcHgZte1H4Pxt3tYhzPhPuMeKCxZr+il
8c4rrhh++SaIt723XhfsHTExG9Tn1T60WLy2skaJ5M1NWpOJqHHG6/VMPwPdCw9y
RCs/C+uUaJccJUDoEHd5RIaWU4NZcDgIvy19ucHJ0I4jCVSpDccTIjFJvaXLzfXy
pb8IdbZT1tVosveSJaL5X2kndzVYdYWPlAct4mjtvZwG2LueIvKP85gM1FsL9fSR
ftyoctHf9aIP1+mszw/ob4cK
=+jyP
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.