[Gmp-commit] /var/hg/gmp: Support new processors.

mercurial at gmplib.org mercurial at gmplib.org
Thu Jul 6 00:27:32 CEST 2023


details:   /var/hg/gmp/rev/e91cbbacde89
changeset: 18383:e91cbbacde89
user:      Torbjorn Granlund <tg at gmplib.org>
date:      Thu Jul 06 00:27:27 2023 +0200
description:
Support new processors.

diffstat:

 acinclude.m4 |  2 +-
 config.guess |  4 ++--
 config.sub   |  2 +-
 configure.ac |  4 ++--
 4 files changed, 6 insertions(+), 6 deletions(-)

diffs (59 lines):

diff -r b6a9b71d68f0 -r e91cbbacde89 acinclude.m4
--- a/acinclude.m4	Mon Jul 03 17:53:40 2023 +0200
+++ b/acinclude.m4	Thu Jul 06 00:27:27 2023 +0200
@@ -63,7 +63,7 @@
 [[i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-*]])
 
 define(X86_64_PATTERN,
-[[athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | jaguar*-*-* | bulldozer*-*-* | piledriver*-*-* | steamroller*-*-* | excavator*-*-* | zen*-*-* | pentium4-*-* | atom-*-* | silvermont-*-* | goldmont-*-* | tremont-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-* | nehalem*-*-* | westmere*-*-* | sandybridge*-*-* | ivybridge*-*-* | haswell*-*-* | broadwell*-*-* | skylake*-*-* | kabylake*-*-* | icelake*-*-* | tigerlake*-*-* | rocketlake*-*-* | alderlake*-*-*]])
+[[athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | jaguar*-*-* | bulldozer*-*-* | piledriver*-*-* | steamroller*-*-* | excavator*-*-* | zen*-*-* | pentium4-*-* | atom-*-* | silvermont-*-* | goldmont-*-* | tremont-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-* | nehalem*-*-* | westmere*-*-* | sandybridge*-*-* | ivybridge*-*-* | haswell*-*-* | broadwell*-*-* | skylake*-*-* | kabylake*-*-* | icelake*-*-* | tigerlake*-*-* | rocketlake*-*-* | alderlake*-*-* | raptorlake*-*-*]])
 
 dnl  GMP_FAT_SUFFIX(DSTVAR, DIRECTORY)
 dnl  ---------------------------------
diff -r b6a9b71d68f0 -r e91cbbacde89 config.guess
--- a/config.guess	Mon Jul 03 17:53:40 2023 +0200
+++ b/config.guess	Thu Jul 06 00:27:27 2023 +0200
@@ -936,8 +936,8 @@
           else if (model == 0x9c) cpu_64bit = 1,            modelstr = "tremont";    /* Tremont */
           else if (model == 0x9e) cpu_64bit = 1, cpu_avx=1, modelstr = "kabylake";   /* Kaby Lake desktop */
           else if (model == 0xa7) cpu_64bit = 1, cpu_avx=1, modelstr = "rocketlake"; /* Rocket Lake S */
-          else if (model == 0xba) cpu_64bit = 1, cpu_avx=1, modelstr = "alderlake";  /* Raptor Lake */
-          else if (model == 0xb7) cpu_64bit = 1, cpu_avx=1, modelstr = "alderlake";  /* Raptor Lake */
+          else if (model == 0xba) cpu_64bit = 1, cpu_avx=1, modelstr = "raptorlake"; /* Raptor Lake */
+          else if (model == 0xb7) cpu_64bit = 1, cpu_avx=1, modelstr = "raptorlake"; /* Raptor Lake */
           else                    cpu_64bit = 1,            modelstr = "nehalem";    /* default */
 
 	  if (strcmp (modelstr, "haswell") == 0 ||
diff -r b6a9b71d68f0 -r e91cbbacde89 config.sub
--- a/config.sub	Mon Jul 03 17:53:40 2023 +0200
+++ b/config.sub	Thu Jul 06 00:27:27 2023 +0200
@@ -102,7 +102,7 @@
   test_cpu=ia64 ;;
 pentium | pentiummmx | pentiumpro | pentium[234m] | k[567] | k6[23] | geode | athlon | viac3*)
   test_cpu=i386 ;;
-athlon64 | atom | silvermont | goldmont | tremont | core2 | corei* | opteron | k[89] | k10 | bobcat | jaguar* | bulldozer* | piledriver* | steamroller* | excavator* | zen* | nano | nehalem | westmere | sandybridge* | ivybridge* | haswell* | broadwell* | skylake* | kabylake* | icelake* | rocketlake* | tigerlake* | alderlake*| knightslanding)
+athlon64 | atom | silvermont | goldmont | tremont | core2 | corei* | opteron | k[89] | k10 | bobcat | jaguar* | bulldozer* | piledriver* | steamroller* | excavator* | zen* | nano | nehalem | westmere | sandybridge* | ivybridge* | haswell* | broadwell* | skylake* | kabylake* | icelake* | rocketlake* | tigerlake* | alderlake* | raptorlake* | knightslanding)
   test_cpu=x86_64 ;;
 power[2-9] | power1[0-9] | power2sc)
   test_cpu=power ;;
diff -r b6a9b71d68f0 -r e91cbbacde89 configure.ac
--- a/configure.ac	Mon Jul 03 17:53:40 2023 +0200
+++ b/configure.ac	Thu Jul 06 00:27:27 2023 +0200
@@ -1917,7 +1917,7 @@
 	x86_have_mulx=yes
 	path_64="x86_64/zen2 x86_64/zen x86_64"
 	;;
-      zen3 | zen3noavx)
+      zen3 | zen3noavx | zen4 | zen4noavx)
 	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"
@@ -1976,7 +1976,7 @@
 	# extra_functions_64="missing"	 # enable for bmi2/adx simulation
 	x86_have_mulx=yes
 	;;
-      alderlake | alderlakenoavx)
+      alderlake | alderlakenoavx | raptorlake | raptorlakenoavx)
 	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"


More information about the gmp-commit mailing list