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

mercurial at gmplib.org mercurial at gmplib.org
Sun Oct 9 20:29:01 CEST 2011


details:   /var/hg/gmp/rev/5f1901cb035d
changeset: 14287:5f1901cb035d
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Sun Oct 09 20:25:36 2011 +0200
description:
(getrusage_backwards_p): Properly cast printed values.

details:   /var/hg/gmp/rev/2df73071865f
changeset: 14288:2df73071865f
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Sun Oct 09 20:26:36 2011 +0200
description:
Save a callee-saves register less.

details:   /var/hg/gmp/rev/d15ec9db68e7
changeset: 14289:d15ec9db68e7
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Sun Oct 09 20:26:46 2011 +0200
description:
*** empty log message ***

diffstat:

 ChangeLog                   |   4 +++
 mpn/s390_64/invert_limb.asm |  57 +++++++++++++++++++++++---------------------
 tune/time.c                 |   4 +-
 3 files changed, 36 insertions(+), 29 deletions(-)

diffs (112 lines):

diff -r da0e945de32a -r d15ec9db68e7 ChangeLog
--- a/ChangeLog	Sun Oct 09 20:08:19 2011 +0200
+++ b/ChangeLog	Sun Oct 09 20:26:46 2011 +0200
@@ -1,5 +1,9 @@
 2011-10-09  Torbjorn Granlund  <tege at gmplib.org>
 
+	* mpn/s390_64/invert_limb.asm: Save a callee-saves register less.
+
+	* tune/time.c (getrusage_backwards_p): Properly cast printed values.
+
 	* 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.
diff -r da0e945de32a -r d15ec9db68e7 mpn/s390_64/invert_limb.asm
--- a/mpn/s390_64/invert_limb.asm	Sun Oct 09 20:08:19 2011 +0200
+++ b/mpn/s390_64/invert_limb.asm	Sun Oct 09 20:26:46 2011 +0200
@@ -21,51 +21,54 @@
 
 include(`../config.m4')
 
+C            cycles/limb
+C z990           92
+
 ASM_START()
 	TEXT
 	ALIGN(16)
 PROLOGUE(mpn_invert_limb)
-	stmg	%r8, %r9, 64(%r15)
-	srlg	%r1, %r2, 55
-	aghi	%r1, -256
-	agr	%r1, %r1
+	stg	%r9, 72(%r15)
+	srlg	%r9, %r2, 55
+	aghi	%r9, -256
+	agr	%r9, %r9
 	larl	%r4, approx_tab
 	srlg	%r3, %r2, 24
 	aghi	%r3, 1
 	lghi	%r5, 1
-	llgh	%r4, 0(%r1, %r4)
-	sllg	%r1, %r4, 11
+	llgh	%r4, 0(%r9, %r4)
+	sllg	%r9, %r4, 11
 	msgr	%r4, %r4
 	msgr	%r4, %r3
 	srlg	%r4, %r4, 40
-	aghi	%r1, -1
-	sgr	%r1, %r4
-	sllg	%r8, %r1, 60
-	sllg	%r9, %r1, 13
-	msgr	%r1, %r1
-	msgr	%r1, %r3
-	sgr	%r8, %r1
+	aghi	%r9, -1
+	sgr	%r9, %r4
+	sllg	%r0, %r9, 60
+	sllg	%r1, %r9, 13
+	msgr	%r9, %r9
+	msgr	%r9, %r3
+	sgr	%r0, %r9
 	ngr	%r5, %r2
 	srlg	%r4, %r2, 1
-	srlg	%r3, %r8, 47
-	agr	%r3, %r9
+	srlg	%r3, %r0, 47
+	agr	%r3, %r1
 	agr	%r4, %r5
 	msgr	%r4, %r3
-	srlg	%r9, %r3, 1
+	srlg	%r1, %r3, 1
 	lcgr	%r5, %r5
-	ngr	%r9, %r5
-	sgr	%r9, %r4
-	mlgr	%r8, %r3
-	srlg	%r1, %r8, 1
+	ngr	%r1, %r5
+	sgr	%r1, %r4
+	mlgr	%r0, %r3
+	srlg	%r9, %r0, 1
 	sllg	%r4, %r3, 31
-	agr	%r4, %r1
-	lgr	%r9, %r4
-	mlgr	%r8, %r2
-	algr	%r9, %r2
-	alcgr	%r8, %r2
+	agr	%r4, %r9
+	lgr	%r1, %r4
+	mlgr	%r0, %r2
+	algr	%r1, %r2
+	alcgr	%r0, %r2
 	lgr	%r2, %r4
-	sgr	%r2, %r8
-	lmg	%r8, %r9, 64(%r15)
+	sgr	%r2, %r0
+	lg	%r9, 72(%r15)
 	br	%r14
 EPILOGUE()
 	RODATA
diff -r da0e945de32a -r d15ec9db68e7 tune/time.c
--- a/tune/time.c	Sun Oct 09 20:08:19 2011 +0200
+++ b/tune/time.c	Sun Oct 09 20:26:46 2011 +0200
@@ -684,8 +684,8 @@
 	  if (speed_option_verbose)
 	    printf ("getrusage went backwards (attempt %d: %ld.%06ld -> %ld.%06ld)\n",
 		    i,
-		    prev.ru_utime.tv_sec, prev.ru_utime.tv_usec,
-		    next.ru_utime.tv_sec, next.ru_utime.tv_usec);
+		    (long) prev.ru_utime.tv_sec, (long) prev.ru_utime.tv_usec,
+		    (long) next.ru_utime.tv_sec, (long) next.ru_utime.tv_usec);
 	  result = 1;
 	  break;
 	}


More information about the gmp-commit mailing list