]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
x86: Use -mavx instead of -msse2avx
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 10 Mar 2022 18:05:51 +0000 (15:05 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 28 Oct 2025 16:36:29 +0000 (13:36 -0300)
clang supports it from version 19 and onwards, but it should be gated
as an option to assembler (either with -Wa or -Xassembler).  Add a
test for -Wa as well if -msse2avx fully supported by the compiler.

sysdeps/x86_64/fpu/multiarch/Makefile

index 708b14297fa553c8c7d06438c3a33063a414620a..bd887cd59c3ca90c22c2a60bbf73a5874839c8f0 100644 (file)
@@ -150,13 +150,13 @@ CFLAGS-s_sin-fma4.c = -mfma4
 CFLAGS-s_tan-fma4.c = -mfma4
 CFLAGS-s_sincos-fma4.c = -mfma4
 
-CFLAGS-e_atan2-avx.c = -msse2avx -DSSE2AVX
-CFLAGS-e_exp-avx.c = -msse2avx -DSSE2AVX
-CFLAGS-e_log-avx.c = -msse2avx -DSSE2AVX
-CFLAGS-s_atan-avx.c = -msse2avx -DSSE2AVX
-CFLAGS-s_sin-avx.c = -msse2avx -DSSE2AVX
-CFLAGS-s_tan-avx.c = -msse2avx -DSSE2AVX
-CFLAGS-s_sincos-avx.c = -msse2avx -DSSE2AVX
+CFLAGS-e_atan2-avx.c = -mavx -DSSE2AVX
+CFLAGS-e_exp-avx.c = -mavx -DSSE2AVX
+CFLAGS-e_log-avx.c = -mavx -DSSE2AVX
+CFLAGS-s_atan-avx.c = -mavx -DSSE2AVX
+CFLAGS-s_sin-avx.c = -mavx -DSSE2AVX
+CFLAGS-s_tan-avx.c = -mavx -DSSE2AVX
+CFLAGS-s_sincos-avx.c = -mavx -DSSE2AVX
 
 CFLAGS-s_modf-sse4_1.c = -msse4.1 -fno-builtin-modff32x -fno-builtin-modff64
 CFLAGS-s_modff-sse4_1.c = -msse4.1 -fno-builtin-modff32