Fix AVR comparison with zero.

git-svn-id: trunk@32589 -
This commit is contained in:
Jeppe Johansen 2015-12-05 15:25:33 +00:00
parent 42e08b4c01
commit 159c28eca8

View File

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