mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-29 19:20:38 +02:00
* don't reuse registers
git-svn-id: trunk@5483 -
This commit is contained in:
parent
d89409f4b4
commit
01a20b25a2
@ -851,15 +851,16 @@ unit cgcpu;
|
||||
case FromSize of
|
||||
OS_16,OS_S16:
|
||||
begin
|
||||
a_loadaddr_ref_reg(list,ref,reg);
|
||||
reference_reset_base(usedtmpref,reg,0);
|
||||
tmpreg3:=getintregister(list,OS_INT);
|
||||
a_loadaddr_ref_reg(list,ref,tmpreg3);
|
||||
reference_reset_base(usedtmpref,tmpreg3,0);
|
||||
shifterop_reset(so);so.shiftmode:=SM_LSL;so.shiftimm:=8;
|
||||
tmpreg:=getintregister(list,OS_INT);
|
||||
a_internal_load_ref_reg(list,OS_8,OS_8,usedtmpref,tmpreg);
|
||||
inc(usedtmpref.offset);
|
||||
tmpreg2:=getintregister(list,OS_INT);
|
||||
if FromSize=OS_16 then
|
||||
a_internal_load_ref_reg(list,OS_8,OS_8,usedtmpref,tmpreg2)
|
||||
a_internal_load_ref_reg(list,OS_8,OS_8,usedtmpref,tmpreg2)
|
||||
else
|
||||
a_internal_load_ref_reg(list,OS_S8,OS_S8,usedtmpref,tmpreg2);
|
||||
list.concat(taicpu.op_reg_reg_reg_shifterop(A_ORR,reg,tmpreg,tmpreg2,so));
|
||||
|
Loading…
Reference in New Issue
Block a user