about summary refs log tree commit diff
path: root/math/libm-test-driver.c
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@sourceware.org>2021-01-04 17:40:04 +0530
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2021-01-04 20:49:56 +0530
commit8cc1e39a3691a8cba7c6033138531f11d3032385 (patch)
treed4ecb8f953c6c6ec3f081127f9dc0fe9c310d605 /math/libm-test-driver.c
parent252864544afa45feb28f8ef505056f17eccd3073 (diff)
downloadglibc-8cc1e39a3691a8cba7c6033138531f11d3032385.tar.gz
glibc-8cc1e39a3691a8cba7c6033138531f11d3032385.tar.xz
glibc-8cc1e39a3691a8cba7c6033138531f11d3032385.zip
Drop nan-pseudo-number.h usage from tests
Make the tests use TEST_COND_intel96 to decide on whether to build the
unnormal tests instead of the macro in nan-pseudo-number.h and then
drop the header inclusion.  This unbreaks test runs on all
architectures that do not have ldbl-96.

Also drop the HANDLE_PSEUDO_NUMBERS macro since it is not used
anywhere.
Diffstat (limited to 'math/libm-test-driver.c')
-rw-r--r--math/libm-test-driver.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/math/libm-test-driver.c b/math/libm-test-driver.c
index 87f2793061..f7c0861c39 100644
--- a/math/libm-test-driver.c
+++ b/math/libm-test-driver.c
@@ -19,7 +19,6 @@
 #include "libm-test-support.h"
 
 #include <math-tests-arch.h>
-#include <nan-pseudo-number.h>
 
 /* Flags set by the including file.  */
 const int flag_test_errno = TEST_ERRNO;
@@ -124,7 +123,7 @@ const char qtype_str[] = TYPE_STR;
 #define snan_value_ld	__builtin_nansl ("")
 
 /* For pseudo-normal number tests.  */
-#if HANDLE_PSEUDO_NUMBERS
+#if TEST_COND_intel96
 # include <math_ldbl.h>
 #define pseudo_inf { .parts = { 0x00000000, 0x00000000, 0x7fff }}
 #define pseudo_zero { .parts = { 0x00000000, 0x00000000, 0x0100 }}
@@ -328,7 +327,7 @@ struct test_f_i_data
   } rd, rn, rz, ru;
 };
 /* Used for RUN_TEST_LOOP_f_i_tg_u and RUN_TEST_LOOP_f_b_tg_u.  */
-#if HANDLE_PSEUDO_NUMBERS
+#if TEST_COND_intel96
 struct test_f_i_data_u
 {
   const char *arg_str;