summaryrefslogtreecommitdiff
path: root/longlong.h
diff options
context:
space:
mode:
authortege <tege@gmplib.org>2005-05-14 19:03:32 +0200
committertege <tege@gmplib.org>2005-05-14 19:03:32 +0200
commit83c8912e4a4011248b8f78eb6d8f40682119ca44 (patch)
tree571676c00d9011aadc3f77fd4a94e5e515dca6e8 /longlong.h
parent7dedcc118f2dc627749192404b8940f643b50a57 (diff)
downloadgmp-83c8912e4a4011248b8f78eb6d8f40682119ca44.tar.gz
(add_ssaaaa) [x86_64]: Restrict allowed immediate operands.
(sub_ddmmss) [x86_64]: Likewise.
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 072b35eab..ad7e82df4 100644
--- a/longlong.h
+++ b/longlong.h
@@ -799,13 +799,13 @@ extern UWtype __MPN(udiv_qrnnd) _PROTO ((UWtype *, UWtype, UWtype, UWtype));
#define add_ssaaaa(sh, sl, ah, al, bh, bl) \
__asm__ ("addq %5,%1\n\tadcq %3,%0" \
: "=r" ((UDItype)(sh)), "=&r" ((UDItype)(sl)) \
- : "0" ((UDItype)(ah)), "g" ((UDItype)(bh)), \
- "%1" ((UDItype)(al)), "g" ((UDItype)(bl)))
+ : "0" ((UDItype)(ah)), "rme" ((UDItype)(bh)), \
+ "%1" ((UDItype)(al)), "rme" ((UDItype)(bl)))
#define sub_ddmmss(sh, sl, ah, al, bh, bl) \
__asm__ ("subq %5,%1\n\tsbbq %3,%0" \
: "=r" ((UDItype)(sh)), "=&r" ((UDItype)(sl)) \
- : "0" ((UDItype)(ah)), "g" ((UDItype)(bh)), \
- "1" ((UDItype)(al)), "g" ((UDItype)(bl)))
+ : "0" ((UDItype)(ah)), "rme" ((UDItype)(bh)), \
+ "1" ((UDItype)(al)), "rme" ((UDItype)(bl)))
#define umul_ppmm(w1, w0, u, v) \
__asm__ ("mulq %3" \
: "=a" (w0), "=d" (w1) \