public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/gabriel/powerpc-ieee128-printscan] ldbl-128ibm-compat: Add tests for err.h and error.h functions
@ 2019-08-09 18:36 Gabriel F.T.Gomes
  0 siblings, 0 replies; only message in thread
From: Gabriel F.T.Gomes @ 2019-08-09 18:36 UTC (permalink / raw)
  To: glibc-cvs

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

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

    ldbl-128ibm-compat: Add tests for err.h and error.h functions
    
    Add tests for the functions from err.h and error.h that can take
    positional long double parameters.
    
    Tested for powerpc64le.
    
    	* sysdeps/ieee754/ldbl-128ibm-compat/Makefile
    	(tests-internal): Add tst-ibm128-warn, tst-ieee128-warn,
    	tst-ibm128-error, tst-ieee128-error.
    	($(objpfx)tst-ibm128-error.c, $(objpfx)tst-ieee128-error.c):
    	New rules.
    	(CFLAGS-tst-ibm128-warn.c): New variable.
    	(CFLAGS-tst-ibm128-error.c): Likewise.
    	(CFLAGS-tst-ieee128-warn.c): Likewise.
    	(CFLAGS-tst-ieee128-error.c): Likewise.

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 6235d0c..c3ccb9a 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] only message in thread

only message in thread, other threads:[~2019-08-09 18:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-09 18:36 [glibc/gabriel/powerpc-ieee128-printscan] ldbl-128ibm-compat: Add tests for err.h and error.h functions 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).