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

mercurial at gmplib.org mercurial at gmplib.org
Wed Jan 15 22:02:54 UTC 2020


details:   /var/hg/gmp/rev/e49e58d38745
changeset: 18016:e49e58d38745
user:      Torbjorn Granlund <tg at gmplib.org>
date:      Wed Jan 15 13:30:36 2020 +0100
description:
Add missing FUNC_EXIT.

details:   /var/hg/gmp/rev/1232290aeb65
changeset: 18017:1232290aeb65
user:      Torbjorn Granlund <tg at gmplib.org>
date:      Wed Jan 15 23:01:20 2020 +0100
description:
Add CLOBBER_CC for powerpc asm.

diffstat:

 mpn/generic/div_qr_1n_pi1.c |  3 ++-
 mpn/generic/div_qr_1n_pi2.c |  6 ++++--
 mpn/generic/div_qr_1u_pi2.c |  3 ++-
 mpn/generic/div_qr_2.c      |  6 ++++--
 mpn/generic/mod_1_1.c       |  3 ++-
 mpn/x86_64/bt1/gcd_11.asm   |  1 +
 6 files changed, 15 insertions(+), 7 deletions(-)

diffs (96 lines):

diff -r 94b7084643ae -r 1232290aeb65 mpn/generic/div_qr_1n_pi1.c
--- a/mpn/generic/div_qr_1n_pi1.c	Mon Jan 13 13:37:08 2020 +0100
+++ b/mpn/generic/div_qr_1n_pi1.c	Wed Jan 15 23:01:20 2020 +0100
@@ -114,7 +114,8 @@
 	     "subfe	%0, %0, %0\n\t"					\
 	     "nor	%0, %0, %0"					\
 	   : "=r" (m), "=r" (s1), "=&r" (s0)				\
-	   : "r"  (a1), "r" (b1), "%r" (a0), "rI" (b0))
+	   : "r"  (a1), "r" (b1), "%r" (a0), "rI" (b0)			\
+	   __CLOBBER_CC)
 #endif
 
 #if defined (__s390x__) && W_TYPE_SIZE == 64
diff -r 94b7084643ae -r 1232290aeb65 mpn/generic/div_qr_1n_pi2.c
--- a/mpn/generic/div_qr_1n_pi2.c	Mon Jan 13 13:37:08 2020 +0100
+++ b/mpn/generic/div_qr_1n_pi2.c	Wed Jan 15 23:01:20 2020 +0100
@@ -73,7 +73,8 @@
 #define add_sssaaaa(s2, s1, s0, a1, a0, b1, b0)				\
   __asm__ ("adds\t%2, %x6, %7\n\tadcs\t%1, %x4, %x5\n\tadc\t%0, %3, xzr"\
 	   : "=r" (s2), "=&r" (s1), "=&r" (s0)				\
-	   : "rZ" (s2), "%rZ"  (a1), "rZ" (b1), "%rZ" (a0), "rI" (b0) __CLOBBER_CC)
+	   : "rZ" (s2), "%rZ"  (a1), "rZ" (b1), "%rZ" (a0), "rI" (b0)	\
+	     __CLOBBER_CC)
 #endif
 
 #if HAVE_HOST_CPU_FAMILY_powerpc && !defined (_LONG_LONG_LIMB)
@@ -83,7 +84,8 @@
 #define add_sssaaaa(s2, s1, s0, a1, a0, b1, b0)				\
   __asm__ ("add%I7c\t%2,%6,%7\n\tadde\t%1,%4,%5\n\taddze\t%0,%3"	\
 	   : "=r" (s2), "=&r" (s1), "=&r" (s0)				\
-	   : "r"  (s2), "r"  (a1), "r" (b1), "%r" (a0), "rI" (b0))
+	   : "r"  (s2), "r"  (a1), "r" (b1), "%r" (a0), "rI" (b0)	\
+	     __CLOBBER_CC)
 #endif
 
 #endif /* __GNUC__ */
