From c44dc7b23fae93222c8a38da53e50c0b0aaa0366 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Mon, 7 Dec 2015 14:06:46 -0800 Subject: use Math.imul in wasm2asm --- test/emcc_O2_hello_world.2asm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/emcc_O2_hello_world.2asm.js') diff --git a/test/emcc_O2_hello_world.2asm.js b/test/emcc_O2_hello_world.2asm.js index 3c153067c..98331025f 100644 --- a/test/emcc_O2_hello_world.2asm.js +++ b/test/emcc_O2_hello_world.2asm.js @@ -2287,7 +2287,7 @@ function asmFunc(global, env, buffer) { i4 = i4 | 0; var i5 = 0, i6 = 0, i7 = 0, i8 = 0, i9 = 0, wasm2asm_i32$0 = 0; topmost : { - i5 = i3 * i2 | 0; + i5 = Math_imul(i3, i2); if ((HEAPU32[(i4 + 76 | 0) >> 2] | 0 | 0) > (4294967295 | 0)) { i6 = (___lockfile(i4 | 0) | 0 | 0) == (0 | 0); i7 = ___fwritex(i1 | 0, i5 | 0, i4 | 0) | 0; -- cgit v1.2.3