diff mbox

test/math: add fallback to libm-test-ulps-generic logic

Message ID 1404930445-11794-1-git-send-email-abrodkin@synopsys.com
State Superseded
Headers show

Commit Message

Alexey Brodkin July 9, 2014, 6:27 p.m. UTC
From: Jian Peng <jipeng2005@gmail.com>

Under test/math/, there is libm-test-ulps-generic used as fallback
in case that libm-test-ulps-$(TARGET_ARCH) does not exist.

This is required for arches that don't have ULPS yet.

Original patch from Jian Peng was found here:
http://lists.uclibc.org/pipermail/uclibc/2011-April/045172.html

Signed-off-by: Jian Peng <jipeng2005@gmail.com>
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>

Cc: Vineet Gupta <vgupta@synopsys.com>
Cc: Anton Kolesov <akolesov@synopsys.com>
---
 test/math/Makefile.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Bernhard Reutner-Fischer July 24, 2014, 7:59 p.m. UTC | #1
On Wed, Jul 09, 2014 at 10:27:25PM +0400, Alexey Brodkin wrote:
> From: Jian Peng <jipeng2005@gmail.com>
> 
> Under test/math/, there is libm-test-ulps-generic used as fallback
> in case that libm-test-ulps-$(TARGET_ARCH) does not exist.
> 
> This is required for arches that don't have ULPS yet.
> 
> Original patch from Jian Peng was found here:
> http://lists.uclibc.org/pipermail/uclibc/2011-April/045172.html

Applied, thanks!
diff mbox

Patch

diff --git a/test/math/Makefile.in b/test/math/Makefile.in
index 914fc75..b495c0b 100644
--- a/test/math/Makefile.in
+++ b/test/math/Makefile.in
@@ -31,7 +31,7 @@  PERL := /usr/bin/perl
 MDEPS := $(wildcard test-*.c)
 $(MDEPS): libm-test.c
 
-TARGET_ULP := $(TARGET_ARCH)
+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)