summaryrefslogtreecommitdiff
path: root/longlong.h
diff options
context:
space:
mode:
authorTorbjorn Granlund <tg@gmplib.org>2021-09-26 12:06:10 +0200
committerTorbjorn Granlund <tg@gmplib.org>2021-09-26 12:06:10 +0200
commit2d493828b23f43550e2505394acd37baa0f8a44b (patch)
tree0d4435aa55553a74793018fb00a7edfdeed2cd82 /longlong.h
parent92a6f225404c36a015f5e459575493bf010d58f9 (diff)
downloadgmp-2d493828b23f43550e2505394acd37baa0f8a44b.tar.gz
(umul_ppmm): Correct Risc V operand order.
Diffstat (limited to 'longlong.h')
-rw-r--r--longlong.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/longlong.h b/longlong.h
index 9928b3bce..bf35f5389 100644
--- a/longlong.h
+++ b/longlong.h
@@ -1657,7 +1657,7 @@ extern UWtype __MPN(udiv_qrnnd) (UWtype *, UWtype, UWtype, UWtype);
do { \
UDItype __u = (u), __v = (v); \
(pl) = __u * __v; \
- __asm__ ("mulhu\t%2, %1, %0" : "=r" (ph) : "%r" (__u), "r" (__v)); \
+ __asm__ ("mulhu\t%0, %1, %2" : "=r" (ph) : "%r" (__u), "r" (__v)); \
} while (0)
#endif