X86: Fix a bug introduced to IDIV in a recent attempt to fix another bug.
This commit is contained in:
parent
33b063a2a7
commit
32c8514b45
1 changed files with 4 additions and 4 deletions
|
@ -459,7 +459,7 @@ def macroop IDIV_B_M
|
||||||
ld t8, seg, sib, disp
|
ld t8, seg, sib, disp
|
||||||
|
|
||||||
#Find the sign of the divisor
|
#Find the sign of the divisor
|
||||||
slli t0, t3, 1, flags=(ECF,), dataSize=1
|
slli t0, t8, 1, flags=(ECF,), dataSize=1
|
||||||
|
|
||||||
# Negate divisor
|
# Negate divisor
|
||||||
sub t3, t0, t8, dataSize=1
|
sub t3, t0, t8, dataSize=1
|
||||||
|
@ -531,7 +531,7 @@ def macroop IDIV_B_P
|
||||||
ld t8, seg, riprel, disp
|
ld t8, seg, riprel, disp
|
||||||
|
|
||||||
#Find the sign of the divisor
|
#Find the sign of the divisor
|
||||||
slli t0, t3, 1, flags=(ECF,), dataSize=1
|
slli t0, t8, 1, flags=(ECF,), dataSize=1
|
||||||
|
|
||||||
# Negate divisor
|
# Negate divisor
|
||||||
sub t3, t0, t8, dataSize=1
|
sub t3, t0, t8, dataSize=1
|
||||||
|
@ -678,7 +678,7 @@ def macroop IDIV_M
|
||||||
|
|
||||||
#Find the sign of the divisor
|
#Find the sign of the divisor
|
||||||
#FIXME!!! This depends on shifts setting the carry flag correctly.
|
#FIXME!!! This depends on shifts setting the carry flag correctly.
|
||||||
slli t0, t3, 1, flags=(ECF,)
|
slli t0, t8, 1, flags=(ECF,)
|
||||||
|
|
||||||
# Negate divisor
|
# Negate divisor
|
||||||
sub t3, t0, t8
|
sub t3, t0, t8
|
||||||
|
@ -754,7 +754,7 @@ def macroop IDIV_P
|
||||||
|
|
||||||
#Find the sign of the divisor
|
#Find the sign of the divisor
|
||||||
#FIXME!!! This depends on shifts setting the carry flag correctly.
|
#FIXME!!! This depends on shifts setting the carry flag correctly.
|
||||||
slli t0, t3, 1, flags=(ECF,)
|
slli t0, t8, 1, flags=(ECF,)
|
||||||
|
|
||||||
# Negate divisor
|
# Negate divisor
|
||||||
sub t3, t0, t8
|
sub t3, t0, t8
|
||||||
|
|
Loading…
Reference in a new issue