diff options
author | Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com> | 2004-06-15 10:40:44 +0000 |
---|---|---|
committer | Nick Clifton <nickc@gcc.gnu.org> | 2004-06-15 10:40:44 +0000 |
commit | de5c90ffa4932daa2eb83cd6f7c831926bc5b9a5 (patch) | |
tree | 7814152137afa086a3b575d213e63fc171f95492 | |
parent | 3dd8069d498c0cef2040ea3ce54b793280dfb1a6 (diff) | |
download | gcc-de5c90ffa4932daa2eb83cd6f7c831926bc5b9a5.zip gcc-de5c90ffa4932daa2eb83cd6f7c831926bc5b9a5.tar.gz gcc-de5c90ffa4932daa2eb83cd6f7c831926bc5b9a5.tar.bz2 |
* longlong.h: Fix macros for m32r add_ssaaaa and sub_ddmmss.
From-SVN: r83174
-rw-r--r-- | gcc/ChangeLog | 2 | ||||
-rw-r--r-- | gcc/longlong.h | 8 |
2 files changed, 6 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d2c7c64..fec39d7 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -12,6 +12,8 @@ (m32r_return_addr): Added for __builtin_return_address(0). (m32r_reload_lr): Ditto. + * longlong.h: Fix macros for m32r add_ssaaaa and sub_ddmmss. + 2004-06-15 Paolo Bonzini <bonzini@gnu.org> * doc/install.texi (Prerequisites): Update libbanshee, diff --git a/gcc/longlong.h b/gcc/longlong.h index 0f5d05f..05a7065 100644 --- a/gcc/longlong.h +++ b/gcc/longlong.h @@ -376,17 +376,17 @@ UDItype __umulsidi3 (USItype, USItype); #if defined (__M32R__) && W_TYPE_SIZE == 32 #define add_ssaaaa(sh, sl, ah, al, bh, bl) \ /* 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) (sl)) \ - : "%0" ((USItype) (ah)), \ + : "0" ((USItype) (ah)), \ "r" ((USItype) (bh)), \ - "%1" ((USItype) (al)), \ + "1" ((USItype) (al)), \ "r" ((USItype) (bl)) \ : "cbit") #define sub_ddmmss(sh, sl, ah, al, bh, bl) \ /* 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) (sl)) \ : "0" ((USItype) (ah)), \ |