* simops.c (Multiply64): Don't store into register zero.

This commit is contained in:
Jim Wilson 1997-09-16 01:45:23 +00:00
parent d30a2be45d
commit 5262de2167
2 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,9 @@
start-sanitize-v850e
Mon Sep 15 18:44:05 1997 Jim Wilson <wilson@cygnus.com>
* simops.c (Multiply64): Don't store into register zero.
start-sanitize-v850e
Tue Sep 16 09:02:00 1997 Andrew Cagney <cagney@b1.cygnus.com>
* Makefile.in (semantics.o): Add dependency.

View File

@ -414,8 +414,11 @@ Multiply64 (boolean sign, unsigned long op0)
RdLo += 1;
}
State.regs[ OP[1] ] = RdLo;
State.regs[ OP[2] >> 11 ] = RdHi;
/* Don't store into register 0. */
if (OP[1])
State.regs[ OP[1] ] = RdLo;
if (OP[2] >> 11)
State.regs[ OP[2] >> 11 ] = RdHi;
return;
}