mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 15:49:26 +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
|
||||
as both will be in a fpureg }
|
||||
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));
|
||||
if left.location.loc <> LOC_CFPUREGISTER then
|
||||
location.Register := left.location.Register
|
||||
else
|
||||
location.Register := right.location.Register;
|
||||
location.register:=cg.getfpuregister(current_asmdata.CurrAsmList,location.size);
|
||||
|
||||
case nodetype of
|
||||
addn:
|
||||
|
Loading…
Reference in New Issue
Block a user