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-issignaling.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-issignaling.inc')
-rw-r--r-- | math/libm-test-issignaling.inc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/math/libm-test-issignaling.inc b/math/libm-test-issignaling.inc index a2bdcef265..80060dcb75 100644 --- a/math/libm-test-issignaling.inc +++ b/math/libm-test-issignaling.inc @@ -39,10 +39,24 @@ static const struct test_f_i_data issignaling_test_data[] = TEST_f_b (issignaling, -snan_value_MACRO, 1, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED), }; +#if HANDLE_PSEUDO_NUMBERS +static const struct test_f_i_data_u issignaling_test_data_u[] = + { + TEST_f_b (issignaling, pseudo_zero, 1, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED), + TEST_f_b (issignaling, pseudo_inf, 1, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED), + TEST_f_b (issignaling, pseudo_qnan, 1, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED), + TEST_f_b (issignaling, pseudo_snan, 1, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED), + TEST_f_b (issignaling, pseudo_unnormal, 1, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED), + }; +#endif + static void issignaling_test (void) { ALL_RM_TEST (issignaling, 1, issignaling_test_data, RUN_TEST_LOOP_f_b_tg, END); +#if HANDLE_PSEUDO_NUMBERS + ALL_RM_TEST (issignaling, 1, issignaling_test_data_u, RUN_TEST_LOOP_f_b_tg_u, END); +#endif } static void |