2 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
4 # gamma (removed from TESTS, need to add "small errors are ok" machinery there)
5 TESTS_DISABLED := gamma
6 ifeq ($(UCLIBC_HAS_LONG_DOUBLE_MATH),)
7 TESTS_DISABLED += test-ldouble test-ildoubl compile_test c99_test
9 CFLAGS_basic-test := -DNO_LONG_DOUBLE
11 ifeq ($(DO_C99_MATH),)
12 TESTS_DISABLED += test-float test-ifloat test-double test-idouble rint signgam ilogb
18 # NOTE: For basic-test we must disable the floating point optimization.
19 # Only for sh architecture because in the other architecture are disabled.
20 ifeq ($(TARGET_ARCH),sh)
21 CFLAGS_basic-test += -mieee
23 EXTRA_CFLAGS := -fno-builtin
28 MDEPS := $(wildcard test-*.c)
31 libm-test.c: libm-test-ulps-$(TARGET_ARCH) libm-test.inc gen-libm-test.pl
32 $(Q)$(PERL) ./gen-libm-test.pl -u libm-test-ulps-$(TARGET_ARCH) ./libm-test.inc -o "." 2>&1 > /dev/null
34 EXTRA_CLEAN := libm-test.c libm-test-ulps.h