OpenGrok
Cross Reference: t_fenv.c
xref
: /
src
/
tests
/
lib
/
libm
/
t_fenv.c
Home
|
History
|
Annotate
|
Download
|
only in
libm
History log of
/src/tests/lib/libm/t_fenv.c
Revision
Date
Author
Comments
1.18
14-May-2024
riastradh
t_fpsetmask, t_fenv: Skip fp exception trap tests on RISC-V.
No architectural support for fp exception traps.
While here, make the macros behave a little better as C statements.
1.17
12-May-2024
riastradh
tests/lib/libm/t_fenv: Work around PR 58253.
1.16
18-Mar-2024
martin
The fetestexcept_trap test case only makes sense on FPUs that implement
exceptions.
1.15
20-Feb-2024
riastradh
fenv(3): Fix fetestexcept to avoid side effects on trap state.
PR port-amd64/57949
1.14
19-Feb-2024
riastradh
fenv(3): Add test for PR port-amd64/57949.
1.13
06-Nov-2023
riastradh
t_fenv: Factor checks out of switch in checkrounding.
No functional change intended, just tidies up a bit.
PR port-mips/57680
XXX pullup-10
1.12
06-Nov-2023
riastradh
t_fenv: Use volatile intermediate to force rounding to double.
See comment for details about why this is necessary.
Should fix these tests on i386 (and perhaps m68k too).
PR port-mips/57680
XXX pullup-10
1.11
05-Nov-2023
riastradh
t_fenv: Improve diagnostics when rounding mode tests fail.
Print the correct input, and print the rounding mode for clarity so
you don't have to cross-reference it by line number.
PR port-mips/57680
XXX pullup-10
1.10
05-Nov-2023
riastradh
t_fenv: Add #pragma STDC FENV_ACCESS ON and verify FLT_RADIX is 2.
Except gcc doesn't implement this pragma, so make it conditional.
And clang only supports it on some architectures, so just leave it
out for now with a comment about why.
PR port-mips/57680
XXX pullup-10
1.9
05-Nov-2023
riastradh
t_fenv: Verify rounding mode takes effect.
At least for addition operations, anyway.
Somewhat redundant with the test t_fe_round added by maya@ but this
gives two minimal pairs to easily diagnose exactly what the rounding
mode is when the wrong one was selected.
PR port-mips/57680
XXX pullup-10
1.8
05-Nov-2023
riastradh
t_fenv: Check FLT_ROUNDS whenever we touch the rounding mode.
PR port-mips/57680
XXX pullup-10
1.7
05-Nov-2023
riastradh
t_fenv: Print wrong values if tests fail.
XXX pullup-10
1.6
25-Apr-2019
kamil
branches: 1.6.2; 1.6.10;
Fix typo in 'exceptions'
1.5
30-Jan-2019
martin
Clean up terminology: modern arm CPUs do properly implement IEEE 754
floating point exceptions - but some (actually all currently know ones)
do not implement sending traps when these exceptions are raised.
Pointed out by Peter Maydell.
1.4
23-Jan-2019
martin
There are aarch64 Cortex cpus that do not trap on some floating point
exceptions - so apply the arm handling for aarch64 as well.
1.3
22-Dec-2015
christos
branches: 1.3.8; 1.3.14; 1.3.16;
put have fenv stuff elsewhere.
1.2
29-Dec-2014
martin
Skip rounding mode tests on ARM FPUs that do not allow configuration of them.
1.1
21-Dec-2014
martin
Add a test program for basic fenv.h rounding mode/exception mask testing.
1.3.16.1
10-Jun-2019
christos
Sync with HEAD
1.3.14.1
26-Jan-2019
pgoyette
Sync with HEAD
1.3.8.1
23-Feb-2024
martin
Pull up following revision(s) (requested by riastradh in ticket #1937):
tests/lib/libm/t_fenv.c: revision 1.14
tests/lib/libm/t_fenv.c: revision 1.15
lib/libm/arch/x86_64/fenv.c: revision 1.11
fenv(3): Add test for PR port-amd64/57949.
fenv(3): Fix fetestexcept to avoid side effects on trap state.
PR port-amd64/57949
1.6.10.2
03-Sep-2024
martin
Pull up following revision(s) (requested by rin in ticket #816):
tests/lib/libm/t_fenv.c: revision 1.16
The fetestexcept_trap test case only makes sense on FPUs that implement
exceptions.
1.6.10.1
23-Feb-2024
martin
Pull up following revision(s) (requested by riastradh in ticket #603):
tests/lib/libm/t_fenv.c: revision 1.14
tests/lib/libm/t_fenv.c: revision 1.15
lib/libm/arch/x86_64/fenv.c: revision 1.11
fenv(3): Add test for PR port-amd64/57949.
fenv(3): Fix fetestexcept to avoid side effects on trap state.
PR port-amd64/57949
1.6.2.1
23-Feb-2024
martin
Pull up following revision(s) (requested by riastradh in ticket #1801):
tests/lib/libm/t_fenv.c: revision 1.14
tests/lib/libm/t_fenv.c: revision 1.15
lib/libm/arch/x86_64/fenv.c: revision 1.11
fenv(3): Add test for PR port-amd64/57949.
fenv(3): Fix fetestexcept to avoid side effects on trap state.
PR port-amd64/57949
Indexes created Thu Oct 02 14:10:14 GMT 2025