* 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:
sergei 2013-10-26 18:15:24 +00:00
parent dd472dbfb0
commit fbf6192aff

View File

@ -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: