[Gmp-commit] /var/hg/gmp: More # for aarch64 immediates.

mercurial at gmplib.org mercurial at gmplib.org
Thu Apr 3 21:58:56 UTC 2014


details:   /var/hg/gmp/rev/0194a75b56b2
changeset: 16371:0194a75b56b2
user:      Marc Glisse <marc.glisse at inria.fr>
date:      Thu Apr 03 23:58:51 2014 +0200
description:
More # for aarch64 immediates.

diffstat:

 ChangeLog                 |   3 ++-
 mpn/arm64/aorsmul_1.asm   |   2 +-
 mpn/arm64/invert_limb.asm |  16 ++++++++--------
 3 files changed, 11 insertions(+), 10 deletions(-)

diffs (67 lines):

diff -r 78b033a26bbd -r 0194a75b56b2 ChangeLog
--- a/ChangeLog	Thu Apr 03 22:43:37 2014 +0200
+++ b/ChangeLog	Thu Apr 03 23:58:51 2014 +0200
@@ -1,7 +1,8 @@
 2014-04-03  Marc Glisse  <marc.glisse at inria.fr>
 
 	* mpn/arm64/mul_1.asm, mpn/arm64/gcd_1.asm: Use official b.cond syntax.
-	* mpn/arm64/invert_limb.asm: Prefix immediates with #.
+	* mpn/arm64/invert_limb.asm, mpn/arm64/aorsmul_1.asm: Prefix
+	immediates with #.
 
 2014-04-03  Torbjorn Granlund  <tege at gmplib.org>
 
diff -r 78b033a26bbd -r 0194a75b56b2 mpn/arm64/aorsmul_1.asm
--- a/mpn/arm64/aorsmul_1.asm	Thu Apr 03 22:43:37 2014 +0200
+++ b/mpn/arm64/aorsmul_1.asm	Thu Apr 03 23:58:51 2014 +0200
@@ -87,7 +87,7 @@
 	csinc	x15, x15, x15, COND
 	stp	x8, x9, [rp],#16
 
-L(2):	lsr	n, n, 2
+L(2):	lsr	n, n, #2
 	cbz	n, L(end)
 
 L(top):	ldp	x4, x5, [up],#16
diff -r 78b033a26bbd -r 0194a75b56b2 mpn/arm64/invert_limb.asm
--- a/mpn/arm64/invert_limb.asm	Thu Apr 03 22:43:37 2014 +0200
+++ b/mpn/arm64/invert_limb.asm	Thu Apr 03 23:58:51 2014 +0200
@@ -40,30 +40,30 @@
 
 ASM_START()
 PROLOGUE(mpn_invert_limb)
-	lsr	x2, x0, 54
+	lsr	x2, x0, #54
 	adrp	x1, approx_tab
 	and	x2, x2, #0x1fe
 	add	x1, x1, :lo12:approx_tab
 	ldrh	w3, [x1,x2]
-	lsr	x4, x0, 24
-	add	x4, x4, 1
-	ubfiz	x2, x3, 11, 16
+	lsr	x4, x0, #24
+	add	x4, x4, #1
+	ubfiz	x2, x3, #11, #16
 	umull	x3, w3, w3
 	mul	x3, x3, x4
 	sub	x2, x2, #1
 	sub	x2, x2, x3, lsr #40
-	lsl	x3, x2, 60
+	lsl	x3, x2, #60
 	mul	x1, x2, x2
 	msub	x1, x1, x4, x3
-	lsl	x2, x2, 13
+	lsl	x2, x2, #13
 	add	x1, x2, x1, lsr #47
-	and	x2, x0, 1
+	and	x2, x0, #1
 	neg	x3, x2
 	and	x3, x3, x1, lsr #1
 	add	x2, x2, x0, lsr #1
 	msub	x2, x1, x2, x3
 	umulh	x2, x2, x1
-	lsl	x1, x1, 31
+	lsl	x1, x1, #31
 	add	x1, x1, x2, lsr #1
 	mul	x3, x1, x0
 	umulh	x2, x1, x0


More information about the gmp-commit mailing list