Przeglądaj źródła

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

git-svn-id: trunk@44006 -
florian 5 lat temu
rodzic
commit
08c2afb0a4
1 zmienionych plików z 1 dodań i 1 usunięć
  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 :
                  LOC_REGISTER,LOC_CREGISTER,LOC_REFERENCE,LOC_CREFERENCE :
                    begin
                    begin
                      hlcg.location_force_reg(current_asmdata.CurrAsmList,left.location,left.resultdef,left.resultdef,true);
                      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;
                      tmpreg:=left.location.register;
                      for i:=2 to tcgsize2size[left.location.size] do
                      for i:=2 to tcgsize2size[left.location.size] do