Hash :
57b9775f
Author :
Date :
2023-10-14T20:43:47
totalorder* tests: Test also the signalling NaNs. * tests/test-totalorder.h: Include signed-snan.h. (main): Change the array initializer to contain memory_* objects rather than floating-point numbers. This is needed for i386 and x86_64 CPUs. * tests/test-totalorder.c (TOTALORDER_TYPE): Use memory_double. (TOTALORDER_HAVE_SNAN, TOTALORDER_POSITIVE_SNAN, TOTALORDER_NEGATIVE_SNAN): New macros. * tests/test-totalorderf.c (TOTALORDER_TYPE): Use memory_float. (TOTALORDER_HAVE_SNAN, TOTALORDER_POSITIVE_SNAN, TOTALORDER_NEGATIVE_SNAN): New macros. * tests/test-totalorderl.c (TOTALORDER_TYPE): Use memory_long_double. (TOTALORDER_HAVE_SNAN, TOTALORDER_POSITIVE_SNAN, TOTALORDER_NEGATIVE_SNAN): New macros. * modules/totalorder-tests (Depends-on): Add signed-snan. * modules/totalorderf-tests (Depends-on): Likewise. * modules/totalorderl-tests (Depends-on): Likewise.
Files:
tests/test-totalorder.c
tests/test-totalorder.h
tests/minus-zero.h
tests/infinity.h
tests/signature.h
tests/macros.h
Depends-on:
signed-nan
signed-snan
configure.ac:
Makefile.am:
TESTS += test-totalorder
check_PROGRAMS += test-totalorder
test_totalorder_LDADD = $(LDADD) @TOTALORDER_LIBM@