[Gmp-commit] /var/hg/gmp: 3 new changesets

mercurial at gmplib.org mercurial at gmplib.org
Wed Mar 20 18:41:02 CET 2013


details:   /var/hg/gmp/rev/469d2c72810b
changeset: 15624:469d2c72810b
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Wed Mar 20 15:08:38 2013 +0100
description:
Let FAKE_MULXADX be off by default.

details:   /var/hg/gmp/rev/9b834f6441d1
changeset: 15625:9b834f6441d1
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Wed Mar 20 18:39:49 2013 +0100
description:
Rework arm CPU recognition

details:   /var/hg/gmp/rev/055b847ac3d7
changeset: 15626:055b847ac3d7
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Wed Mar 20 18:40:58 2013 +0100
description:
ChangeLog

diffstat:

 ChangeLog                        |   9 ++++++++-
 config.guess                     |  27 +++++++++++++--------------
 config.sub                       |   9 ++++-----
 configure.ac                     |  16 ++++++++--------
 mpn/x86_64/mulx/adx/addmul_1.asm |   4 ----
 5 files changed, 33 insertions(+), 32 deletions(-)

diffs (148 lines):

diff -r f2549c92f8d1 -r 055b847ac3d7 ChangeLog
--- a/ChangeLog	Wed Mar 20 00:54:25 2013 +0100
+++ b/ChangeLog	Wed Mar 20 18:40:58 2013 +0100
@@ -1,5 +1,11 @@
 2013-03-20  Torbjorn Granlund  <tege at gmplib.org>
 
+	* config.guess: Rework arm CPU recognition.
+	* config.sub: Corresponding updates.
+	* configure.ac: Likewise.
+
+	* mpn/x86_64/mulx/adx/addmul_1.asm: Let FAKE_MULXADX be off by default.
+
 	* mpn/arm/v7a/cora15/neon/copyi.asm: Move from "..".
 	* mpn/arm/v7a/cora15/neon/copyd.asm: Likewise.
 
@@ -8,7 +14,8 @@
 
 2013-03-19 Marco Bodrato <bodrato at mail.dm.unipi.it>
 
-	* mpf/fits_u.h: accept numbers truncating to zero before checking the sign.
+	* mpf/fits_u.h: Accept numbers truncating to zero before checking the
+	sign.
 	* tests/mpf/t-fits.c: Check new edges.
 
 2013-03-19  Torbjorn Granlund  <tege at gmplib.org>
diff -r f2549c92f8d1 -r 055b847ac3d7 config.guess
--- a/config.guess	Wed Mar 20 00:54:25 2013 +0100
+++ b/config.guess	Wed Mar 20 18:40:58 2013 +0100
@@ -165,25 +165,24 @@
 arm*-*-*)
   cpu_code=`sed -n 's/^CPU part.*\(0x.*\)$/\1/p' /proc/cpuinfo 2>/dev/null`
   case "$cpu_code" in
-      0x210)	exact_cpu="armxscale";;		# v5 pxa250
-      0x290)	exact_cpu="armxscale";;		# v5 pxa260
-      0x2d0)	exact_cpu="armxscale";;		# v5 pxa255
-      0x2d0)	exact_cpu="armxscale";;		# v5 pxa261
-      0x2d0)	exact_cpu="armxscale";;		# v5 pxa262
-      0x411)	exact_cpu="armxscale";;		# v5 pxa270
-      0x915)	exact_cpu="armti915t";;		# v?
-      0x925)	exact_cpu="armti925t";;		# v?
-      0x926)	exact_cpu="arm926";;		# v5
-      0x946)	exact_cpu="arm946";;		# v5
-      0x966)	exact_cpu="arm966";;		# v5
-      0xa11)	exact_cpu="armsa1";;		# v4 strongarm/sa1100
-      0xa26)	exact_cpu="arm1026";;		# v5
+      0xa10 | 0xa11 | 0xb11)			# v4 strongarm/sa1100
+		exact_cpu="armsa1";;
+      0x915 | 0x925 | \
+      0x920 | 0x922 | 0x940)			# v4
+		exact_cpu="arm9tdmi";;
+      0x210 | 0x290 | 0x2d0 | \
+      0x212 | 0x292 | 0x2d2 | \
+      0x411)	exact_cpu="armxscale";;		# v5 pxa2xx
+      0x926 | 0x946 | 0x966 | 0x968)		# v5te/v5tej
+		exact_cpu="arm9te";;
+      0xa20 | 0xa22 | 0xa26)			# v5te
+		exact_cpu="arm10";;
       0xb02)	exact_cpu="arm11mpcore";;	# v6
