From b013f744e3d70effd9be348cbde7fb93f0a16c6a Mon Sep 17 00:00:00 2001 From: Thomas Lively <7121787+tlively@users.noreply.github.com> Date: Fri, 1 Sep 2017 14:26:01 -0400 Subject: i64 to i32 lowering for wasm2asm (#1134) --- test/hello_world.2asm.js | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'test/hello_world.2asm.js') diff --git a/test/hello_world.2asm.js b/test/hello_world.2asm.js index f118213f4..05c7a5343 100644 --- a/test/hello_world.2asm.js +++ b/test/hello_world.2asm.js @@ -20,28 +20,27 @@ function asmFunc(global, env, buffer) { function __wasm_ctz_i32(x) { x = x | 0; - var wasm2asm_i32$0 = 0; - if ((x | 0) == (0 | 0)) wasm2asm_i32$0 = 32; else wasm2asm_i32$0 = 31 - Math_clz32(x ^ (x - 1 | 0) | 0) | 0; - return wasm2asm_i32$0 | 0; + var $$1 = 0; + if ((x | 0) == (0 | 0)) $$1 = 32; else $$1 = 31 - Math_clz32(x ^ (x - 1 | 0) | 0) | 0; + return $$1 | 0; } function __wasm_popcnt_i32(x) { x = x | 0; - var count = 0, wasm2asm_i32$0 = 0; + var count = 0, $$2 = 0, $$3 = 0; count = 0; b : { l : do { - if ((x | 0) == (0 | 0)) { - wasm2asm_i32$0 = count; - break b; - } + $$2 = count; + if ((x | 0) == (0 | 0)) break b; x = x & (x - 1 | 0) | 0; count = count + 1 | 0; continue l; break l; } while (1); }; - return wasm2asm_i32$0 | 0; + $$3 = $$2; + return $$3 | 0; } function __wasm_rotl_i32(x, k) { -- cgit v1.2.3