[PATCH v2] test/math: fix for MIPS that takes 32/64 suffix into account

Alexey Brodkin Alexey.Brodkin at synopsys.com
Mon Aug 18 07:04:28 UTC 2014


This fixes a breakage for MIPS32/64 introduced in:
http://git.uclibc.org/uClibc/commit/?id=c02bc5763ba9c8f8b464bca89fba28e091ce1ffc

Now ULP_SUFFIX is taken into account when searching for existing
libm-test-ulps-ARCH

Signed-off-by: Alexey Brodkin <abrodkin at synopsys.com>

Cc: Waldemar Brodkorb <wbx at openadk.org>
Cc: Vineet Gupta <vgupta at synopsys.com>
Cc: Anton Kolesov <akolesov at synopsys.com>
Cc: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---

Compared to v1 this patch doesn't modify TARGET_ARCH as requested by
Bernhard

 test/math/Makefile.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/math/Makefile.in b/test/math/Makefile.in
index b495c0b..89bc926 100644
--- a/test/math/Makefile.in
+++ b/test/math/Makefile.in
@@ -31,12 +31,12 @@ PERL := /usr/bin/perl
 MDEPS := $(wildcard test-*.c)
 $(MDEPS): libm-test.c
 
-TARGET_ULP := $(if $(wildcard libm-test-ulps-$(TARGET_ARCH)),$(TARGET_ARCH),generic)
 ULP_SUFFIX :=
 ifeq ($(TARGET_ARCH),mips)
 ULP_SUFFIX:=$(if $(CONFIG_MIPS_ISA_MIPS64R1)$(CONFIG_MIPS_ISA_MIPS64R2),64,32)
 endif
-TARGET_ULP:=$(TARGET_ULP)$(ULP_SUFFIX)
+
+TARGET_ULP := $(if $(wildcard libm-test-ulps-$(TARGET_ARCH)$(ULP_SUFFIX)),$(TARGET_ARCH)$(ULP_SUFFIX),generic)
 
 libm-test.c: libm-test-ulps-$(TARGET_ULP) libm-test.inc gen-libm-test.pl
 	$(Q)$(PERL) ./gen-libm-test.pl -u libm-test-ulps-$(TARGET_ULP) ./libm-test.inc -o "." 2>&1 > /dev/null
-- 
1.9.3



More information about the uClibc mailing list