aboutsummaryrefslogtreecommitdiff
path: root/stdlib/longlong.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2004-09-10 03:38:14 +0000
committerRoland McGrath <roland@gnu.org>2004-09-10 03:38:14 +0000
commit181742f8041aef5adc85da67d96681a32ef9eb00 (patch)
tree4eeda3d036d21866dd2245ae4e0028c353c8bb49 /stdlib/longlong.h
parent1386a2bb3cf5cf3655ffe15316d5128a8fa28f71 (diff)
downloadglibc-181742f8041aef5adc85da67d96681a32ef9eb00.tar
glibc-181742f8041aef5adc85da67d96681a32ef9eb00.tar.gz
glibc-181742f8041aef5adc85da67d96681a32ef9eb00.tar.bz2
glibc-181742f8041aef5adc85da67d96681a32ef9eb00.zip
2004-09-10 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
* stdlib/longlong.h [__M32R__] (add_ssaaaa, sub_ddmmss): Fix broken instruct operands. * elf/elf.h: Add R_M32R_* relocs.
Diffstat (limited to 'stdlib/longlong.h')
-rw-r--r--stdlib/longlong.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/stdlib/longlong.h b/stdlib/longlong.h
index cd1e30ed2e..f89ae27a67 100644
--- a/stdlib/longlong.h
+++ b/stdlib/longlong.h
@@ -400,17 +400,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)), \