mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-11 03:46:13 +02:00
* several inlined math function do not need a non-constant register for the argument
git-svn-id: trunk@33649 -
This commit is contained in:
parent
88e14dc456
commit
0232a0d979
@ -330,7 +330,7 @@ implementation
|
||||
begin
|
||||
secondpass(left);
|
||||
if left.location.loc<>LOC_MMREGISTER then
|
||||
hlcg.location_force_mmregscalar(current_asmdata.CurrAsmList,left.location,left.resultdef,false);
|
||||
hlcg.location_force_mmregscalar(current_asmdata.CurrAsmList,left.location,left.resultdef,UseAVX);
|
||||
if UseAVX then
|
||||
begin
|
||||
location_reset(location,LOC_MMREGISTER,def_cgsize(resultdef));
|
||||
@ -377,7 +377,7 @@ implementation
|
||||
if use_vectorfpu(left.resultdef) then
|
||||
begin
|
||||
secondpass(left);
|
||||
hlcg.location_force_mmregscalar(current_asmdata.CurrAsmList,left.location,left.resultdef,false);
|
||||
hlcg.location_force_mmregscalar(current_asmdata.CurrAsmList,left.location,left.resultdef,true);
|
||||
location_reset(location,LOC_REGISTER,OS_S64);
|
||||
location.register:=cg.getintregister(current_asmdata.CurrAsmList,OS_S64);
|
||||
if UseAVX then
|
||||
@ -421,7 +421,7 @@ implementation
|
||||
not((left.location.loc=LOC_FPUREGISTER) and (current_settings.fputype>=fpu_sse3)) then
|
||||
begin
|
||||
secondpass(left);
|
||||
hlcg.location_force_mmregscalar(current_asmdata.CurrAsmList,left.location,left.resultdef,false);
|
||||
hlcg.location_force_mmregscalar(current_asmdata.CurrAsmList,left.location,left.resultdef,true);
|
||||
location_reset(location,LOC_REGISTER,OS_S64);
|
||||
location.register:=cg.getintregister(current_asmdata.CurrAsmList,OS_S64);
|
||||
if UseAVX then
|
||||
|
Loading…
Reference in New Issue
Block a user