diff options
author | Chris Demetriou <cgd@google.com> | 2003-06-18 01:12:03 +0000 |
---|---|---|
committer | Chris Demetriou <cgd@google.com> | 2003-06-18 01:12:03 +0000 |
commit | 9a1d84fb16d3439402fef7b5866c2c341cf8e9db (patch) | |
tree | 8961a7667e4dd64ff1732e755f3643fed6a6b81a /sim | |
parent | f97b9cb853d19427d84a9a65716a9e049d4c480a (diff) | |
download | gdb-9a1d84fb16d3439402fef7b5866c2c341cf8e9db.zip gdb-9a1d84fb16d3439402fef7b5866c2c341cf8e9db.tar.gz gdb-9a1d84fb16d3439402fef7b5866c2c341cf8e9db.tar.bz2 |
2003-06-17 Richard Sandiford <rsandifo@redhat.com>
* mips.igen (do_dmultx): Fix check for negative operands.
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; |