mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-11 20:49:14 +02:00
Fix AVR comparison with zero.
git-svn-id: trunk@32589 -
This commit is contained in:
parent
42e08b4c01
commit
159c28eca8
@ -1599,17 +1599,17 @@ unit cgcpu;
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
if swapped then
|
if swapped then
|
||||||
list.concat(taicpu.op_reg_reg(A_CP,reg,NR_R1))
|
list.concat(taicpu.op_reg_reg(A_CP,NR_R1,reg))
|
||||||
else
|
else
|
||||||
list.concat(taicpu.op_reg_reg(A_CP,NR_R1,reg));
|
list.concat(taicpu.op_reg_reg(A_CP,reg,NR_R1));
|
||||||
|
|
||||||
for i:=2 to tcgsize2size[size] do
|
for i:=2 to tcgsize2size[size] do
|
||||||
begin
|
begin
|
||||||
reg:=GetNextReg(reg);
|
reg:=GetNextReg(reg);
|
||||||
if swapped then
|
if swapped then
|
||||||
list.concat(taicpu.op_reg_reg(A_CPC,reg,NR_R1))
|
list.concat(taicpu.op_reg_reg(A_CPC,NR_R1,reg))
|
||||||
else
|
else
|
||||||
list.concat(taicpu.op_reg_reg(A_CPC,NR_R1,reg));
|
list.concat(taicpu.op_reg_reg(A_CPC,reg,NR_R1));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
a_jmp_cond(list,cmp_op,l);
|
a_jmp_cond(list,cmp_op,l);
|
||||||
|
Loading…
Reference in New Issue
Block a user