about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--sysdeps/x86_64/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/sysdeps/x86_64/Makefile b/sysdeps/x86_64/Makefile
index 8148e12874..54e2ac7151 100644
--- a/sysdeps/x86_64/Makefile
+++ b/sysdeps/x86_64/Makefile
@@ -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