[Gmp-commit] /var/hg/gmp: Conditionalise ARM asm on !__thumb__.

mercurial at gmplib.org mercurial at gmplib.org
Thu Nov 29 20:21:16 CET 2012


details:   /var/hg/gmp/rev/9be3c73af526
changeset: 15150:9be3c73af526
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Thu Nov 29 20:21:11 2012 +0100
description:
Conditionalise ARM asm on !__thumb__.

diffstat:

 ChangeLog  |  5 +++++
 longlong.h |  2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r c224eda5f2ff -r 9be3c73af526 ChangeLog
--- a/ChangeLog	Wed Nov 28 16:20:08 2012 +0100
+++ b/ChangeLog	Thu Nov 29 20:21:11 2012 +0100
@@ -1,3 +1,8 @@
+2012-11-29  Torbjorn Granlund  <tege at gmplib.org>
+
+	From Andoni Morales Alastruey:
+	* longlong.h: Conditionalise ARM asm on !__thumb__.
+
 2012-11-28  Torbjorn Granlund  <tege at gmplib.org>
 
 	* config.guess (arm*-*-*): Support specific ARM processors.
diff -r c224eda5f2ff -r 9be3c73af526 longlong.h
--- a/longlong.h	Wed Nov 28 16:20:08 2012 +0100
+++ b/longlong.h	Thu Nov 29 20:21:11 2012 +0100
@@ -424,7 +424,7 @@
 	     "rIJ" ((USItype) (bl)))
 #endif
 
-#if defined (__arm__) && W_TYPE_SIZE == 32
+#if defined (__arm__) && !defined (__thumb__) && W_TYPE_SIZE == 32
 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \
   __asm__ ("adds\t%1, %4, %5\n\tadc\t%0, %2, %3"			\
 	   : "=r" (sh), "=&r" (sl)					\


More information about the gmp-commit mailing list