mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 13:09:22 +02:00
* tmipsaddnode.second_addfloat: don't bother reusing locations, always allocate a new register for result.
git-svn-id: trunk@25857 -
This commit is contained in:
parent
dd472dbfb0
commit
fbf6192aff
@ -220,13 +220,10 @@ begin
|
|||||||
{ force fpureg as location, left right doesn't matter
|
{ force fpureg as location, left right doesn't matter
|
||||||
as both will be in a fpureg }
|
as both will be in a fpureg }
|
||||||
location_force_fpureg(current_asmdata.CurrAsmList, left.location, True);
|
location_force_fpureg(current_asmdata.CurrAsmList, left.location, True);
|
||||||
location_force_fpureg(current_asmdata.CurrAsmList, right.location, (left.location.loc <> LOC_CFPUREGISTER));
|
location_force_fpureg(current_asmdata.CurrAsmList, right.location, True);
|
||||||
|
|
||||||
location_reset(location, LOC_FPUREGISTER, def_cgsize(resultdef));
|
location_reset(location, LOC_FPUREGISTER, def_cgsize(resultdef));
|
||||||
if left.location.loc <> LOC_CFPUREGISTER then
|
location.register:=cg.getfpuregister(current_asmdata.CurrAsmList,location.size);
|
||||||
location.Register := left.location.Register
|
|
||||||
else
|
|
||||||
location.Register := right.location.Register;
|
|
||||||
|
|
||||||
case nodetype of
|
case nodetype of
|
||||||
addn:
|
addn:
|
||||||
|
Loading…
Reference in New Issue
Block a user