mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-24 03:59:12 +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;
|
||||
|
||||
procedure tppcinlinenode.second_sqr_real;
|
||||
var
|
||||
op: tasmop;
|
||||
begin
|
||||
location.loc:=LOC_FPUREGISTER;
|
||||
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));
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user