public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/maskray/grte] Add workaround to get clang to accept avx-512 instructions
@ 2021-08-27 23:22 Fangrui Song
0 siblings, 0 replies; only message in thread
From: Fangrui Song @ 2021-08-27 23:22 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=6614ff3213ceaf3ac425e2d34cea5891b3d13c1b
commit 6614ff3213ceaf3ac425e2d34cea5891b3d13c1b
Author: Stan Shebs <stanshebs@google.com>
Date: Wed Feb 7 12:57:16 2018 -0800
Add workaround to get clang to accept avx-512 instructions
Diff:
---
sysdeps/x86_64/Makefile | 7 +++++++
1 file changed, 7 insertions(+)
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-08-27 23:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-27 23:22 [glibc/maskray/grte] Add workaround to get clang to accept avx-512 instructions Fangrui Song
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).