summaryrefslogtreecommitdiff
path: root/src/wasm2asm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm2asm.h')
-rw-r--r--src/wasm2asm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm2asm.h b/src/wasm2asm.h
index 4fab55f86..0dec0722c 100644
--- a/src/wasm2asm.h
+++ b/src/wasm2asm.h
@@ -850,7 +850,7 @@ Ref Wasm2AsmBuilder::processFunctionBody(Expression* curr, IString result) {
switch (curr->op) {
case Add: ret = ValueBuilder::makeBinary(left, PLUS, right); break;
case Sub: ret = ValueBuilder::makeBinary(left, MINUS, right); break;
- case Mul: ret = ValueBuilder::makeBinary(left, MUL, right); break;
+ case Mul: return ValueBuilder::makeCall(MATH_IMUL, left, right); // TODO: when one operand is a small int, emit a multiply
case DivS: ret = ValueBuilder::makeBinary(left, DIV, right); break;
case DivU: ret = ValueBuilder::makeBinary(left, DIV, right); break;
case RemS: ret = ValueBuilder::makeBinary(left, MOD, right); break;