diff -r 94b7084643ae -r 1232290aeb65 mpn/generic/div_qr_1u_pi2.c
--- a/mpn/generic/div_qr_1u_pi2.c	Mon Jan 13 13:37:08 2020 +0100
+++ b/mpn/generic/div_qr_1u_pi2.c	Wed Jan 15 23:01:20 2020 +0100
@@ -83,7 +83,8 @@
 #define add_sssaaaa(s2, s1, s0, a1, a0, b1, b0)				\
   __asm__ ("add%I7c\t%2,%6,%7\n\tadde\t%1,%4,%5\n\taddze\t%0,%3"	\
 	   : "=r" (s2), "=&r" (s1), "=&r" (s0)				\
-	   : "r"  (s2), "r"  (a1), "r" (b1), "%r" (a0), "rI" (b0))
+	   : "r"  (s2), "r"  (a1), "r" (b1), "%r" (a0), "rI" (b0)	\
+	     __CLOBBER_CC)
 #endif
 
 #endif /* __GNUC__ */
diff -r 94b7084643ae -r 1232290aeb65 mpn/generic/div_qr_2.c
--- a/mpn/generic/div_qr_2.c	Mon Jan 13 13:37:08 2020 +0100
+++ b/mpn/generic/div_qr_2.c	Wed Jan 15 23:01:20 2020 +0100
@@ -78,7 +78,8 @@
 #define add_sssaaaa(s2, s1, s0, a1, a0, b1, b0)				\
   __asm__ ("adds\t%2, %x6, %7\n\tadcs\t%1, %x4, %x5\n\tadc\t%0, %3, xzr"\
 	   : "=r" (s2), "=&r" (s1), "=&r" (s0)				\
-	   : "rZ" (s2), "%rZ"  (a1), "rZ" (b1), "%rZ" (a0), "rI" (b0) __CLOBBER_CC)
+	   : "rZ" (s2), "%rZ"  (a1), "rZ" (b1), "%rZ" (a0), "rI" (b0)	\
+	     __CLOBBER_CC)
 #endif
 
 #if HAVE_HOST_CPU_FAMILY_powerpc && !defined (_LONG_LONG_LIMB)
@@ -88,7 +89,8 @@
 #define add_sssaaaa(s2, s1, s0, a1, a0, b1, b0)				\
   __asm__ ("add%I7c\t%2,%6,%7\n\tadde\t%1,%4,%5\n\taddze\t%0,%3"	\
 	   : "=r" (s2), "=&r" (s1), "=&r" (s0)				\
-	   : "r"  (s2), "r"  (a1), "r" (b1), "%r" (a0), "rI" (b0))
+	   : "r"  (s2), "r"  (a1), "r" (b1), "%r" (a0), "rI" (b0)	\
+	     __CLOBBER_CC)
 #endif
 
 #endif /* __GNUC__ */
diff -r 94b7084643ae -r 1232290aeb65 mpn/generic/mod_1_1.c
--- a/mpn/generic/mod_1_1.c	Mon Jan 13 13:37:08 2020 +0100
+++ b/mpn/generic/mod_1_1.c	Wed Jan 15 23:01:20 2020 +0100
@@ -113,7 +113,8 @@
 	     "subfe	%0, %0, %0\n\t"					\
 	     "nor	%0, %0, %0"					\
 	   : "=r" (m), "=r" (s1), "=&r" (s0)				\
-	   : "r"  (a1), "r" (b1), "%r" (a0), "rI" (b0))
+	   : "r"  (a1), "r" (b1), "%r" (a0), "rI" (b0)			\
+	     __CLOBBER_CC)
 #endif
 
 #if defined (__s390x__) && W_TYPE_SIZE == 64
diff -r 94b7084643ae -r 1232290aeb65 mpn/x86_64/bt1/gcd_11.asm
--- a/mpn/x86_64/bt1/gcd_11.asm	Mon Jan 13 13:37:08 2020 +0100
+++ b/mpn/x86_64/bt1/gcd_11.asm	Wed Jan 15 23:01:20 2020 +0100
@@ -110,6 +110,7 @@
 
 L(end):	mov	v0, %rax
 	C rdx = 0 for the benefit of internal gcd_22 call
+	FUNC_EXIT()
 	ret
 
 L(count_better):


More information about the gmp-commit mailing list