mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 09:39:09 +02:00
* fixed twasmaddnode.second_cmpfloat
git-svn-id: branches/wasm@48080 -
This commit is contained in:
parent
e62979c614
commit
cf35b0d2a9
@ -153,10 +153,6 @@ interface
|
|||||||
cmpResultType := s32inttype;
|
cmpResultType := s32inttype;
|
||||||
pass_left_right;
|
pass_left_right;
|
||||||
|
|
||||||
// allocating temporary variable (via reference) to hold the result
|
|
||||||
location_reset_ref(location,LOC_REFERENCE,def_cgsize(resultdef),1,[]);
|
|
||||||
tg.gethltemp(current_asmdata.CurrAsmList,resultdef,0,tt_normal,location.reference);
|
|
||||||
|
|
||||||
commutative:=false;
|
commutative:=false;
|
||||||
case nodetype of
|
case nodetype of
|
||||||
ltn :
|
ltn :
|
||||||
@ -227,7 +223,8 @@ interface
|
|||||||
if we add code to swap the operands when necessary (a_swap for
|
if we add code to swap the operands when necessary (a_swap for
|
||||||
singles, store/load/load for doubles since there is no swap for
|
singles, store/load/load for doubles since there is no swap for
|
||||||
2-slot elements -- also adjust expectloc in that case! }
|
2-slot elements -- also adjust expectloc in that case! }
|
||||||
thlcgwasm(hlcg).a_load_stack_ref(current_asmdata.CurrAsmList,resultdef,location.reference,0);
|
set_result_location_reg;
|
||||||
|
thlcgwasm(hlcg).a_load_stack_loc(current_asmdata.CurrAsmList,resultdef,location);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user