[Gmp-commit] /var/hg/gmp: Recognise zen2.

mercurial at gmplib.org mercurial at gmplib.org
Sun Nov 17 23:24:08 UTC 2019


details:   /var/hg/gmp/rev/29b2a74384c8
changeset: 17971:29b2a74384c8
user:      Torbjorn Granlund <tg at gmplib.org>
date:      Mon Nov 18 00:23:03 2019 +0100
description:
Recognise zen2.

diffstat:

 config.guess |  15 +++++++++++++--
 configure.ac |   7 +++++++
 2 files changed, 20 insertions(+), 2 deletions(-)

diffs (42 lines):

diff -r 8600ec5f755e -r 29b2a74384c8 config.guess
--- a/config.guess	Sun Nov 17 23:42:56 2019 +0100
+++ b/config.guess	Mon Nov 18 00:23:03 2019 +0100
@@ -980,8 +980,19 @@
 	  cpu_64bit = 1, cpu_avx = 1, modelstr = "jaguar";
 	  break;
 	case 23:		/* Zen */
-	  cpu_64bit = 1, cpu_avx = 1, modelstr = "zen";
-	  break;
+	  cpu_64bit = 1, cpu_avx = 1;
+	  switch (model)
+	    {
+	    case 1:
+	    case 8:
+	    case 17:
+	    case 24:
+	      modelstr = "zen";
+	      break;
+	    default:
+	      modelstr = "zen2";
+	      break;
+	  }
 	}
     }
   else if (strcmp (vendor_string, "CyrixInstead") == 0)
diff -r 8600ec5f755e -r 29b2a74384c8 configure.ac
--- a/configure.ac	Sun Nov 17 23:42:56 2019 +0100
+++ b/configure.ac	Mon Nov 18 00:23:03 2019 +0100
@@ -1889,6 +1889,13 @@
 	x86_have_mulx=yes
 	path_64="x86_64/zen x86_64"
 	;;
+      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"
+	;;
       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