]> sourceware.org Git - glibc.git/commitdiff
ldbl-128ibm-compat: Reuse tests for err.h and error.h functions
authorGabriel F. T. Gomes <gabrielftg@linux.ibm.com>
Thu, 11 Jul 2019 14:47:39 +0000 (11:47 -0300)
committerGabriel F. T. Gomes <gabrielftg@linux.ibm.com>
Wed, 27 Nov 2019 18:52:41 +0000 (15:52 -0300)
Commit IDs 9771e6cb5102 and 7597b0c7f711 added tests for the functions
from err.h and error.h that can take long double parameters.
Afterwards, commit ID f0eaf8627654 reused them on architectures that
changed the long double format from the same as double to something else
(i.e.: architectures that imply ldbl-opt).  This patch reuses it again
for IEEE long double on powerpc64le.

Tested for powerpc64le.

Reviewed-by: Paul E. Murphy <murphyp@linux.ibm.com>
sysdeps/ieee754/ldbl-128ibm-compat/Makefile

index a09209a2ddec0f62b387c109cf23b636234eceb1..ed0e2ec09892caa6bac13425a5281b254c701e09 100644 (file)
@@ -177,6 +177,21 @@ endif
 ifeq ($(subdir),misc)
 ldbl-extra-routines += err \
                       error
+
+tests-internal += tst-ibm128-warn tst-ieee128-warn
+tests-internal += tst-ibm128-error tst-ieee128-error
+
+$(objpfx)tst-ibm128-%.c: tst-ldbl-%.c
+       cp $< $@
+
+$(objpfx)tst-ieee128-%.c: tst-ldbl-%.c
+       cp $< $@
+
+CFLAGS-tst-ibm128-warn.c += -mabi=ibmlongdouble -Wno-psabi
+CFLAGS-tst-ibm128-error.c += -mabi=ibmlongdouble -Wno-psabi
+
+CFLAGS-tst-ieee128-warn.c += -mfloat128 -mabi=ieeelongdouble -Wno-psabi
+CFLAGS-tst-ieee128-error.c += -mfloat128 -mabi=ieeelongdouble -Wno-psabi
 endif
 
 # Add IEEE binary128 files as make targets.
This page took 0.038836 seconds and 5 git commands to generate.