mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-18 05:39:26 +02:00
* fixed 64-bit float comparison
git-svn-id: branches/wasm@48284 -
This commit is contained in:
parent
7e958e0a35
commit
4b6cbde849
@ -166,35 +166,35 @@ interface
|
||||
case nodetype of
|
||||
ltn :
|
||||
begin
|
||||
if location.size=OS_F64 then
|
||||
if left.location.size=OS_F64 then
|
||||
op:=a_f64_lt
|
||||
else
|
||||
op:=a_f32_lt;
|
||||
end;
|
||||
lten :
|
||||
begin
|
||||
if location.size=OS_F64 then
|
||||
if left.location.size=OS_F64 then
|
||||
op:=a_f64_le
|
||||
else
|
||||
op:=a_f32_le;
|
||||
end;
|
||||
gtn :
|
||||
begin
|
||||
if location.size=OS_F64 then
|
||||
if left.location.size=OS_F64 then
|
||||
op:=a_f64_gt
|
||||
else
|
||||
op:=a_f32_gt;
|
||||
end;
|
||||
gten :
|
||||
begin
|
||||
if location.size=OS_F64 then
|
||||
if left.location.size=OS_F64 then
|
||||
op:=a_f64_ge
|
||||
else
|
||||
op:=a_f32_ge;
|
||||
end;
|
||||
equaln :
|
||||
begin
|
||||
if location.size=OS_F64 then
|
||||
if left.location.size=OS_F64 then
|
||||
op:=a_f64_eq
|
||||
else
|
||||
op:=a_f32_eq;
|
||||
@ -202,7 +202,7 @@ interface
|
||||
end;
|
||||
unequaln :
|
||||
begin
|
||||
if location.size=OS_F64 then
|
||||
if left.location.size=OS_F64 then
|
||||
op:=a_f64_ne
|
||||
else
|
||||
op:=a_f32_ne;
|
||||
|
Loading…
Reference in New Issue
Block a user