summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Brodkin <Alexey.Brodkin@synopsys.com>2014-08-18 11:04:28 +0400
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2014-08-18 12:22:02 +0200
commit8c93ff92c37e2ed577c593236d24d09d7dcaa3ab (patch)
tree75958909db3f30ab5d9c58baa2bca32d7b6b3780
parent50442f45302021af4f7d68fd91039469e1c14861 (diff)
test/math: fix for MIPS that takes 32/64 suffix into account
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 <Alexey.Brodkin@synopsys.com> Cc: Waldemar Brodkorb <wbx@openadk.org> Cc: Vineet Gupta <vgupta@synopsys.com> Cc: Anton Kolesov <akolesov@synopsys.com> Cc: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
-rw-r--r--test/math/Makefile.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/math/Makefile.in b/test/math/Makefile.in
index d4693b97a..d241baa9e 100644
--- a/test/math/Makefile.in
+++ b/test/math/Makefile.in
@@ -30,12 +30,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