瀏覽代碼

* AVR: use CP ...,r1 instead of CPI ...,0 to enable all registers being used as first operand

git-svn-id: trunk@44006 -
florian 5 年之前
父節點
當前提交
08c2afb0a4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compiler/avr/navrmat.pas

+ 1 - 1
compiler/avr/navrmat.pas

@@ -110,7 +110,7 @@ implementation
                  LOC_REGISTER,LOC_CREGISTER,LOC_REFERENCE,LOC_CREFERENCE :
                    begin
                      hlcg.location_force_reg(current_asmdata.CurrAsmList,left.location,left.resultdef,left.resultdef,true);
-                     current_asmdata.CurrAsmList.concat(taicpu.op_reg_const(A_CPI,left.location.register,0));
+                     current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg(A_CP,GetDefaultZeroReg,left.location.register));
 
                      tmpreg:=left.location.register;
                      for i:=2 to tcgsize2size[left.location.size] do