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)
Nov 15 2024, 3:10 PM
Unknown Object (File)
Oct 14 2024, 4:13 PM
Unknown Object (File)
Sep 29 2024, 9:31 AM
Unknown Object (File)
Sep 27 2024, 9:33 AM
Unknown Object (File)
Sep 27 2024, 7:35 AM
Unknown Object (File)
Sep 21 2024, 5:01 PM
Unknown Object (File)
Sep 21 2024, 5:59 AM
Unknown Object (File)
Sep 19 2024, 6:56 PM
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