From cf35b0d2a9b92bfee0ce2e4e980c3e23a3dc6f61 Mon Sep 17 00:00:00 2001 From: nickysn Date: Tue, 5 Jan 2021 08:13:49 +0000 Subject: [PATCH] * fixed twasmaddnode.second_cmpfloat git-svn-id: branches/wasm@48080 - --- compiler/wasm32/nwasmadd.pas | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/compiler/wasm32/nwasmadd.pas b/compiler/wasm32/nwasmadd.pas index b5df58f28f..73ee6131e6 100644 --- a/compiler/wasm32/nwasmadd.pas +++ b/compiler/wasm32/nwasmadd.pas @@ -153,10 +153,6 @@ interface cmpResultType := s32inttype; 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; case nodetype of ltn : @@ -227,7 +223,8 @@ interface 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 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;