* fix tcgavr.g_flags2reg for sizes > 1 byte

git-svn-id: trunk@42938 -
This commit is contained in:
florian 2019-09-07 20:19:12 +00:00
parent 8cfee11345
commit 9e5cbce6be

View File

@ -1761,6 +1761,8 @@ unit cgcpu;
var
l : TAsmLabel;
tmpflags : TResFlags;
i: Integer;
hreg: TRegister;
begin
current_asmdata.getjumplabel(l);
{
@ -1776,6 +1778,13 @@ unit cgcpu;
}
begin
list.concat(taicpu.op_reg_const(A_LDI,reg,1));
hreg:=reg;
for i:=2 to tcgsize2size[size] do
begin
hreg:=GetNextReg(hreg);
emit_mov(list,hreg,NR_R1);
end;
a_jmp_flags(list,f,l);
emit_mov(list,reg,NR_R1);
end;