mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-10-24 05:37:41 +02:00
* fixed loading of -0.0
git-svn-id: trunk@2976 -
This commit is contained in:
parent
b9a66c4f25
commit
6ad5dff9e8
@ -74,6 +74,8 @@ implementation
|
|||||||
else if (value_real=0.0) and not(use_sse(resulttype.def)) then
|
else if (value_real=0.0) and not(use_sse(resulttype.def)) then
|
||||||
begin
|
begin
|
||||||
emit_none(A_FLDZ,S_NO);
|
emit_none(A_FLDZ,S_NO);
|
||||||
|
if (get_real_sign(value_real) < 0) then
|
||||||
|
emit_none(A_FCHS,S_NO);
|
||||||
location_reset(location,LOC_FPUREGISTER,def_cgsize(resulttype.def));
|
location_reset(location,LOC_FPUREGISTER,def_cgsize(resulttype.def));
|
||||||
location.register:=NR_ST;
|
location.register:=NR_ST;
|
||||||
tcgx86(cg).inc_fpu_stack;
|
tcgx86(cg).inc_fpu_stack;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user