Commit de5c90ff by Kazuhiro Inaoka Committed by Nick Clifton

* longlong.h: Fix macros for m32r add_ssaaaa and sub_ddmmss.

From-SVN: r83174
parent 3dd8069d
...@@ -12,6 +12,8 @@ ...@@ -12,6 +12,8 @@
(m32r_return_addr): Added for __builtin_return_address(0). (m32r_return_addr): Added for __builtin_return_address(0).
(m32r_reload_lr): Ditto. (m32r_reload_lr): Ditto.
* longlong.h: Fix macros for m32r add_ssaaaa and sub_ddmmss.
2004-06-15 Paolo Bonzini <bonzini@gnu.org> 2004-06-15 Paolo Bonzini <bonzini@gnu.org>
* doc/install.texi (Prerequisites): Update libbanshee, * doc/install.texi (Prerequisites): Update libbanshee,
......
...@@ -376,17 +376,17 @@ UDItype __umulsidi3 (USItype, USItype); ...@@ -376,17 +376,17 @@ UDItype __umulsidi3 (USItype, USItype);
#if defined (__M32R__) && W_TYPE_SIZE == 32 #if defined (__M32R__) && W_TYPE_SIZE == 32
#define add_ssaaaa(sh, sl, ah, al, bh, bl) \ #define add_ssaaaa(sh, sl, ah, al, bh, bl) \
/* The cmp clears the condition bit. */ \ /* The cmp clears the condition bit. */ \
__asm__ ("cmp %0,%0\n\taddx %%5,%1\n\taddx %%3,%0" \ __asm__ ("cmp %0,%0\n\taddx %1,%5\n\taddx %0,%3" \
: "=r" ((USItype) (sh)), \ : "=r" ((USItype) (sh)), \
"=&r" ((USItype) (sl)) \ "=&r" ((USItype) (sl)) \
: "%0" ((USItype) (ah)), \ : "0" ((USItype) (ah)), \
"r" ((USItype) (bh)), \ "r" ((USItype) (bh)), \
"%1" ((USItype) (al)), \ "1" ((USItype) (al)), \
"r" ((USItype) (bl)) \ "r" ((USItype) (bl)) \
: "cbit") : "cbit")
#define sub_ddmmss(sh, sl, ah, al, bh, bl) \ #define sub_ddmmss(sh, sl, ah, al, bh, bl) \
/* The cmp clears the condition bit. */ \ /* The cmp clears the condition bit. */ \
__asm__ ("cmp %0,%0\n\tsubx %5,%1\n\tsubx %3,%0" \ __asm__ ("cmp %0,%0\n\tsubx %1,%5\n\tsubx %0,%3" \
: "=r" ((USItype) (sh)), \ : "=r" ((USItype) (sh)), \
"=&r" ((USItype) (sl)) \ "=&r" ((USItype) (sl)) \
: "0" ((USItype) (ah)), \ : "0" ((USItype) (ah)), \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment