mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-25 02:53:48 +08:00
* armemu.c (MultiplyAdd64): Fix computation of flag N.
This commit is contained in:
parent
6d5be9157e
commit
ee9a777240
@ -1,3 +1,7 @@
|
||||
2000-06-22 Alexandre Oliva <aoliva@cygnus.com>
|
||||
|
||||
* armemu.c (MultiplyAdd64): Fix computation of flag N.
|
||||
|
||||
2000-06-20 Alexandre Oliva <aoliva@cygnus.com>
|
||||
|
||||
* armemu.h (NEGBRANCH): Do not overwrite the two most significant
|
||||
|
@ -3871,10 +3871,9 @@ MultiplyAdd64 (ARMul_State * state, ARMword instr, int msigned, int scc)
|
||||
|
||||
if (scc)
|
||||
{
|
||||
if ((RdHi == 0) && (RdLo == 0))
|
||||
ARMul_NegZero (state, RdHi); /* zero value */
|
||||
else
|
||||
ARMul_NegZero (state, scc); /* non-zero value */
|
||||
/* Ensure that both RdHi and RdLo are used to compute Z, but
|
||||
don't let RdLo's sign bit make it to N. */
|
||||
ARMul_NegZero (state, RdHi | (RdLo >> 16) | (RdLo & 0xFFFF));
|
||||
}
|
||||
|
||||
return scount + 1; /* extra cycle for addition */
|
||||
|
Loading…
Reference in New Issue
Block a user