diff options
author | Gabriel F. T. Gomes <gabrielftg@linux.ibm.com> | 2019-07-11 11:47:56 -0300 |
---|---|---|
committer | Gabriel F. T. Gomes <gabrielftg@linux.ibm.com> | 2019-12-03 13:30:42 -0300 |
commit | 80a19b003e2836abda4ad96721a40c6f7a32ab4c (patch) | |
tree | 3f7502129eb94a70f58f443946fd6d1ca0c0ffb2 /sysdeps/ieee754/ldbl-128ibm-compat/Makefile | |
parent | 66fa30828a1eb3d96cb92c080fa0b7376bda9b11 (diff) | |
download | glibc-80a19b003e2836abda4ad96721a40c6f7a32ab4c.tar.gz glibc-80a19b003e2836abda4ad96721a40c6f7a32ab4c.tar.xz glibc-80a19b003e2836abda4ad96721a40c6f7a32ab4c.zip |
ldbl-128ibm-compat: Add tests for strfmon and strfmon_l
This patch adds elementary tests to check that strfmon and strfmon_l correctly evaluate long double values with IBM Extended Precision and IEEE binary128 format. Tested for powerpc64le. Reviewed-by: Paul E. Murphy <murphyp@linux.ibm.com>
Diffstat (limited to 'sysdeps/ieee754/ldbl-128ibm-compat/Makefile')
-rw-r--r-- | sysdeps/ieee754/ldbl-128ibm-compat/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sysdeps/ieee754/ldbl-128ibm-compat/Makefile b/sysdeps/ieee754/ldbl-128ibm-compat/Makefile index 6ec0739b4c..c8a4d084dc 100644 --- a/sysdeps/ieee754/ldbl-128ibm-compat/Makefile +++ b/sysdeps/ieee754/ldbl-128ibm-compat/Makefile @@ -224,6 +224,12 @@ ldbl-extra-routines += strfmon strfmon_l # Also, guarantee that they are compiled in IBM long double mode. CFLAGS-strfmon.c += -mfloat128 -mabi=ibmlongdouble CFLAGS-strfmon_l.c += -mfloat128 -mabi=ibmlongdouble + +tests-internal += test-strfmon-ibm128 test-strfmon-ieee128 +CFLAGS-test-strfmon-ibm128.c += -mabi=ibmlongdouble -Wno-psabi +CFLAGS-test-strfmon-ieee128.c += -mfloat128 -mabi=ieeelongdouble -Wno-psabi +$(objpfx)tst-strfmon-ibm128.out: $(gen-locales) +$(objpfx)tst-strfmon-ieee128.out: $(gen-locales) endif # Add IEEE binary128 files as make targets. |