Page MenuHomeFreeBSD

lib/msun/tests: Skip fenv_test:masking if exceptions can't be trapped
ClosedPublic

Authored by arichardson on Mar 5 2021, 4:47 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 17, 9:59 PM
Unknown Object (File)
Wed, Apr 17, 7:07 PM
Unknown Object (File)
Feb 2 2024, 2:26 AM
Unknown Object (File)
Jan 18 2024, 11:12 AM
Unknown Object (File)
Dec 20 2023, 12:31 AM
Unknown Object (File)
Dec 12 2023, 6:53 AM
Unknown Object (File)
Dec 7 2023, 7:13 AM
Unknown Object (File)
Dec 1 2023, 2:10 AM
Subscribers

Details

Summary

Some CPUs (e.g. AArch64 QEMU) cannot trap on floating point exceptions and
therefore ignore the writes to the floating point control register inside
feenableexcept(). If no exceptions are enabled after
feenableexcept(FE_ALL_EXCEPT), we can assume that the CPU does not
support exceptions and we can then skip the test.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable