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

git-svn-id: trunk@44006 -
This commit is contained in:
florian 2020-01-20 21:14:28 +00:00
parent ae8d2dc69a
commit 08c2afb0a4

View File

@ -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