summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjorn Granlund <tg@gmplib.org>2022-03-30 23:13:11 +0200
committerTorbjorn Granlund <tg@gmplib.org>2022-03-30 23:13:11 +0200
commitefe1e60af3cd3fd34c8b3303c5b6e33333baebd4 (patch)
treece06bb4755f888c57e92b54a0c7fd4e5a6b6cf3a
parent58818388634ac42301e50c9b2dbd65340fb3ab70 (diff)
downloadgmp-efe1e60af3cd3fd34c8b3303c5b6e33333baebd4.tar.gz
Handle Intel tremont separately.
-rwxr-xr-xconfig.guess6
-rwxr-xr-xconfig.sub2
-rw-r--r--configure.ac7
3 files changed, 11 insertions, 4 deletions
diff --git a/config.guess b/config.guess
index c594fb08e..f739751ee 100755
--- a/config.guess
+++ b/config.guess
@@ -924,15 +924,15 @@ main ()
else if (model == 0x7a) cpu_64bit = 1, modelstr = "goldmont"; /* Goldmont Plus */
else if (model == 0x7d) cpu_64bit = 1, cpu_avx=1, modelstr = "icelake"; /* Ice Lake Y */
else if (model == 0x7e) cpu_64bit = 1, cpu_avx=1, modelstr = "icelake"; /* Ice Lake U */
- else if (model == 0x8a) cpu_64bit = 1, modelstr = "goldmont"; /* Tremont */
+ else if (model == 0x8a) cpu_64bit = 1, modelstr = "tremont"; /* Tremont */
else if (model == 0x8c) cpu_64bit = 1, cpu_avx=1, modelstr = "tigerlake"; /* Tiger Lake U */
else if (model == 0x8d) cpu_64bit = 1, cpu_avx=1, modelstr = "tigerlake"; /* Tiger Lake H */
else if (model == 0x8e) cpu_64bit = 1, cpu_avx=1, modelstr = "kabylake"; /* Kaby Lake Y/U */
else if (model == 0x8f) cpu_64bit = 1, cpu_avx=1, modelstr = "alderlake"; /* Sapphire Rapids */
- else if (model == 0x96) cpu_64bit = 1, modelstr = "goldmont"; /* Tremont */
+ else if (model == 0x96) cpu_64bit = 1, modelstr = "tremont"; /* Tremont */
else if (model == 0x97) cpu_64bit = 1, cpu_avx=1, modelstr = "alderlake"; /* Alder Lake S */
else if (model == 0x9a) cpu_64bit = 1, cpu_avx=1, modelstr = "alderlake"; /* Alder Lake P */
- else if (model == 0x9c) cpu_64bit = 1, modelstr = "goldmont"; /* Tremont */
+ 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 cpu_64bit = 1, modelstr = "nehalem"; /* default */
diff --git a/config.sub b/config.sub
index 8479e6947..65c26f18b 100755
--- a/config.sub
+++ b/config.sub
@@ -102,7 +102,7 @@ itanium | itanium2)
test_cpu=ia64 ;;
pentium | pentiummmx | pentiumpro | pentium[234m] | k[567] | k6[23] | geode | athlon | viac3*)
test_cpu=i386 ;;
-athlon64 | atom | silvermont | goldmont | 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*| knightslanding)
test_cpu=x86_64 ;;
power[2-9] | power2sc)
test_cpu=power ;;
diff --git a/configure.ac b/configure.ac
index 05b5cb4b3..d86c494b4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -333,6 +333,7 @@ AH_VERBATIM([HAVE_HOST_CPU_1],
#undef HAVE_HOST_CPU_skylake
#undef HAVE_HOST_CPU_silvermont
#undef HAVE_HOST_CPU_goldmont
+#undef HAVE_HOST_CPU_tremont
#undef HAVE_HOST_CPU_k8
#undef HAVE_HOST_CPU_k10
#undef HAVE_HOST_CPU_bulldozer
@@ -1997,6 +1998,12 @@ case $host in
path="x86/goldmont x86/atom/sse2 x86/atom/mmx x86/atom x86/mmx x86"
path_64="x86_64/goldmont x86_64/silvermont x86_64/atom x86_64"
;;
+ tremont) # out-of-order pipeline atom
+ gcc_cflags_cpu="-mtune=slm -mtune=atom -mtune=pentium3"
+ gcc_cflags_arch="-march=slm -march=atom -march=pentium3"
+ path="x86/goldmont x86/atom/sse2 x86/atom/mmx x86/atom x86/mmx x86"
+ path_64="x86_64/tremont x86_64/goldmont x86_64/silvermont x86_64/atom x86_64"
+ ;;
nano)
gcc_cflags_cpu="-mtune=nano"
gcc_cflags_arch="-march=nano"