From e56ad62f09cd1090b6b3e2a604e8866859c8ad8c Mon Sep 17 00:00:00 2001 From: Jonas Maebe Date: Sat, 20 Aug 2011 07:53:38 +0000 Subject: [PATCH] * second_real_to_real() converted to hlcg (in so far possible, no MM support) git-svn-id: branches/jvmbackend@18373 - --- compiler/ncgcnv.pas | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/compiler/ncgcnv.pas b/compiler/ncgcnv.pas index 86539e7306..edb4938cbe 100644 --- a/compiler/ncgcnv.pas +++ b/compiler/ncgcnv.pas @@ -71,7 +71,7 @@ interface cpubase,systems, procinfo,pass_2, cgbase, - cgutils,cgobj, + cgutils,cgobj,hlcgobj, ncgutil, tgobj ; @@ -412,8 +412,8 @@ interface { on sparc a move from double -> single means from two to one register. } { On all other platforms it also needs rounding to avoid that } { single(double_regvar) = double_regvar is true in all cases } - location.register:=cg.getfpuregister(current_asmdata.CurrAsmList,location.size); - cg.a_loadfpu_reg_reg(current_asmdata.CurrAsmList,left.location.size,location.size,left.location.register,location.register); + location.register:=hlcg.getfpuregister(current_asmdata.CurrAsmList,resultdef); + hlcg.a_loadfpu_reg_reg(current_asmdata.CurrAsmList,left.resultdef,resultdef,left.location.register,location.register); end; LOC_MMREGISTER: begin @@ -436,9 +436,9 @@ interface end else begin - location_force_fpureg(current_asmdata.CurrAsmList,left.location,false); + hlcg.location_force_fpureg(current_asmdata.CurrAsmList,left.location,left.resultdef,false); location.register:=cg.getfpuregister(current_asmdata.CurrAsmList,location.size); - cg.a_loadfpu_reg_reg(current_asmdata.CurrAsmList,left.location.size,location.size,left.location.register,location.register); + hlcg.a_loadfpu_reg_reg(current_asmdata.CurrAsmList,left.resultdef,resultdef,left.location.register,location.register); end; location_freetemp(current_asmdata.CurrAsmList,left.location); end;