mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
Since Clang doesn't support -mfpmath=387 on x86-64, on x86, include test-flt-eval-method-387 only if -mfpmath=387 works. Signed-off-by: H.J. Lu <hjl.tools@gmail.com> Reviewed-by: Sam James <sam@gentoo.org>
23 lines
645 B
Makefile
23 lines
645 B
Makefile
ifeq ($(subdir),math)
|
|
# sqrtf128 requires soft-fp.
|
|
CPPFLAGS += -I../soft-fp
|
|
|
|
libm-support += powl_helper
|
|
tests += \
|
|
test-fenv-clear-sse \
|
|
test-fenv-sse \
|
|
test-fenv-sse-2 \
|
|
test-fenv-x87 \
|
|
test-flt-eval-method-sse \
|
|
# tests
|
|
ifeq ($(have-test-cc-cflags-mfpmath-387),yes)
|
|
tests += test-flt-eval-method-387
|
|
endif
|
|
CFLAGS-test-fenv-sse.c += -msse2 -mfpmath=sse
|
|
CFLAGS-test-fenv-clear-sse.c += -msse2 -mfpmath=sse
|
|
CFLAGS-test-fenv-sse-2.c += -msse2 -mfpmath=sse
|
|
CFLAGS-test-flt-eval-method-387.c += -fexcess-precision=standard -mfpmath=387
|
|
CFLAGS-test-flt-eval-method-sse.c += -fexcess-precision=standard -msse2 \
|
|
-mfpmath=sse
|
|
endif
|