aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>1993-01-28 15:55:26 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>1993-01-28 15:55:26 +0000
commitbb66e0f69a42afd9422356d8ea0e8a7541049be9 (patch)
treefda96aecb2fe323e106d930308ac805fab7f503a /gcc
parent6574a8c4c3b97375fc3175aa901aa5dfa4711f62 (diff)
downloadgcc-bb66e0f69a42afd9422356d8ea0e8a7541049be9.zip
gcc-bb66e0f69a42afd9422356d8ea0e8a7541049be9.tar.gz
gcc-bb66e0f69a42afd9422356d8ea0e8a7541049be9.tar.bz2
Use %/ before register names in 68000 version of umul_ppmm.
From-SVN: r3377
Diffstat (limited to 'gcc')
-rw-r--r--gcc/longlong.h49
1 files changed, 25 insertions, 24 deletions
diff --git a/gcc/longlong.h b/gcc/longlong.h
index 522ac28..c594a1f 100644
--- a/gcc/longlong.h
+++ b/gcc/longlong.h
@@ -411,33 +411,34 @@
: "=d" ((USItype)(count)) \
: "od" ((USItype)(x)), "n" (0))
#else /* not mc68020 */
+/* %/ inserts REGISTER_PREFIX. */
#define umul_ppmm(xh, xl, a, b) \
__asm__ ("| Inlined umul_ppmm
- movel %2,d0
- movel %3,d1
- movel d0,d2
- swap d0
- movel d1,d3
- swap d1
- movew d2,d4
- mulu d3,d4
- mulu d1,d2
- mulu d0,d3
- mulu d0,d1
- movel d4,d0
- eorw d0,d0
- swap d0
- addl d0,d2
- addl d3,d2
+ movel %2,%/d0
+ movel %3,%/d1
+ movel %/d0,%/d2
+ swap %/d0
+ movel %/d1,%/d3
+ swap %/d1
+ movew %/d2,%/d4
+ mulu %/d3,%/d4
+ mulu %/d1,%/d2
+ mulu %/d0,%/d3
+ mulu %/d0,%/d1
+ movel %/d4,%/d0
+ eorw %/d0,%/d0
+ swap %/d0
+ addl %/d0,%/d2
+ addl %/d3,%/d2
jcc 1f
- addl #65536,d1
-1: swap d2
- moveq #0,d0
- movew d2,d0
- movew d4,d2
- movel d2,%1
- addl d1,d0
- movel d0,%0" \
+ addl #65536,%/d1
+1: swap %/d2
+ moveq #0,%/d0
+ movew %/d2,%/d0
+ movew %/d4,%/d2
+ movel %/d2,%1
+ addl %/d1,%/d0
+ movel %/d0,%0" \
: "=g" ((USItype)(xh)), \
"=g" ((USItype)(xl)) \
: "g" ((USItype)(a)), \