Reset HWCAP2_AFP bits in FPCR for default fenv.

Tejas Belagod Tejas.Belagod@arm.com
Wed Jun 29 09:34:33 GMT 2022


Hi,

The AFP feature (Alternate floating-point behavior) was added in Armv8.7-A and
introduced new FPCR bits.

Currently, HWCAP2_AFP bits (bit 0, 1, 2) in FPCR are preserved when fenv is
set to default environment.  This is a deviation from standard behavior.
Clear these bits when setting the fenv to default.

There is no libc API to modify the new FPCR bits.  Restoring those bits matters
if the user changed them directly.

OK for master?

Thanks,
Tejas.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: afp.txt
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20220629/a1d28565/attachment.txt>


More information about the Libc-alpha mailing list