浏览代码

* 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 年之前
父节点
当前提交
534ecbda9f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/sparc/cgcpu.pas

+ 1 - 1
compiler/sparc/cgcpu.pas

@@ -510,7 +510,7 @@ implementation
              (tosize = OS_16)) then
            case tosize of
              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 :
                begin
                  list.concat(taicpu.op_reg_const_reg(A_SLL,reg1,16,reg2));