From 495ded2c8c1eb8c0ac4b54add2dd397852e19cba Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Thu, 28 Feb 2013 22:38:23 +0100 Subject: [PATCH] Promote a math test for sNaN handling to the top-level. --- ChangeLog | 8 ++++++++ math/Makefile | 2 +- sysdeps/powerpc/fpu/test-powerpc-snan.c => math/test-snan.c | 0 sysdeps/powerpc/fpu/Makefile | 1 - 4 files changed, 9 insertions(+), 2 deletions(-) rename sysdeps/powerpc/fpu/test-powerpc-snan.c => math/test-snan.c (100%) diff --git a/ChangeLog b/ChangeLog index 6f751d4..d445e60 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,13 @@ 2013-03-15 Thomas Schwinge + * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to + math/test-snan.c. + * math/test-snan.c: Renamed from + sysdeps/powerpc/fpu/test-powerpc-snan.c. + * math/Makefile (tests): Add test-snan. + * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add + test-powerpc-snan. + * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with SUFFIX. Initialize qNaN_var with __builtin_nan family of functions. diff --git a/math/Makefile b/math/Makefile index 72cf338..e216dfb 100644 --- a/math/Makefile +++ b/math/Makefile @@ -88,7 +88,7 @@ long-c-yes = $(calls:=l) tests = test-matherr test-fenv atest-exp atest-sincos atest-exp2 basic-test \ test-misc test-fpucw tst-definitions test-tgmath test-tgmath-ret \ bug-nextafter bug-nexttoward bug-tgmath1 test-tgmath-int \ - test-tgmath2 test-powl tst-CMPLX tst-CMPLX2 + test-tgmath2 test-powl tst-CMPLX tst-CMPLX2 test-snan # We do the `long double' tests only if this data type is available and # distinct from `double'. test-longdouble-yes = test-ldouble test-ildoubl diff --git a/sysdeps/powerpc/fpu/test-powerpc-snan.c b/math/test-snan.c similarity index 100% rename from sysdeps/powerpc/fpu/test-powerpc-snan.c rename to math/test-snan.c diff --git a/sysdeps/powerpc/fpu/Makefile b/sysdeps/powerpc/fpu/Makefile index ffacf1a..fda59f9 100644 --- a/sysdeps/powerpc/fpu/Makefile +++ b/sysdeps/powerpc/fpu/Makefile @@ -1,6 +1,5 @@ ifeq ($(subdir),math) libm-support += fenv_const fe_nomask fe_mask t_sqrt -libm-tests += test-powerpc-snan # libm needs ld.so to access dl_hwcap $(objpfx)libm.so: $(elfobjdir)/ld.so -- 2.7.4