summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGregory Fong <gregory.0xf0@gmail.com>2014-04-01 18:12:13 -0700
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2014-04-04 16:07:51 +0200
commit85891447211add633243af01e960762c9a57b435 (patch)
tree159144c450bf6f48e6d6c4d2c339de73de027fdd /test
parente8e3a0a833edf6b91967367ecc48189c282547dd (diff)
test/math: Select correct ULPs for mips32/mips64
Using TARGET_ARCH isn't sufficient when ISA can differ. Signed-off-by: Gregory Fong <gregory.0xf0@gmail.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/math/Makefile.in11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/math/Makefile.in b/test/math/Makefile.in
index 0285b6606..470a6213a 100644
--- a/test/math/Makefile.in
+++ b/test/math/Makefile.in
@@ -28,7 +28,14 @@ PERL := /usr/bin/perl
MDEPS := $(wildcard test-*.c)
$(MDEPS): libm-test.c
-libm-test.c: libm-test-ulps-$(TARGET_ARCH) libm-test.inc gen-libm-test.pl
- $(Q)$(PERL) ./gen-libm-test.pl -u libm-test-ulps-$(TARGET_ARCH) ./libm-test.inc -o "." 2>&1 > /dev/null
+TARGET_ULP := $(TARGET_ARCH)
+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)
+
+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
EXTRA_CLEAN := libm-test.c libm-test-ulps.h