diff options
Diffstat (limited to 'sim')
-rw-r--r-- | sim/mips/ChangeLog | 4 | ||||
-rw-r--r-- | 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 <rsandifo@redhat.com> + + * mips.igen (do_dmultx): Fix check for negative operands. + 2003-05-16 Ian Lance Taylor <ian@airs.com> * 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; |