HomeFreeBSD

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

Description

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

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.

Reviewed By: dim
Differential Revision: https://reviews.freebsd.org/D29095

Details

Provenance
arichardsonAuthored on Mar 22 2021, 11:53 AM
Reviewer
dim
Differential Revision
D29095: lib/msun/tests: Skip fenv_test:masking if exceptions can't be trapped
Parents
rG87d65c747a43: lib/msun: Allow building tests with WARNS=6
Branches
Unknown
Tags
Unknown