Browse Source

* SPARC: r26561 caused a_op_const_reg_reg used for zero-extending 8-bit values to be optimized away. Fixed by replacing it with an explicit instruction.

git-svn-id: trunk@26566 -
sergei 11 năm trước cách đây
mục cha
commit
534ecbda9f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      compiler/sparc/cgcpu.pas

+ 1 - 1
compiler/sparc/cgcpu.pas

@@ -510,7 +510,7 @@ implementation
              (tosize = OS_16)) then
              (tosize = OS_16)) then
            case tosize of
            case tosize of
              OS_8 :
              OS_8 :
-               a_op_const_reg_reg(list,OP_AND,tosize,$ff,reg1,reg2);
+               list.concat(taicpu.op_reg_const_reg(A_AND,reg1,$ff,reg2));
              OS_16 :
              OS_16 :
                begin
                begin
                  list.concat(taicpu.op_reg_const_reg(A_SLL,reg1,16,reg2));
                  list.concat(taicpu.op_reg_const_reg(A_SLL,reg1,16,reg2));