mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-22 02:09:29 +02:00
* fixed web bug #4058 (missing swapleftright for subtraction if overflow
checking is turned on) git-svn-id: trunk@327 -
This commit is contained in:
parent
fe4e35d0cf
commit
2b4d3312f7
@ -778,6 +778,8 @@ interface
|
|||||||
subn :
|
subn :
|
||||||
begin
|
begin
|
||||||
op:=OP_SUB;
|
op:=OP_SUB;
|
||||||
|
if (nf_swaped in flags) then
|
||||||
|
swapleftright;
|
||||||
end;
|
end;
|
||||||
ltn,lten,
|
ltn,lten,
|
||||||
gtn,gten,
|
gtn,gten,
|
||||||
@ -906,9 +908,6 @@ interface
|
|||||||
end;
|
end;
|
||||||
subn:
|
subn:
|
||||||
begin
|
begin
|
||||||
if (nf_swaped in flags) then
|
|
||||||
swapleftright;
|
|
||||||
|
|
||||||
if left.location.loc <> LOC_CONSTANT then
|
if left.location.loc <> LOC_CONSTANT then
|
||||||
begin
|
begin
|
||||||
if (location.register64.reglo = NR_NO) then
|
if (location.register64.reglo = NR_NO) then
|
||||||
|
Loading…
Reference in New Issue
Block a user