summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjorn Granlund <tege@gmplib.org>2012-05-27 10:59:26 +0200
committerTorbjorn Granlund <tege@gmplib.org>2012-05-27 10:59:26 +0200
commit7716d3de2ebc362d47f560532190e1e7e6adcb21 (patch)
tree9c349336a046dc6fb808f2ea8858fed7f6f3af07
parent626179d16cc4081e859b7a41209cf2060b2b29fb (diff)
downloadgmp-7716d3de2ebc362d47f560532190e1e7e6adcb21.tar.gz
Add new x86 CPUs.
-rw-r--r--ChangeLog6
-rwxr-xr-xconfig.guess7
-rw-r--r--mpn/x86/fat/fat.c9
-rw-r--r--mpn/x86_64/fat/fat.c9
4 files changed, 23 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index a31da7cda..80f7dcff4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-05-27 Torbjorn Granlund <tege@gmplib.org>
+
+ * config.guess: Add new x86 CPUs.
+ * mpn/x86/fat/fat.c: Likewise.
+ * mpn/x86_64/fat/fat.c: Likewise.
+
2012-05-27 Marco Bodrato <bodrato@mail.dm.unipi.it>
* mpn/x86_64/fat/fat.c: abort iff longmode-capable-bit is turned off.
diff --git a/config.guess b/config.guess
index d6e9acde3..08f859003 100755
--- a/config.guess
+++ b/config.guess
@@ -3,8 +3,8 @@
# GMP config.guess wrapper.
-# Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2008, 2011 Free Software
-# Foundation, Inc.
+# Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2008, 2011, 2012 Free
+# Software Foundation, Inc.
#
# This file is part of the GNU MP Library.
#
@@ -780,6 +780,9 @@ main ()
else if (model == 0x2d) cpu_64bit = 1, modelstr = "coreisbr"; /* SBC-EP */
else if (model == 0x2e) cpu_64bit = 1, modelstr = "coreinhm"; /* NHM Beckton */
else if (model == 0x2f) cpu_64bit = 1, modelstr = "coreiwsm"; /* WSM Eagleton */
+ else if (model == 0x3a) cpu_64bit = 1, modelstr = "coreisbr"; /* IBR */
+ else if (model == 0x3c) cpu_64bit = 1, modelstr = "coreisbr"; /* Haswell */
+ else if (model == 0x36) cpu_64bit = 1, modelstr = "atom"; /* Cedarview/Saltwell */
else cpu_64bit = 1, modelstr = "corei"; /* default */
break;
case 15:
diff --git a/mpn/x86/fat/fat.c b/mpn/x86/fat/fat.c
index 3b0935d68..7ae29dc6a 100644
--- a/mpn/x86/fat/fat.c
+++ b/mpn/x86/fat/fat.c
@@ -300,9 +300,10 @@ __gmpn_cpuvec_init (void)
CPUVEC_SETUP_core2;
break;
- case 0x1c: /* Silverthorne */
- case 0x26: /* Lincroft */
- case 0x27: /* Saltwell */
+ case 0x1c: /* Atom Silverthorne */
+ case 0x26: /* Atom Lincroft */
+ case 0x27: /* Atom Saltwell */
+ case 0x36: /* Atom Cedarview/Saltwell */
TRACE (printf (" atom\n"));
CPUVEC_SETUP_atom;
CPUVEC_SETUP_atom_mmx;
@@ -335,6 +336,8 @@ __gmpn_cpuvec_init (void)
case 0x2a: /* SBR */
case 0x2d: /* SBR-EP */
+ case 0x3a: /* IBR */
+ case 0x3c: /* Haswell */
TRACE (printf (" sandybridge\n"));
CPUVEC_SETUP_p6_mmx;
CPUVEC_SETUP_p6_p3mmx;
diff --git a/mpn/x86_64/fat/fat.c b/mpn/x86_64/fat/fat.c
index cbfb865db..28bceb5b5 100644
--- a/mpn/x86_64/fat/fat.c
+++ b/mpn/x86_64/fat/fat.c
@@ -234,9 +234,10 @@ __gmpn_cpuvec_init (void)
CPUVEC_SETUP_core2;
break;
- case 0x1c: /* Silverthorne */
- case 0x26: /* Lincroft */
- case 0x27: /* Saltwell */
+ case 0x1c: /* Atom Silverthorne */
+ case 0x26: /* Atom Lincroft */
+ case 0x27: /* Atom Saltwell? */
+ case 0x36: /* Atom Cedarview/Saltwell */
CPUVEC_SETUP_atom;
break;
@@ -262,6 +263,8 @@ __gmpn_cpuvec_init (void)
case 0x2a: /* SB */
case 0x2d: /* SBC-EP */
+ case 0x3a: /* IBR */
+ case 0x3c: /* Haswell */
CPUVEC_SETUP_core2;
CPUVEC_SETUP_coreinhm;
CPUVEC_SETUP_coreisbr;