2 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
4 TESTS := basic-test tst-definitions test-fpucw test-float test-ifloat test-double test-idouble \
6 # gamma (removed from TESTS, need to add "small errors are ok" machinery there)
7 ifeq ($(UCLIBC_HAS_LONG_DOUBLE_MATH),y)
8 TESTS += test-ldouble test-ildoubl compile_test c99_test
10 CFLAGS_basic-test := -DNO_LONG_DOUBLE
16 # NOTE: For basic-test we must disable the floating point optimization.
17 # Only for sh architecture because in the other architecture are disabled.
18 ifeq ($(TARGET_ARCH),sh)
19 CFLAGS_basic-test += -mieee
21 EXTRA_CFLAGS := -fno-builtin
28 libm-test.c: libm-test-ulps-$(TARGET_ARCH) libm-test.inc gen-libm-test.pl
29 $(Q)$(PERL) ./gen-libm-test.pl -u libm-test-ulps-$(TARGET_ARCH) ./libm-test.inc -o "." 2>&1 > /dev/null
31 EXTRA_CLEAN := libm-test.c libm-test-ulps.h