* go through cg to generate jumps, so the right jump is generated always

git-svn-id: trunk@44836 -
This commit is contained in:
florian 2020-04-19 07:36:13 +00:00
parent 099faf2d2b
commit a49a776307

View File

@ -87,7 +87,7 @@ interface
end;
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;
@ -139,7 +139,7 @@ interface
else
cg.a_cmp_reg_reg_label(current_asmdata.CurrAsmList,OS_INT,cond,right.location.register,left.location.register,location.truelabel);
end;
current_asmdata.CurrAsmList.concat(taicpu.op_sym(A_J,location.falselabel));
cg.a_jmp_always(current_asmdata.CurrAsmList,location.falselabel);
end;