diff --git a/compiler/ncgset.pas b/compiler/ncgset.pas index 3a2f180a0f..517a1f4549 100644 --- a/compiler/ncgset.pas +++ b/compiler/ncgset.pas @@ -739,7 +739,7 @@ implementation begin scratch_reg:=hlcg.getintregister(current_asmdata.CurrAsmList,opsize); gensub(tcgint(hp^._low.svalue)); - hlcg.a_cmp_const_reg_label(current_asmdata.CurrAsmList, opsize, jmp_le, tcgint(hp^._high.svalue-hp^._low.svalue), hregister, blocklabel(hp^.blockid)) + hlcg.a_cmp_const_reg_label(current_asmdata.CurrAsmList, opsize, OC_BE, tcgint(hp^._high.svalue-hp^._low.svalue), hregister, blocklabel(hp^.blockid)) end; end; hlcg.a_jmp_always(current_asmdata.CurrAsmList,elselabel); diff --git a/compiler/x86/nx86set.pas b/compiler/x86/nx86set.pas index 0630b96e5d..4bb349611a 100644 --- a/compiler/x86/nx86set.pas +++ b/compiler/x86/nx86set.pas @@ -330,7 +330,7 @@ implementation else begin cg.a_op_const_reg(current_asmdata.CurrAsmList, OP_SUB, opcgsize, tcgint(hp^._low.svalue), hregister); - cg.a_cmp_const_reg_label(current_asmdata.CurrAsmList, opcgsize, jmp_le, tcgint(hp^._high.svalue - hp^._low.svalue), hregister,blocklabel(hp^.blockid)); + cg.a_cmp_const_reg_label(current_asmdata.CurrAsmList, opcgsize, OC_BE, tcgint(hp^._high.svalue - hp^._low.svalue), hregister,blocklabel(hp^.blockid)); end; end; cg.a_jmp_always(current_asmdata.CurrAsmList,elselabel);