From 9a1d84fb16d3439402fef7b5866c2c341cf8e9db Mon Sep 17 00:00:00 2001 From: Chris Demetriou Date: Wed, 18 Jun 2003 01:12:03 +0000 Subject: 2003-06-17 Richard Sandiford * mips.igen (do_dmultx): Fix check for negative operands. --- sim/mips/ChangeLog | 4 ++++ sim/mips/mips.igen | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/sim/mips/ChangeLog b/sim/mips/ChangeLog index 4d20a00..e5b5216 100644 --- a/sim/mips/ChangeLog +++ b/sim/mips/ChangeLog @@ -1,3 +1,7 @@ +2003-06-17 Richard Sandiford + + * mips.igen (do_dmultx): Fix check for negative operands. + 2003-05-16 Ian Lance Taylor * Makefile.in (SHELL): Make sure this is defined. diff --git a/sim/mips/mips.igen b/sim/mips/mips.igen index 81fb200..358c8ab 100644 --- a/sim/mips/mips.igen +++ b/sim/mips/mips.igen @@ -1347,12 +1347,12 @@ sign = 0; if (signed_p) { - if (op1 < 0) + if ((signed64) op1 < 0) { op1 = - op1; ++sign; } - if (op2 < 0) + if ((signed64) op2 < 0) { op2 = - op2; ++sign; -- cgit v1.1