mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-15 10:40:13 +02:00
* do not location_force_reg in tcgshlshrnode.second_integer if left is already in a register
git-svn-id: trunk@26797 -
This commit is contained in:
parent
ddb78fefdc
commit
3dddd01309
@ -478,7 +478,10 @@ implementation
|
||||
end;
|
||||
{$endif cpunodefaultint}
|
||||
|
||||
hlcg.location_force_reg(current_asmdata.CurrAsmList,left.location,left.resultdef,opdef,true);
|
||||
if not(left.location.loc in [LOC_CREGISTER,LOC_REGISTER]) or
|
||||
{ location_force_reg can be also used to change the size of a register }
|
||||
(left.location.size<>opsize) then
|
||||
hlcg.location_force_reg(current_asmdata.CurrAsmList,left.location,left.resultdef,opdef,true);
|
||||
location_reset(location,LOC_REGISTER,opsize);
|
||||
location.register:=cg.getintregister(current_asmdata.CurrAsmList,opsize);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user