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

mercurial at gmplib.org mercurial at gmplib.org
Thu Nov 6 21:29:47 UTC 2014


details:   /var/hg/gmp/rev/40fb11795fcb
changeset: 16505:40fb11795fcb
user:      Torbjorn Granlund <torbjorng at google.com>
date:      Thu Nov 06 22:29:45 2014 +0100
description:
Support power8.

diffstat:

 ChangeLog    |  7 +++++--
 config.guess |  4 ++--
 configure.ac |  3 +++
 3 files changed, 10 insertions(+), 4 deletions(-)

diffs (48 lines):

diff -r 2962ffbc6600 -r 40fb11795fcb ChangeLog
--- a/ChangeLog	Wed Nov 05 19:35:40 2014 +0100
+++ b/ChangeLog	Thu Nov 06 22:29:45 2014 +0100
@@ -1,3 +1,8 @@
+2014-11-06  Torbjörn Granlund  <torbjorng at google.com>
+
+	* config.guess: Ignore appended letters such E in POWER8E.
+	* configure.ac: Supply cflags for power8, power9.
+
 2014-11-03  Torbjörn Granlund  <torbjorng at google.com>
 
 	* mpn/powerpc32/addmul_1.asm: Avoid negative stack pointer references.
@@ -9,8 +14,6 @@
 	* mpn/powerpc32/submul_1.asm:  Likewise.
 	* mpn/powerpc32/vmx/mod_34lsub1.asm:  Likewise.
 
-	* mpn/powerpc32/divrem_2.asm: Slightly trim stack usage.
-
 2014-10-13  Torbjörn Granlund  <torbjorng at google.com>
 
 	* acinclude.m4 (freebsd hacked gcc): Test for crash-prone FreeBSD gcc.
diff -r 2962ffbc6600 -r 40fb11795fcb config.guess
--- a/config.guess	Wed Nov 05 19:35:40 2014 +0100
+++ b/config.guess	Thu Nov 06 22:29:45 2014 +0100
@@ -456,8 +456,8 @@
       970??)   exact_cpu="powerpc970" ;;
       603 | 603e | 604 | 604e | 750 | 821 | 860)
         exact_cpu="powerpc$x" ;;
-      POWER[4-9])
-        exact_cpu=`echo $x | sed "s;POWER;power;"` ;;
+      POWER[4-9]*)
+        exact_cpu=`echo $x | sed -e "s;POWER;power;" -e "s;[a-zA-Z]*$;;"` ;;
     esac
   fi
 
diff -r 2962ffbc6600 -r 40fb11795fcb configure.ac
--- a/configure.ac	Wed Nov 05 19:35:40 2014 +0100
+++ b/configure.ac	Thu Nov 06 22:29:45 2014 +0100
@@ -1038,6 +1038,9 @@
       power7)	    gcc_cflags_cpu="-mtune=power7 -mtune=power5"
 		    xlc_cflags_arch="-qarch=pwr7 -qarch=pwr5"
 		    cpu_path="p7 p5 p4 p3-p7" ;;
+      [power[89]])  gcc_cflags_cpu="-mtune=power8 -mtune=power7 -mtune=power5"
+		    xlc_cflags_arch="-qarch=pwr8 -qarch=pwr7 -qarch=pwr5"
+		    cpu_path="p7 p5 p4 p3-p7" ;;
     esac
 
     case $host in


More information about the gmp-commit mailing list