| b8beded3 | 19-Apr-2021 |
Alex Richardson <[email protected]> |
Allow lib/msun/logarithm_test to pass on ld128 platforms
For some reason the ld128 log1pl() implementation is less accurate than logl(), but does at least guarantee precision >= the ld80 implementat
Allow lib/msun/logarithm_test to pass on ld128 platforms
For some reason the ld128 log1pl() implementation is less accurate than logl(), but does at least guarantee precision >= the ld80 implementation. Mark log1p_accuracy_tests as XFAIL for ld128 and increase the log1p tolerance to the ld80 equivalent in accuracy_tests to avoid losing test coverage for the other functions.
PR: 253984 Reviewed By: ngie, dim Differential Revision: https://reviews.freebsd.org/D29039
(cherry picked from commit 1ad83445fc0f1d2aecd32635f4ae713a057aa091)
show more ...
|
| d08c4d80 | 15-Apr-2021 |
Alex Richardson <[email protected]> |
Remove XFAIL from tests/lib/msun/lround_test:main
This test no longer fails after 3b00222f156dca5700c839d73e36daf479fa640c.
PR: 205451 MFC after: 1 week
(cherry picked from commit 062293c2c471c6a
Remove XFAIL from tests/lib/msun/lround_test:main
This test no longer fails after 3b00222f156dca5700c839d73e36daf479fa640c.
PR: 205451 MFC after: 1 week
(cherry picked from commit 062293c2c471c6affb46f0ba44e7b7ee5b77b591)
show more ...
|
| 959cda8e | 15-Apr-2021 |
Alex Richardson <[email protected]> |
Remove amd64 XFAIL from tests/lib/msun/fma_test:infinities
This test no longer fails after 3b00222f156dca5700c839d73e36daf479fa640c.
PR: 205448 MFC after: 1 week
(cherry picked from commit 3f01d8
Remove amd64 XFAIL from tests/lib/msun/fma_test:infinities
This test no longer fails after 3b00222f156dca5700c839d73e36daf479fa640c.
PR: 205448 MFC after: 1 week
(cherry picked from commit 3f01d8c2fe5d31866258c9872f35030d98828e48)
show more ...
|
| a6898ea0 | 15-Apr-2021 |
Alex Richardson <[email protected]> |
lib/msun: Exclude ignored-pragmas from -Werror
This avoids build failures due to the clang 12 warning: '#pragma FENV_ACCESS' is not supported on this target - ignored
Clang 12 currently emits t
lib/msun: Exclude ignored-pragmas from -Werror
This avoids build failures due to the clang 12 warning: '#pragma FENV_ACCESS' is not supported on this target - ignored
Clang 12 currently emits this warning for all non-x86 architectures. While this can result in incorrect code generation (e.g. on AArch64 some exceptions are not raised as expected), this is a pre-existing issue and we should not fail the build due to this warning.
Reviewed By: dim, emaste MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D29743
(cherry picked from commit 168234fa67c38f898b784b3265dd77ace0b0a2f9)
show more ...
|
| d72052dd | 22-Mar-2021 |
Alex Richardson <[email protected]> |
lib/msun/tests: Re-enable csqrt_test on AArch64
The LLVM bug was fixed a long time ago and with D29076 this test actually passes now.
Reviewed By: andrew Differential Revision: https://reviews.free
lib/msun/tests: Re-enable csqrt_test on AArch64
The LLVM bug was fixed a long time ago and with D29076 this test actually passes now.
Reviewed By: andrew Differential Revision: https://reviews.freebsd.org/D29092
(cherry picked from commit dbb2d6f5e1231a9f6b49efdc720ce97b520da2ba)
show more ...
|
| 47950e42 | 22-Mar-2021 |
Alex Richardson <[email protected]> |
Fix lib/msun/tests/csqrt_test on platforms with 128-bit long double
If long double has more than 64 mantissa bits, using uint64_t to hold the mantissa bits will truncate the value and result in test
Fix lib/msun/tests/csqrt_test on platforms with 128-bit long double
If long double has more than 64 mantissa bits, using uint64_t to hold the mantissa bits will truncate the value and result in test failures. To fix this problem use __uint128_t since all platforms that have __LDBL_MANT_DIG__ > 64 also have compiler support for 128-bit integers.
Reviewed By: rlibby Differential Revision: https://reviews.freebsd.org/D29076
(cherry picked from commit ce88eb476b86cac63cef7466bd71f14b611ab03a)
show more ...
|
| 549e8b82 | 22-Mar-2021 |
Alex Richardson <[email protected]> |
Fix unused functions in invtrig_test.c
I only tested the WARNS=6 change on AArch64 and AMD64, but this file has unused functions for architectures with LDBL_PREC == 53.
While touching this file cha
Fix unused functions in invtrig_test.c
I only tested the WARNS=6 change on AArch64 and AMD64, but this file has unused functions for architectures with LDBL_PREC == 53.
While touching this file change the LDBL_PREC == 53 checks to i386 checks. The long double tests should only be disabled for i386 (due to the rather odd rounding mode that it uses) not all architectures where long double is the same as double.
PR: 205449 Fixes: 87d65c747a43 ("lib/msun: Allow building tests with WARNS=6") Reported by: Jenkins
(cherry picked from commit 7f5693d05329ab976287b8d449e694e7a0f99e88)
show more ...
|
| 78fa908b | 04-Mar-2021 |
Alex Richardson <[email protected]> |
lib/msun/tests: Add more debug output to fenv_test.c
Output a hex dump of the current fenv and the expected value to allow comparing them without having to resort to interactive use of GDB.
(cherry
lib/msun/tests: Add more debug output to fenv_test.c
Output a hex dump of the current fenv and the expected value to allow comparing them without having to resort to interactive use of GDB.
(cherry picked from commit 6ccdee8ab576577224fb9e4baed05bd0efe933fd)
show more ...
|
| 1f7e87f2 | 22-Mar-2021 |
Alex Richardson <[email protected]> |
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 con
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
(cherry picked from commit 2b9dbcd390dfbd573d3403360a36c5ade9815266)
show more ...
|
| 5ba5ebf9 | 22-Mar-2021 |
Alex Richardson <[email protected]> |
Remove XFAILs from fmaxmin test
These appears to have been resolved by compiling the test with -fno-builtin and/or using a newer compiler.
PR: 208703 Reviewed By: ngie Differential Revision: https
Remove XFAILs from fmaxmin test
These appears to have been resolved by compiling the test with -fno-builtin and/or using a newer compiler.
PR: 208703 Reviewed By: ngie Differential Revision: https://reviews.freebsd.org/D28884
(cherry picked from commit b358534ab1a953fac5830012751232e2f0807cc0)
show more ...
|
| 04b1a333 | 23-Feb-2021 |
Alex Richardson <[email protected]> |
lib/msun/ctrig_test: Print the mismatched values on failure
This test fails on aarch64 but debugging it is difficult without the results being printed.
Now the failing AArch64 test prints: root@fre
lib/msun/ctrig_test: Print the mismatched values on failure
This test fails on aarch64 but debugging it is difficult without the results being printed.
Now the failing AArch64 test prints: root@freebsd-aarch64:/nfsroot/usr/tests/lib/msun # kyua debug ctrig_test:test_nan_inputs *** Check failed: /local/scratch/alr48/cheri/freebsd/lib/msun/tests/ctrig_test.c:211: (ctan)(_d) (0 + -1 I) != expected (-0 + -1 I) *** Check failed: /local/scratch/alr48/cheri/freebsd/lib/msun/tests/ctrig_test.c:211: ctan fetestexcept((0x00000002 | 0x00000010 | 0x00000001 | 0x00000004 | 0x00000008)) (0x10) != 0 *** Check failed: /local/scratch/alr48/cheri/freebsd/lib/msun/tests/ctrig_test.c:211: (ctan)(_d) (0 + 1 I) != expected (-0 + 1 I) *** Check failed: /local/scratch/alr48/cheri/freebsd/lib/msun/tests/ctrig_test.c:211: ctan fetestexcept((0x00000002 | 0x00000010 | 0x00000001 | 0x00000004 | 0x00000008)) (0x10) != 0 *** Check failed: /local/scratch/alr48/cheri/freebsd/lib/msun/tests/ctrig_test.c:211: (ctanf)(_d) (0 + -1 I) != expected (-0 + -1 I) *** Check failed: /local/scratch/alr48/cheri/freebsd/lib/msun/tests/ctrig_test.c:211: ctanf fetestexcept((0x00000002 | 0x00000010 | 0x00000001 | 0x00000004 | 0x00000008)) (0x10) != 0 *** Check failed: /local/scratch/alr48/cheri/freebsd/lib/msun/tests/ctrig_test.c:211: (ctanf)(_d) (0 + 1 I) != expected (-0 + 1 I) *** Check failed: /local/scratch/alr48/cheri/freebsd/lib/msun/tests/ctrig_test.c:211: ctanf fetestexcept((0x00000002 | 0x00000010 | 0x00000001 | 0x00000004 | 0x00000008)) (0x10) != 0 *** Check failed: /local/scratch/alr48/cheri/freebsd/lib/msun/tests/ctrig_test.c:217: (ctanh)(_d) (1 + 0 I) != expected (1 + -0 I) *** Check failed: /local/scratch/alr48/cheri/freebsd/lib/msun/tests/ctrig_test.c:217: ctanh fetestexcept((0x00000002 | 0x00000010 | 0x00000001 | 0x00000004 | 0x00000008)) (0x10) != 0 *** Check failed: /local/scratch/alr48/cheri/freebsd/lib/msun/tests/ctrig_test.c:217: (ctanhf)(_d) (1 + 0 I) != expected (1 + -0 I) *** Check failed: /local/scratch/alr48/cheri/freebsd/lib/msun/tests/ctrig_test.c:217: ctanhf fetestexcept((0x00000002 | 0x00000010 | 0x00000001 | 0x00000004 | 0x00000008)) (0x10) != 0 *** Check failed: /local/scratch/alr48/cheri/freebsd/lib/msun/tests/ctrig_test.c:217: (ctanh)(_d) (-1 + 0 I) != expected (-1 + -0 I) *** Check failed: /local/scratch/alr48/cheri/freebsd/lib/msun/tests/ctrig_test.c:217: ctanh fetestexcept((0x00000002 | 0x00000010 | 0x00000001 | 0x00000004 | 0x00000008)) (0x10) != 0 *** Check failed: /local/scratch/alr48/cheri/freebsd/lib/msun/tests/ctrig_test.c:217: (ctanhf)(_d) (-1 + 0 I) != expected (-1 + -0 I) *** Check failed: /local/scratch/alr48/cheri/freebsd/lib/msun/tests/ctrig_test.c:217: ctanhf fetestexcept((0x00000002 | 0x00000010 | 0x00000001 | 0x00000004 | 0x00000008)) (0x10) != 0 ctrig_test:test_nan_inputs -> failed: 16 checks failed; see output for more details
Reviewed By: ngie Differential Revision: https://reviews.freebsd.org/D28788
(cherry picked from commit f3f7b0dc065ce30f29b221788c58079d78931a77)
show more ...
|