public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/gabriel/powerpc-ieee128-printscan] ldbl-128ibm-compat: Reuse tests for err.h and error.h functions
@ 2019-10-25 15:33 Gabriel F.T.Gomes
  0 siblings, 0 replies; 2+ messages in thread
From: Gabriel F.T.Gomes @ 2019-10-25 15:33 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=c9a8cf4ad780225f20a0010e411cdd6bacd19b30

commit c9a8cf4ad780225f20a0010e411cdd6bacd19b30
Author: Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
Date:   Thu Jul 11 11:47:39 2019 -0300

    ldbl-128ibm-compat: Reuse tests for err.h and error.h functions
    
    No changes since v1.
    
    -- 8< --
    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.

Diff:
---
 sysdeps/ieee754/ldbl-128ibm-compat/Makefile | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/sysdeps/ieee754/ldbl-128ibm-compat/Makefile b/sysdeps/ieee754/ldbl-128ibm-compat/Makefile
index a09209a..ed0e2ec 100644
--- a/sysdeps/ieee754/ldbl-128ibm-compat/Makefile
+++ b/sysdeps/ieee754/ldbl-128ibm-compat/Makefile
@@ -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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [glibc/gabriel/powerpc-ieee128-printscan] ldbl-128ibm-compat: Reuse tests for err.h and error.h functions
@ 2019-10-15 19:02 Gabriel F.T.Gomes
  0 siblings, 0 replies; 2+ messages in thread
From: Gabriel F.T.Gomes @ 2019-10-15 19:02 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=71beb187bc2d5808604542b9f1d22fff154f7e5f

commit 71beb187bc2d5808604542b9f1d22fff154f7e5f
Author: Gabriel F. T. Gomes <gabrielftg@linux.ibm.com>
Date:   Thu Jul 11 11:47:39 2019 -0300

    ldbl-128ibm-compat: Reuse tests for err.h and error.h functions
    
    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.

Diff:
---
 sysdeps/ieee754/ldbl-128ibm-compat/Makefile | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/sysdeps/ieee754/ldbl-128ibm-compat/Makefile b/sysdeps/ieee754/ldbl-128ibm-compat/Makefile
index a09209a..ed0e2ec 100644
--- a/sysdeps/ieee754/ldbl-128ibm-compat/Makefile
+++ b/sysdeps/ieee754/ldbl-128ibm-compat/Makefile
@@ -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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-10-25 15:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-25 15:33 [glibc/gabriel/powerpc-ieee128-printscan] ldbl-128ibm-compat: Reuse tests for err.h and error.h functions Gabriel F.T.Gomes
  -- strict thread matches above, loose matches on Subject: below --
2019-10-15 19:02 Gabriel F.T.Gomes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).