summaryrefslogtreecommitdiff
path: root/sim/mips/vr.igen
diff options
context:
space:
mode:
Diffstat (limited to 'sim/mips/vr.igen')
-rw-r--r--sim/mips/vr.igen4
1 files changed, 3 insertions, 1 deletions
diff --git a/sim/mips/vr.igen b/sim/mips/vr.igen
index 0eb5f4de2d9..742a85d0ca8 100644
--- a/sim/mips/vr.igen
+++ b/sim/mips/vr.igen
@@ -73,7 +73,9 @@
(long) CIA);
TRACE_ALU_INPUT2 (x, y);
- product = (unsigned_p ? x * y : EXTEND32 (x) * EXTEND32 (y));
+ product = (unsigned_p
+ ? V8_4 (x, 1) * V8_4 (y, 1)
+ : EXTEND32 (x) * EXTEND32 (y));
result = (subtract_p ? lhs - product : lhs + product);
if (saturate_p)
{