m68k/cgcpu.pas, tcg68k.g_concatcopy:

use the correct flag for the copy loop: we jump back to the copy code as long as the value is positive aka BPL instead of BMI

This fixes around 30 tests (it fixes a quite bit more, but now some other tests seem to be broken...)

git-svn-id: trunk@23373 -
This commit is contained in:
svenbarth 2013-01-13 16:21:59 +00:00
parent 72d1b249db
commit 252744ad24

View File

@ -1635,7 +1635,7 @@ unit cgcpu;
begin
{ Coldfire does not support DBRA }
list.concat(taicpu.op_const_reg(A_SUB,S_L,1,hregister));
list.concat(taicpu.op_sym(A_BMI,S_L,hl));
list.concat(taicpu.op_sym(A_BPL,S_L,hl));
end
else
list.concat(taicpu.op_reg_sym(A_DBRA,S_L,hregister,hl));