+ support all subset locations in twasmaddnode.second_generic_compare. This improves support for bitpacked records and arrays in WebAssembly.

This commit is contained in:
Nikolay Nikolov 2025-09-25 02:15:53 +03:00
parent 0fead21e78
commit d29cc470f6

View File

@ -383,7 +383,10 @@ interface
LOC_CONSTANT:
thlcgwasm(hlcg).a_cmp_const_loc_stack(current_asmdata.CurrAsmList,left.resultdef,cmpop,right.location.value,left.location);
else
internalerror(2011010413);
begin
hlcg.location_force_reg(current_asmdata.CurrAsmList,right.location,right.resultdef,right.resultdef,false);
thlcgwasm(hlcg).a_cmp_reg_loc_stack(current_asmdata.CurrAsmList,left.resultdef,cmpop,right.location.register,left.location);
end;
end;
set_result_location_reg;
thlcgwasm(hlcg).a_load_stack_loc(current_asmdata.CurrAsmList,resultdef,location);