summaryrefslogtreecommitdiff
path: root/longlong.h
diff options
context:
space:
mode:
authortege <tege@gmplib.org>2001-02-02 22:20:38 +0100
committertege <tege@gmplib.org>2001-02-02 22:20:38 +0100
commitea59920df632ea3162cb09b3e7e20f536f14f99a (patch)
treeb1594e4d694e8946cf84a7c73a1750fd6022d97f /longlong.h
parentd798a177b83438656db2ab910d2371aac4695bf2 (diff)
downloadgmp-ea59920df632ea3162cb09b3e7e20f536f14f99a.tar.gz
(arm): Add __CLOBBER_CC to add_ssaaaa and sub_ddmmss.
Diffstat (limited to 'longlong.h')
-rw-r--r--longlong.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/longlong.h b/longlong.h
index 2b5221e48..4d470b3cb 100644
--- a/longlong.h
+++ b/longlong.h
@@ -298,12 +298,12 @@ extern UDItype __MPN(udiv_qrnnd) _PROTO ((UDItype, UDItype, UDItype, UDItype *))
#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) \
- : "%r" (ah), "rI" (bh), "%r" (al), "rI" (bl))
+ : "%r" (ah), "rI" (bh), "%r" (al), "rI" (bl) __CLOBBER_CC)
#define sub_ddmmss(sh, sl, ah, al, bh, bl) \
__asm__ ("subs\t%1, %4, %5\n\tsbc\t%0, %2, %3" \
: "=r" (sh), "=&r" (sl) \
- : "r" (ah), "rI" (bh), "r" (al), "rI" (bl))
-#if 1 || defined (__arm_m__) /* `M' series has widening multiply support */
+ : "r" (ah), "rI" (bh), "r" (al), "rI" (bl) __CLOBBER_CC)
+#if 1 || defined (__arm_m__) /* `M' series has widening multiply support */
#define umul_ppmm(xh, xl, a, b) \
__asm__ ("umull %0,%1,%2,%3" : "=&r" (xl), "=&r" (xh) : "r" (a), "r" (b))
#define smul_ppmm(xh, xl, a, b) \
@@ -497,7 +497,7 @@ extern USItype __MPN(udiv_qrnnd) _PROTO ((USItype *, USItype, USItype, USItype))
__asm__ ("mull %3" \
: "=a" (w0), "=d" (w1) \
: "%0" ((USItype)(u)), "rm" ((USItype)(v)))
-#define udiv_qrnnd(q, r, n1, n0, dx) /* d renamed to dx avoiding */ \
+#define udiv_qrnnd(q, r, n1, n0, dx) /* d renamed to dx avoiding "=d" */\
__asm__ ("divl %4" /* stringification in K&R C */ \
: "=a" (q), "=d" (r) \
: "0" ((USItype)(n0)), "1" ((USItype)(n1)), "rm" ((USItype)(dx)))