aboutsummaryrefslogtreecommitdiff
path: root/target-alpha/op.c
diff options
context:
space:
mode:
Diffstat (limited to 'target-alpha/op.c')
-rw-r--r--target-alpha/op.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/target-alpha/op.c b/target-alpha/op.c
index 4093252..2a52be4 100644
--- a/target-alpha/op.c
+++ b/target-alpha/op.c
@@ -295,7 +295,7 @@ void OPPROTO op_mullv (void)
void OPPROTO op_mulq (void)
{
- T0 *= T1;
+ T0 = (int64_t)T0 * (int64_t)T1;
RETURN();
}
@@ -307,7 +307,10 @@ void OPPROTO op_mulqv (void)
void OPPROTO op_umulh (void)
{
- helper_umulh();
+ uint64_t tl, th;
+
+ mulu64(&tl, &th, T0, T1);
+ T0 = th;
RETURN();
}