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, Aug 5, 4:10 AM
Unknown Object (File)
Wed, Aug 5, 3:09 AM
Unknown Object (File)
Tue, Aug 4, 8:49 AM
Unknown Object (File)
Thu, Jul 30, 6:46 PM
Unknown Object (File)
Sun, Jul 26, 7:20 PM
Unknown Object (File)
Tue, Jul 21, 2:05 AM
Unknown Object (File)
Mon, Jul 20, 1:20 AM
Unknown Object (File)
Wed, Jul 15, 1:03 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