diff options
| author | H.J. Lu <hjl.tools@gmail.com> | 2024-12-19 12:08:00 +0800 |
|---|---|---|
| committer | H.J. Lu <hjl.tools@gmail.com> | 2024-12-22 12:54:44 +0800 |
| commit | f5fb9fa011f242bfd8c291fe876532ebd252397e (patch) | |
| tree | 20230ef83afcc97d09a084c863d3b4fe6353f5e9 /sysdeps/x86/fpu | |
| parent | 9151ecbb5e5a3d2ee30826ab9cce3aa5575e3a70 (diff) | |
| download | glibc-f5fb9fa011f242bfd8c291fe876532ebd252397e.tar.xz glibc-f5fb9fa011f242bfd8c291fe876532ebd252397e.zip | |
x86: Include test-flt-eval-method-387 if -mfpmath=387 works
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>
Diffstat (limited to 'sysdeps/x86/fpu')
| -rw-r--r-- | sysdeps/x86/fpu/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sysdeps/x86/fpu/Makefile b/sysdeps/x86/fpu/Makefile index 705dd9d715..91b2444f3a 100644 --- a/sysdeps/x86/fpu/Makefile +++ b/sysdeps/x86/fpu/Makefile @@ -8,9 +8,11 @@ tests += \ test-fenv-sse \ test-fenv-sse-2 \ test-fenv-x87 \ - test-flt-eval-method-387 \ 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 |
