]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Add workaround to get clang to accept avx-512 instructions
authorStan Shebs <stanshebs@google.com>
Wed, 7 Feb 2018 20:57:16 +0000 (12:57 -0800)
committerStan Shebs <stanshebs@google.com>
Wed, 7 Feb 2018 20:57:16 +0000 (12:57 -0800)
sysdeps/x86_64/Makefile

index 8148e12874d5d2f49b330f74daa529c56ad22da3..54e2ac71519eade6064b6e30a0a318c332921286 100644 (file)
@@ -1,6 +1,13 @@
 # The i387 `long double' is a distinct type we support.
 long-double-fcts = yes
 
+ifeq ($(with-clang),yes)
+# Clang integrated assembler objects to AVX-512 instructions if not specifically
+# allowed. (-mavx512 is the preferred option but does not work in 5.0)
+ASFLAGS-.o += -march=knl
+ASFLAGS-.os += -march=knl
+endif
+
 ifeq ($(subdir),csu)
 gen-as-const-headers += link-defines.sym
 endif