Browse Source

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 -

svenbarth 12 năm trước cách đây
mục cha
commit
252744ad24
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      compiler/m68k/cgcpu.pas

+ 1 - 1
compiler/m68k/cgcpu.pas

@@ -1635,7 +1635,7 @@ unit cgcpu;
                      begin
                      begin
                        { Coldfire does not support DBRA }
                        { Coldfire does not support DBRA }
                        list.concat(taicpu.op_const_reg(A_SUB,S_L,1,hregister));
                        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
                      end
                    else
                    else
                      list.concat(taicpu.op_reg_sym(A_DBRA,S_L,hregister,hl));
                      list.concat(taicpu.op_reg_sym(A_DBRA,S_L,hregister,hl));