-      0xb11)	exact_cpu="armsa1";;		# v4 strongarm/sa1110
       0xb36)	exact_cpu="arm1136";;		# v6
       0xb56)	exact_cpu="arm1156";;		# v6t2
       0xb76)	exact_cpu="arm1176";;		# v6
       0xc05)	exact_cpu="armcortexa5";;	# v7a
+      0xc07)	exact_cpu="armcortexa7";;	# v7a
       0xc08)	exact_cpu="armcortexa8";;	# v7a
       0xc09)	exact_cpu="armcortexa9";;	# v7a
       0xc0f)	exact_cpu="armcortexa15";;	# v7a
diff -r f2549c92f8d1 -r 055b847ac3d7 config.sub
--- a/config.sub	Wed Mar 20 00:54:25 2013 +0100
+++ b/config.sub	Wed Mar 20 18:40:58 2013 +0100
@@ -117,11 +117,10 @@
 z900esa | z990esa | z9esa | z10esa | z196esa)
   test_cpu=s390;;
 
-armxscale | armxscale | armxscale | armxscale | armxscale | armxscale |	\
-armti915t | armti925t | arm926 | arm946 | arm966 | armsa1 | arm1026 |	\
-arm11mpcore | armsa1 | arm1136 | arm1156 | arm1176 | armcortexa5 |	\
-armcortexa8 | armcortexa9 | armcortexa15 | armcortexr4 | armcortexr5 |	\
-armcortexm3)
+armsa1 | armxscale | arm9tdmi | arm9te |				\
+arm10* | arm11mpcore | armsa1 | arm1136 | arm1156 | arm1176 |		\
+armcortexa5 | armcortexa7 | armcortexa8 | armcortexa9 | armcortexa15 |	\
+armcortexr4 | armcortexr5 | armcortexm3)
   test_cpu="arm";;
 
 *)
diff -r f2549c92f8d1 -r 055b847ac3d7 configure.ac
--- a/configure.ac	Wed Mar 20 00:54:25 2013 +0100
+++ b/configure.ac	Wed Mar 20 18:40:58 2013 +0100
@@ -564,6 +564,11 @@
     ;;
 
 
+  arm64*-*-* | aarch64*-*-*)
+    path="arm64"
+    ;;
+
+
   arm*-*-*)
     gcc_cflags="$gcc_cflags $fomit_frame_pointer"
     gcc_cflags_optlist="arch neon tune"
@@ -576,9 +581,9 @@
     # either enforce them, or organise to strip paths as the corresponding
     # options fail.
     case $host_cpu in
-      armsa1 | armv4*)
+      armsa1 | arm9tdmi | armv4*)
 	;;
-      armxscale | arm926 | arm946 | arm966 | arm1026 | armv5*)
+      armxscale | arm9te | arm10 | armv5*)
 	path="arm/v5 arm"
 	gcc_cflags_arch="-march=armv5"
 	;;
@@ -588,7 +593,7 @@
 	;;
       arm1156)
 	path="arm/v6t2 arm/v6 arm/v5 arm"
-	gcc_cflags_arch="-march=armv6"
+	gcc_cflags_arch="-march=armv6t2 -march=armv6"
 	;;
       armcortexa5 | armv7a*)
 	path="arm/v6t2 arm/v6 arm/v5 arm"
@@ -634,11 +639,6 @@
     ;;
 
 
-  arm64*-*-* | aarch64*-*-*)
-    path="arm64"
-    ;;
-
-
   clipper*-*-*)
     path="clipper"
     ;;
diff -r f2549c92f8d1 -r 055b847ac3d7 mpn/x86_64/mulx/adx/addmul_1.asm
--- a/mpn/x86_64/mulx/adx/addmul_1.asm	Wed Mar 20 00:54:25 2013 +0100
+++ b/mpn/x86_64/mulx/adx/addmul_1.asm	Wed Mar 20 18:40:58 2013 +0100
@@ -43,10 +43,6 @@
 define(`n',       `%rcx')	dnl
 define(`v0',      `%rdx')	dnl
 
-C Make mulx and adx emulation the default.
-C FIXME: Remove this once qemu's adx flags handling is fixed.
-ifdef(`FAKE_MULXADX',,`define(`FAKE_MULXADX',1)')
-
 C Testing mechanism for running this on older AMD64 processrs
 ifelse(FAKE_MULXADX,1,`
   include(CONFIG_TOP_SRCDIR`/mpn/x86_64/missing-call.m4')


More information about the gmp-commit mailing list