summaryrefslogtreecommitdiff
path: root/gcc/longlong.h
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1995-10-03 16:23:21 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1995-10-03 16:23:21 +0000
commit5e0102826ba0c219f9e9a628d7f963ab83058e50 (patch)
treef192b29a9f835e63e15398a62dbd4d48817b18c1 /gcc/longlong.h
parent3360fdeb0ed4e4d0c0a17971344b25e989491dc1 (diff)
downloadgcc-5e0102826ba0c219f9e9a628d7f963ab83058e50.tar.gz
(mips umul_ppmm): Use `l' and `h' constraints; remove mflo and mfhi
instructions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@10425 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/longlong.h')
-rw-r--r--gcc/longlong.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/gcc/longlong.h b/gcc/longlong.h
index 36b853d15f2..f824b5fcd88 100644
--- a/gcc/longlong.h
+++ b/gcc/longlong.h
@@ -552,11 +552,9 @@
#if defined (__mips__)
#define umul_ppmm(w1, w0, u, v) \
- __asm__ ("multu %2,%3
- mflo %0
- mfhi %1" \
- : "=d" ((USItype)(w0)), \
- "=d" ((USItype)(w1)) \
+ __asm__ ("multu %2,%3" \
+ : "=l" ((USItype)(w0)), \
+ "=h" ((USItype)(w1)) \
: "d" ((USItype)(u)), \
"d" ((USItype)(v)))
#define UMUL_TIME 10