diff options
author | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2020-12-24 08:14:20 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2020-12-30 10:53:11 +0530 |
commit | 38a033ac85d62c64a2fc81b06c0acffcd4a113f5 (patch) | |
tree | 735d19029a6ebf01bcab56743743528fa476b424 /math/libm-test-isinf.inc | |
parent | 7525c1c71d38c068a33ca964fe8baf67eed7e56f (diff) | |
download | glibc-38a033ac85d62c64a2fc81b06c0acffcd4a113f5.tar.gz glibc-38a033ac85d62c64a2fc81b06c0acffcd4a113f5.tar.xz glibc-38a033ac85d62c64a2fc81b06c0acffcd4a113f5.zip |
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.inc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/math/libm-test-isinf.inc b/math/libm-test-isinf.inc index 6ecbf7ba6e..44cebd2198 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 |