mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-10 09:59:06 +08:00
* armemu.c (MultiplyAdd64): Fix computation of flag N.
This commit is contained in:
@ -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>
|
2000-06-20 Alexandre Oliva <aoliva@cygnus.com>
|
||||||
|
|
||||||
* armemu.h (NEGBRANCH): Do not overwrite the two most significant
|
* 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 (scc)
|
||||||
{
|
{
|
||||||
if ((RdHi == 0) && (RdLo == 0))
|
/* Ensure that both RdHi and RdLo are used to compute Z, but
|
||||||
ARMul_NegZero (state, RdHi); /* zero value */
|
don't let RdLo's sign bit make it to N. */
|
||||||
else
|
ARMul_NegZero (state, RdHi | (RdLo >> 16) | (RdLo & 0xFFFF));
|
||||||
ARMul_NegZero (state, scc); /* non-zero value */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return scount + 1; /* extra cycle for addition */
|
return scount + 1; /* extra cycle for addition */
|
||||||
|
Reference in New Issue
Block a user