mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-08 21:49:32 +01:00
* remove usage of makeregsize on avr
git-svn-id: branches/avr@17027 -
This commit is contained in:
parent
cb003b631b
commit
4bb9407f72
@ -489,7 +489,14 @@ implementation
|
|||||||
{ load a smaller size to OS_64 }
|
{ load a smaller size to OS_64 }
|
||||||
if l.loc=LOC_REGISTER then
|
if l.loc=LOC_REGISTER then
|
||||||
begin
|
begin
|
||||||
|
{$ifdef AVR}
|
||||||
|
{ on avr, we cannot change the size of a register
|
||||||
|
due to the nature how register with size > OS8 are handled
|
||||||
|
}
|
||||||
|
hregister:=cg.getintregister(list,OS_32);
|
||||||
|
{$else AVR}
|
||||||
hregister:=cg.makeregsize(list,l.register64.reglo,OS_32);
|
hregister:=cg.makeregsize(list,l.register64.reglo,OS_32);
|
||||||
|
{$endif AVR}
|
||||||
cg.a_load_reg_reg(list,l.size,OS_32,l.register64.reglo,hregister);
|
cg.a_load_reg_reg(list,l.size,OS_32,l.register64.reglo,hregister);
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user