소스 검색

* 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));