mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 10:29:24 +02:00
* go through cg to generate jumps, so the right jump is generated always
git-svn-id: trunk@44836 -
This commit is contained in:
parent
099faf2d2b
commit
a49a776307
@ -87,7 +87,7 @@ interface
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
cg.a_cmp_reg_reg_label(current_asmdata.CurrAsmList,OS_INT,cond,left.location.register,right.location.register,location.truelabel);
|
cg.a_cmp_reg_reg_label(current_asmdata.CurrAsmList,OS_INT,cond,left.location.register,right.location.register,location.truelabel);
|
||||||
current_asmdata.CurrAsmList.concat(taicpu.op_sym(A_J,location.falselabel));
|
cg.a_jmp_always(current_asmdata.CurrAsmList,location.falselabel);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
@ -139,7 +139,7 @@ interface
|
|||||||
else
|
else
|
||||||
cg.a_cmp_reg_reg_label(current_asmdata.CurrAsmList,OS_INT,cond,right.location.register,left.location.register,location.truelabel);
|
cg.a_cmp_reg_reg_label(current_asmdata.CurrAsmList,OS_INT,cond,right.location.register,left.location.register,location.truelabel);
|
||||||
end;
|
end;
|
||||||
current_asmdata.CurrAsmList.concat(taicpu.op_sym(A_J,location.falselabel));
|
cg.a_jmp_always(current_asmdata.CurrAsmList,location.falselabel);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user