[Gmp-commit] /var/hg/gmp: Handle alderlake specifically, as it lacks avx512.

mercurial at gmplib.org mercurial at gmplib.org
Tue Feb 22 00:00:03 CET 2022


details:   /var/hg/gmp/rev/5d04c39fb073
changeset: 18313:5d04c39fb073
user:      Torbjorn Granlund <tg at gmplib.org>
date:      Mon Feb 21 23:59:46 2022 +0100
description:
Handle alderlake specifically, as it lacks avx512.

diffstat:

 configure.ac |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r b4f3a32deac9 -r 5d04c39fb073 configure.ac
--- a/configure.ac	Mon Feb 21 01:57:56 2022 +0100
+++ b/configure.ac	Mon Feb 21 23:59:46 2022 +0100
@@ -1963,7 +1963,7 @@
 	x86_have_mulx=yes
 	;;
       icelake | icelakenoavx | tigerlake | tigerlakenoavx | \
-      rocketlake | rocketlakenoavx | alderlake | alderlakenoavx)
+      rocketlake | rocketlakenoavx)
 	gcc_cflags_cpu="-mtune=icelake-client -mtune=skylake -mtune=broadwell -mtune=haswell"
 	gcc_cflags_arch="-march=icelake-client -march=skylake -march=broadwell -march=haswell"
 	path="x86/coreihwl x86/coreisbr x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86/mmx x86"
@@ -1971,6 +1971,14 @@
 	# extra_functions_64="missing"	 # enable for bmi2/adx simulation
 	x86_have_mulx=yes
 	;;
+      alderlake | alderlakenoavx)
+	gcc_cflags_cpu="-mtune=alderlake -mtune=icelake-client -mtune=skylake -mtune=broadwell -mtune=haswell"
+	gcc_cflags_arch="-march=alderlake -march=skylake -march=broadwell -march=haswell"
+	path="x86/coreihwl x86/coreisbr x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86/mmx x86"
+	path_64="x86_64/icelake x86_64/skylake x86_64/coreibwl x86_64/coreihwl x86_64/coreisbr x86_64/coreinhm x86_64/core2 x86_64"
+	# extra_functions_64="missing"	 # enable for bmi2/adx simulation
+	x86_have_mulx=yes
+	;;
       atom)			# in-order pipeline atom
 	gcc_cflags_cpu="-mtune=atom -mtune=pentium3"
 	gcc_cflags_arch="-march=atom -march=pentium3"


More information about the gmp-commit mailing list