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)
Tue, May 12, 6:40 PM
Unknown Object (File)
Tue, May 12, 6:40 PM
Unknown Object (File)
Mon, May 11, 10:31 PM
Unknown Object (File)
Mon, May 11, 9:40 PM
Unknown Object (File)
Mon, May 11, 9:03 PM
Unknown Object (File)
Fri, Apr 17, 3:43 AM
Unknown Object (File)
Tue, Apr 14, 4:56 AM
Unknown Object (File)
Apr 12 2026, 1:10 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