aboutsummaryrefslogtreecommitdiff
path: root/math/libm-test-isinf.inc
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@sourceware.org>2020-12-24 08:14:20 +0530
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2020-12-30 10:53:11 +0530
commit38a033ac85d62c64a2fc81b06c0acffcd4a113f5 (patch)
tree735d19029a6ebf01bcab56743743528fa476b424 /math/libm-test-isinf.inc
parent7525c1c71d38c068a33ca964fe8baf67eed7e56f (diff)
downloadglibc-38a033ac85d62c64a2fc81b06c0acffcd4a113f5.zip
glibc-38a033ac85d62c64a2fc81b06c0acffcd4a113f5.tar.gz
glibc-38a033ac85d62c64a2fc81b06c0acffcd4a113f5.tar.bz2
x86 long double: Add tests for pseudo normal numbers
Add some tests for fpclassify, isnan, isinf and issignaling. Co-authored-by: Adhemerval Zanella <adhemerval.zanella@linaro.org> Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'math/libm-test-isinf.inc')
-rw-r--r--math/libm-test-isinf.inc14
1 files changed, 14 insertions, 0 deletions
diff --git a/math/libm-test-isinf.inc b/math/libm-test-isinf.inc
index 6ecbf7b..44cebd2 100644
--- a/math/libm-test-isinf.inc
+++ b/math/libm-test-isinf.inc
@@ -37,10 +37,24 @@ static const struct test_f_i_data isinf_test_data[] =
TEST_f_b (isinf, -snan_value, 0, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
};
+#if HANDLE_PSEUDO_NUMBERS
+static const struct test_f_i_data_u isinf_test_data_u[] =
+ {
+ TEST_f_b (isinf, pseudo_zero, 0, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
+ TEST_f_b (isinf, pseudo_inf, 0, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
+ TEST_f_b (isinf, pseudo_qnan, 0, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
+ TEST_f_b (isinf, pseudo_snan, 0, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
+ TEST_f_b (isinf, pseudo_unnormal, 0, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED),
+ };
+#endif
+
static void
isinf_test (void)
{
ALL_RM_TEST (isinf, 1, isinf_test_data, RUN_TEST_LOOP_f_b_tg, END);
+#if HANDLE_PSEUDO_NUMBERS
+ ALL_RM_TEST (isinf, 1, isinf_test_data_u, RUN_TEST_LOOP_f_b_tg_u, END);
+#endif
}
static void