mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-06 14:29:33 +01:00
* avoid useless GetNextReg calls in second_cmp for avr
git-svn-id: trunk@22834 -
This commit is contained in:
parent
fd8827d379
commit
f76ba05758
@ -193,12 +193,15 @@ interface
|
|||||||
|
|
||||||
for i:=2 to tcgsize2size[left.location.size] do
|
for i:=2 to tcgsize2size[left.location.size] do
|
||||||
begin
|
begin
|
||||||
tmpreg1:=GetNextReg(tmpreg1);
|
|
||||||
tmpreg2:=GetNextReg(tmpreg2);
|
|
||||||
if i=5 then
|
if i=5 then
|
||||||
begin
|
begin
|
||||||
tmpreg1:=left.location.registerhi;
|
tmpreg1:=left.location.registerhi;
|
||||||
tmpreg2:=right.location.registerhi;
|
tmpreg2:=right.location.registerhi;
|
||||||
|
end
|
||||||
|
else
|
||||||
|
begin
|
||||||
|
tmpreg1:=GetNextReg(tmpreg1);
|
||||||
|
tmpreg2:=GetNextReg(tmpreg2);
|
||||||
end;
|
end;
|
||||||
current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg(A_CPC,tmpreg1,tmpreg2));
|
current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg(A_CPC,tmpreg1,tmpreg2));
|
||||||
end;
|
end;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user