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

mercurial at gmplib.org mercurial at gmplib.org
Sun Oct 9 20:08:57 CEST 2011


details:   /var/hg/gmp/rev/67fb6b02e4d2
changeset: 14285:67fb6b02e4d2
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Sun Oct 09 20:08:14 2011 +0200
description:
(s390x add_ssaaaa): Remove algsi/slgsi until we support z10.

details:   /var/hg/gmp/rev/da0e945de32a
changeset: 14286:da0e945de32a
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Sun Oct 09 20:08:19 2011 +0200
description:
*** empty log message ***

diffstat:

 ChangeLog  |   7 +++++++
 longlong.h |  32 +++++---------------------------
 2 files changed, 12 insertions(+), 27 deletions(-)

diffs (62 lines):

diff -r a8bc8b971203 -r da0e945de32a ChangeLog
--- a/ChangeLog	Sun Oct 09 18:42:48 2011 +0200
+++ b/ChangeLog	Sun Oct 09 20:08:19 2011 +0200
@@ -1,3 +1,10 @@
+2011-10-09  Torbjorn Granlund  <tege at gmplib.org>
+
+	* longlong.h (s390x): Put back UDItype casts to make gcc reloading use
+	right more for constants.
+	(s390x count_leading_zeros): Disable until we support z10 specifically.
+	(s390x add_ssaaaa): Remove algsi/slgsi until we support z10.
+
 2011-10-09  Niels Möller  <nisse at lysator.liu.se>
 
 	* mpn/generic/hgcd_matrix.c (mpn_hgcd_matrix_adjust): Declare
diff -r a8bc8b971203 -r da0e945de32a longlong.h
--- a/longlong.h	Sun Oct 09 18:42:48 2011 +0200
+++ b/longlong.h	Sun Oct 09 20:08:19 2011 +0200
@@ -730,39 +730,17 @@
    garbage.  */
 #define add_ssaaaa(sh, sl, ah, al, bh, bl)				\
   do {									\
-    if (__builtin_constant_p (bl) && (UDItype)(bl) < 0x100000000ul)	\
-      __asm__ ("algfi\t%1,%5\n\talcgr\t%0,%3"				\
-	       : "=r" (sh), "=&r" (sl)					\
-	       : "0"  ((UDItype)(ah)), "r" ((UDItype)(bh)),		\
-		 "%1" ((UDItype)(al)), "n" (bl));			\
-    else if (__builtin_constant_p (bl) && -(UDItype)(bl) < 0x100000000ul) \
-      __asm__ ("slgfi\t%1,%n5\n\talcgr\t%0,%3"				\
-	       : "=r" (sh), "=&r" (sl)					\
-	       : "0"  ((UDItype)(ah)), "r" ((UDItype)(bh)),		\
-		 "%1" ((UDItype)(al)), "n" (bl));			\
-    else								\
-      __asm__ ("algr\t%1,%5\n\talcgr\t%0,%3"				\
+    __asm__ ("algr\t%1,%5\n\talcgr\t%0,%3"				\
 	       : "=r" (sh), "=&r" (sl)					\
 	       : "0"  ((UDItype)(ah)), "r" ((UDItype)(bh)),		\
 		 "%1" ((UDItype)(al)), "r" ((UDItype)(bl)));		\
   } while (0)
 #define sub_ddmmss(sh, sl, ah, al, bh, bl)				\
   do {									\
-    if (__builtin_constant_p (bl) && (UDItype)(bl) < 0x100000000ul)	\
-      __asm__ ("slgfi\t%1,%5\n\tslbgr\t%0,%3"				\
-	       : "=r" (sh), "=&r" (sl)					\
-	       : "0" ((UDItype)(ah)), "r" ((UDItype)(bh)),		\
-		 "1" ((UDItype)(al)), "n" (bl));			\
-    else if (__builtin_constant_p (bl) && -(UDItype)(bl) < 0x100000000ul) \
-      __asm__ ("algfi\t%1,%n5\n\tslbgr\t%0,%3"				\
-	       : "=r" (sh), "=&r" (sl)					\
-	       : "0" ((UDItype)(ah)), "r" ((UDItype)(bh)),		\
-		 "1" ((UDItype)(al)), "n" (bl));			\
-    else								\
-      __asm__ ("slgr\t%1,%5\n\tslbgr\t%0,%3"				\
-	       : "=r" (sh), "=&r" (sl)					\
-	       : "0" ((UDItype)(ah)), "r" ((UDItype)(bh)),		\
-		 "1" ((UDItype)(al)), "r" ((UDItype)(bl)));		\
+    __asm__ ("slgr\t%1,%5\n\tslbgr\t%0,%3"				\
+	     : "=r" (sh), "=&r" (sl)					\
+	     : "0" ((UDItype)(ah)), "r" ((UDItype)(bh)),		\
+	       "1" ((UDItype)(al)), "r" ((UDItype)(bl)));		\
   } while (0)
 #define umul_ppmm(xh, xl, m0, m1)					\
   do {									\


More information about the gmp-commit mailing list