[Gmp-commit] /var/hg/gmp: Add new AMD CPUs (piledriver, steamroller, excavato...

mercurial at gmplib.org mercurial at gmplib.org
Sun Jan 19 15:47:55 UTC 2014


details:   /var/hg/gmp/rev/4b982c166489
changeset: 16231:4b982c166489
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Sun Jan 19 16:47:52 2014 +0100
description:
Add new AMD CPUs (piledriver, steamroller, excavator, jaguar).

diffstat:

 ChangeLog    |   5 +++++
 config.guess |  14 +++++++++++---
 config.sub   |   4 ++--
 configure.ac |  24 ++++++++++++++++++++++++
 4 files changed, 42 insertions(+), 5 deletions(-)

diffs (100 lines):

diff -r 1aab49d7b882 -r 4b982c166489 ChangeLog
--- a/ChangeLog	Sun Jan 19 16:20:10 2014 +0100
+++ b/ChangeLog	Sun Jan 19 16:47:52 2014 +0100
@@ -1,5 +1,10 @@
 2014-01-19  Torbjorn Granlund  <tege at gmplib.org>
 
+	* config.guess: Add new AMD CPUs (piledriver, steamroller, excavator,
+	jaguar).
+	* config.sub: Corresponding updates.
+	* configure.ac: Likewise.
+
 	* Rename mpn_sec_minvert => mpn_sec_invert, many files affected.
 	* mpn/generic/sec_invert.c: New name for sec_minvert.c.
 
diff -r 1aab49d7b882 -r 4b982c166489 config.guess
--- a/config.guess	Sun Jan 19 16:20:10 2014 +0100
+++ b/config.guess	Sun Jan 19 16:47:52 2014 +0100
@@ -843,10 +843,18 @@
 	  cpu_64bit = 1, modelstr = "bobcat";
 	  break;
 	case 21:		/* Bulldozer */
-	  cpu_64bit = 1, modelstr = "bulldozer";
+	  cpu_64bit = 1;
+	  if (model == 1)
+	    modelstr = "bulldozer";
+	  else if (model == 2)
+	    modelstr = "piledriver";
+	  else if (model == 3)
+	    modelstr = "steamroller";
+	  else /* if (model < 0x9) */
+	    modelstr = "excavator";
 	  break;
-	case 22:		/* jaguar, an improved bobcat */
-	  cpu_64bit = 1, modelstr = "bobcat";
+	case 22:		/* Jaguar, an improved bobcat */
+	  cpu_64bit = 1, modelstr = "jaguar";
 	  break;
 	}
     }
diff -r 1aab49d7b882 -r 4b982c166489 config.sub
--- a/config.sub	Sun Jan 19 16:20:10 2014 +0100
+++ b/config.sub	Sun Jan 19 16:47:52 2014 +0100
@@ -3,7 +3,7 @@
 # GMP config.sub wrapper.
 
 
-# Copyright 2000-2003, 2006, 2009-2013 Free Software Foundation, Inc.
+# Copyright 2000-2003, 2006, 2009-2014 Free Software Foundation, Inc.
 #
 # This file is part of the GNU MP Library.
 #
@@ -91,7 +91,7 @@
   test_cpu=ia64 ;;
 pentium | pentiummmx | pentiumpro | pentium[234m] | k[567] | k6[23] | geode | athlon | viac3*)
   test_cpu=i386 ;;
-athlon64 | atom | core2 | corei | coreinhm | coreiwsm | coreisbr | coreihwl | coreibwl | opteron | k[89] | k10 | bobcat | bulldozer | nano)
+athlon64 | atom | core2 | corei | coreinhm | coreiwsm | coreisbr | coreihwl | coreibwl | opteron | k[89] | k10 | bobcat | jaguar | bulldozer | piledriver | steamroller | excavator | nano)
   test_cpu=x86_64 ;;
 power[2-9] | power2sc)
   test_cpu=power ;;
diff -r 1aab49d7b882 -r 4b982c166489 configure.ac
--- a/configure.ac	Sun Jan 19 16:20:10 2014 +0100
+++ b/configure.ac	Sun Jan 19 16:47:52 2014 +0100
@@ -1711,12 +1711,36 @@
 	path="x86/bobcat x86/k7/mmx x86/k7 x86/mmx x86"
 	path_64="x86_64/bobcat x86_64/k10 x86_64/k8 x86_64"
 	;;
+      jaguar)
+	gcc_cflags_cpu="-mtune=btver2 -mtune=btver1 -mtune=amdfam10 -mtune=k8"
+	gcc_cflags_arch="-march=btver2 -march=btver1 -march=amdfam10 -march=k8 -march=k8~-mno-sse2"
+	path="x86/jaguar x86/bobcat x86/k7/mmx x86/k7 x86/mmx x86"
+	path_64="x86_64/jaguar x86_64/bobcat x86_64/k10 x86_64/k8 x86_64"
+	;;
       bulldozer | bd1)
 	gcc_cflags_cpu="-mtune=bdver1 -mtune=amdfam10 -mtune=k8"
 	gcc_cflags_arch="-march=bdver1 -march=amdfam10 -march=k8 -march=k8~-mno-sse2"
 	path="x86/bd1 x86/k7/mmx x86/k7 x86/mmx x86"
 	path_64="x86_64/bd1 x86_64/k10 x86_64/k8 x86_64"
 	;;
+      piledriver | bd2)
+	gcc_cflags_cpu="-mtune=bdver2 -mtune=bdver1 -mtune=amdfam10 -mtune=k8"
+	gcc_cflags_arch="-march=bdver2 -march=bdver1 -march=amdfam10 -march=k8 -march=k8~-mno-sse2"
+	path="x86/bd2 x86/bd1 x86/k7/mmx x86/k7 x86/mmx x86"
+	path_64="x86_64/bd2 x86_64/bd1 x86_64/k10 x86_64/k8 x86_64"
+	;;
+      steamroller | bd3)
+	gcc_cflags_cpu="-mtune=bdver3 -mtune=bdver2 -mtune=bdver1 -mtune=amdfam10 -mtune=k8"
+	gcc_cflags_arch="-march=bdver3 -march=bdver2 -march=bdver1 -march=amdfam10 -march=k8 -march=k8~-mno-sse2"
+	path="x86/bd3 x86/bd2 x86/bd1 x86/k7/mmx x86/k7 x86/mmx x86"
+	path_64="x86_64/bd3 x86_64/bd2 x86_64/bd1 x86_64/k10 x86_64/k8 x86_64"
+	;;
+      excavator | bd4)
+	gcc_cflags_cpu="-mtune=bdver4 -mtune=bdver3 -mtune=bdver2 -mtune=bdver1 -mtune=amdfam10 -mtune=k8"
+	gcc_cflags_arch="-march=bdver4 -march=bdver3 -march=bdver2 -march=bdver1 -march=amdfam10 -march=k8 -march=k8~-mno-sse2"
+	path="x86/bd4 x86/bd3 x86/bd2 x86/bd1 x86/k7/mmx x86/k7 x86/mmx x86"
+	path_64="x86_64/bd4 x86_64/bd3 x86_64/bd2 x86_64/bd1 x86_64/k10 x86_64/k8 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