[Gmp-commit] /var/hg/gmp: Handle zen3 different from zen2.

mercurial at gmplib.org mercurial at gmplib.org
Fri Jan 1 13:46:31 UTC 2021


details:   /var/hg/gmp/rev/575ff753614f
changeset: 18191:575ff753614f
user:      Torbjorn Granlund <tg at gmplib.org>
date:      Fri Jan 01 14:46:22 2021 +0100
description:
Handle zen3 different from zen2.

diffstat:

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

diffs (25 lines):

diff -r a39b385b67f4 -r 575ff753614f configure.ac
--- a/configure.ac	Fri Jan 01 14:40:30 2021 +0100
+++ b/configure.ac	Fri Jan 01 14:46:22 2021 +0100
@@ -1897,13 +1897,20 @@
 	x86_have_mulx=yes
 	path_64="x86_64/zen x86_64"
 	;;
-      zen2 | zen2noavx | zen3 | zen3noavx)
+      zen2 | zen2noavx)
 	gcc_cflags_cpu="-mtune=znver2 -mtune=znver1 -mtune=amdfam10 -mtune=k8"
 	gcc_cflags_arch="-march=znver2 -march=znver1 -march=amdfam10 -march=k8"
 	path="x86/k7/mmx x86/k7 x86/mmx x86"
 	x86_have_mulx=yes
 	path_64="x86_64/zen2 x86_64/zen x86_64"
 	;;
+      zen3 | zen3noavx)
+	gcc_cflags_cpu="-mtune=znver3 -mtune=znver2 -mtune=znver1 -mtune=amdfam10 -mtune=k8"
+	gcc_cflags_arch="-march=znver3 -march=znver2 -march=znver1 -march=amdfam10 -march=k8"
+	path="x86/k7/mmx x86/k7 x86/mmx x86"
+	x86_have_mulx=yes
+	path_64="x86_64/zen3 x86_64/zen2 x86_64/zen x86_64"
+	;;
       core2)
 	gcc_cflags_cpu="-mtune=core2 -mtune=k8"
 	gcc_cflags_arch="-march=core2 -march=core2~-mno-sse2 -march=k8 -march=k8~-mno-sse2"


More information about the gmp-commit mailing list