From: Chris Demetriou Date: Wed, 18 Jun 2003 01:12:03 +0000 (+0000) Subject: 2003-06-17 Richard Sandiford X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9a1d84fb16d3439402fef7b5866c2c341cf8e9db;p=binutils-gdb.git 2003-06-17 Richard Sandiford * mips.igen (do_dmultx): Fix check for negative operands. --- diff --git a/sim/mips/ChangeLog b/sim/mips/ChangeLog index 4d20a000d9f..e5b5216f0d1 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 81fb2001b27..358c8ab1750 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;