mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-26 15:58:18 +02:00
* allow swapping of operands for three operand instructions if they are commutative
This commit is contained in:
parent
b87e22151a
commit
2e86cdb620
@ -2130,7 +2130,7 @@ unit nx86add;
|
|||||||
((nodetype=addn) and (left.location.loc in [LOC_REGISTER,LOC_CREGISTER,LOC_CONSTANT]) and (right.location.loc in [LOC_REGISTER,LOC_CREGISTER,LOC_CONSTANT])) then
|
((nodetype=addn) and (left.location.loc in [LOC_REGISTER,LOC_CREGISTER,LOC_CONSTANT]) and (right.location.loc in [LOC_REGISTER,LOC_CREGISTER,LOC_CONSTANT])) then
|
||||||
begin
|
begin
|
||||||
{ allocate registers }
|
{ allocate registers }
|
||||||
force_reg_left_right(false,true);
|
force_reg_left_right(nodetype<>subn,true);
|
||||||
set_result_location_reg;
|
set_result_location_reg;
|
||||||
if nodetype<>subn then
|
if nodetype<>subn then
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user