* avoid useless GetNextReg calls in second_cmp for avr

git-svn-id: trunk@22834 -
This commit is contained in:
florian 2012-10-23 20:13:28 +00:00
parent fd8827d379
commit f76ba05758

View File

@ -193,12 +193,15 @@ interface
for i:=2 to tcgsize2size[left.location.size] do
begin
tmpreg1:=GetNextReg(tmpreg1);
tmpreg2:=GetNextReg(tmpreg2);
if i=5 then
begin
tmpreg1:=left.location.registerhi;
tmpreg2:=right.location.registerhi;
end
else
begin
tmpreg1:=GetNextReg(tmpreg1);
tmpreg2:=GetNextReg(tmpreg2);
end;
current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg(A_CPC,tmpreg1,tmpreg2));
end;