mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-05 22:28:06 +02:00
* do not omit location_force_reg on second operand of sar/ro* if
it is used to adapt the size of the operand git-svn-id: trunk@48855 -
This commit is contained in:
parent
01178532e5
commit
316f2429f0
@ -932,7 +932,8 @@ implementation
|
||||
else
|
||||
{$endif not cpu64bitalu and not cpuhighleveltarget}
|
||||
begin
|
||||
if not(op2.location.loc in [LOC_REGISTER,LOC_CREGISTER]) then
|
||||
if not(op2.location.loc in [LOC_REGISTER,LOC_CREGISTER]) or
|
||||
not(equal_defs(op2.resultdef,resultdef)) then
|
||||
hlcg.location_force_reg(current_asmdata.CurrAsmList,op2.location,
|
||||
op2.resultdef,resultdef,true);
|
||||
hlcg.a_op_reg_reg_reg(current_asmdata.CurrAsmList,op,resultdef,
|
||||
|
Loading…
Reference in New Issue
Block a user