+ WebAssembly: use the 64-bit div instruction, instead of an RTL helper for 64-bit division

This commit is contained in:
Nikolay Nikolov 2022-06-22 01:10:02 +03:00
parent 7f34f27a1c
commit b11434a6f8
2 changed files with 1 additions and 3 deletions

View File

@ -578,9 +578,6 @@ implementation
end;
OS_64,OS_S64:
begin
{ unsigned 64 bit division must be done via a helper }
if op=OP_DIV then
internalerror(2010120530);
{ boolean not: =0? for boolean }
if (op=OP_NOT) and is_pasbool(size) then
begin

View File

@ -69,6 +69,7 @@ implementation
function twasmmoddivnode.use_moddiv64bitint_helper: boolean;
begin
result:=
(nodetype=modn) and
(left.resultdef.typ=orddef) and
(right.resultdef.typ=orddef) and
((torddef(left.resultdef).ordtype=u64bit) or