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