mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 21:49:15 +02:00
* sqr also uses single precision ops for single precision calculations
git-svn-id: trunk@4788 -
This commit is contained in:
parent
37160edf3c
commit
32a86f6daa
@ -104,10 +104,16 @@ implementation
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
procedure tppcinlinenode.second_sqr_real;
|
procedure tppcinlinenode.second_sqr_real;
|
||||||
|
var
|
||||||
|
op: tasmop;
|
||||||
begin
|
begin
|
||||||
location.loc:=LOC_FPUREGISTER;
|
location.loc:=LOC_FPUREGISTER;
|
||||||
load_fpu_location;
|
load_fpu_location;
|
||||||
current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg_reg(A_FMUL,location.register,
|
if (left.location.size = OS_F32) then
|
||||||
|
op := A_FMULS
|
||||||
|
else
|
||||||
|
op := A_FMUL;
|
||||||
|
current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg_reg(op,location.register,
|
||||||
left.location.register,left.location.register));
|
left.location.register,left.location.register));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user