1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

ldbl-128ibm-compat: Add tests for IBM long double functions

This patch creates test-ibm128* tests from the long double function tests.
In order to explicitly test IBM long double functions -mabi=ibmlongdouble is
added to CFLAGS.

Likewise, update the test headers to correct choose ULPs when redirects
are enabled.

Co-authored-by: Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
Co-authored-by: Paul E. Murphy  <murphyp@linux.vnet.ibm.com>
This commit is contained in:
Rajalakshmi Srinivasaraghavan
2018-05-28 18:56:35 -03:00
committed by Paul E. Murphy
parent 1c252f0e7e
commit 0059122aa0
4 changed files with 35 additions and 1 deletions

View File

@ -27,6 +27,13 @@
# define TYPE_STR "double"
# define ULP_IDX ULP_DBL
# define ULP_I_IDX ULP_I_DBL
/* On architectures which redirect long double to _Float128 ABI, we must
choose the float128 ulps. Similarly, on such architectures, the ABI
used may be dependent on how the compiler was invoked. */
#elif __LONG_DOUBLE_USES_FLOAT128 == 1
# define TYPE_STR "float128"
# define ULP_IDX ULP_FLT128
# define ULP_I_IDX ULP_I_FLT128
#else
# define TYPE_STR "ldouble"
# define ULP_IDX ULP_LDBL