diff options
Diffstat (limited to 'test/empty_imported_table.2asm.js')
-rw-r--r-- | test/empty_imported_table.2asm.js | 86 |
1 files changed, 13 insertions, 73 deletions
diff --git a/test/empty_imported_table.2asm.js b/test/empty_imported_table.2asm.js index 9dcdcad54..240aa7e86 100644 --- a/test/empty_imported_table.2asm.js +++ b/test/empty_imported_table.2asm.js @@ -16,19 +16,8 @@ function asmFunc(global, env, buffer) { function __wasm_ctz_i32(x) { x = x | 0; var $$1 = 0, $$2 = 0, $$3 = 0, $$4 = 0, $$5 = 0, $$6 = 0, $$7 = 0, $$8 = 0, $$9 = 0, $$10 = 0; - $$1 = x; - $$2 = ($$1 | 0) == (0 | 0); - if ($$2) $$9 = 32; else { - $$3 = x; - $$4 = x; - $$5 = $$4 - 1 | 0; - $$6 = $$3 ^ $$5 | 0; - $$7 = Math_clz32($$6); - $$8 = 31 - $$7 | 0; - $$9 = $$8; - } - $$10 = $$9; - return $$10 | 0; + if ((x | 0) == (0 | 0)) $$9 = 32; else $$9 = 31 - Math_clz32(x ^ (x - 1 | 0) | 0) | 0; + return $$9 | 0; } function __wasm_popcnt_i32(x) { @@ -37,80 +26,31 @@ function asmFunc(global, env, buffer) { count = 0; b : { l : do { - $$2 = count; - $$3 = x; - $$4 = ($$3 | 0) == (0 | 0); - $$5 = $$2; - if ($$4) break b; - $$6 = $$5; - $$7 = x; - $$8 = x; - $$9 = $$8 - 1 | 0; - $$10 = $$7 & $$9 | 0; - x = $$10; - $$11 = count; - $$12 = $$11 + 1 | 0; - count = $$12; + $$5 = count; + if ((x | 0) == (0 | 0)) break b; + x = x & (x - 1 | 0) | 0; + count = count + 1 | 0; continue l; break l; } while (1); }; - $$13 = $$5; - $$14 = $$13; - $$15 = $$14; - return $$15 | 0; + return $$5 | 0; } function __wasm_rotl_i32(x, k) { x = x | 0; k = k | 0; - var $$2 = 0, $$3 = 0, $$4 = 0, $$5 = 0, $$6 = 0, $$7 = 0, $$8 = 0, $$9 = 0, $$10 = 0, $$11 = 0, $$12 = 0, $$13 = 0, $$14 = 0, $$15 = 0, $$16 = 0, $$17 = 0, $$18 = 0, $$19 = 0, $$20 = 0; - $$2 = k; - $$3 = $$2 & 31 | 0; - $$4 = 4294967295 >>> $$3 | 0; - $$5 = x; - $$6 = $$4 & $$5 | 0; - $$7 = k; - $$8 = $$7 & 31 | 0; - $$9 = $$6 << $$8 | 0; - $$10 = k; - $$11 = $$10 & 31 | 0; - $$12 = 32 - $$11 | 0; - $$13 = 4294967295 << $$12 | 0; - $$14 = x; - $$15 = $$13 & $$14 | 0; - $$16 = k; - $$17 = $$16 & 31 | 0; - $$18 = 32 - $$17 | 0; - $$19 = $$15 >>> $$18 | 0; - $$20 = $$9 | $$19 | 0; - return $$20 | 0; + var $$2 = 0, $$3 = 0, $$4 = 0, $$5 = 0, $$6 = 0, $$7 = 0, $$8 = 0, $$9 = 0, $$10 = 0, $$11 = 0, $$12 = 0, $$13 = 0, $$14 = 0, $$15 = 0, $$16 = 0, $$17 = 0, $$18 = 0, $$19 = 0, $$20 = 0, wasm2asm_i32$0 = 0; + return ((4294967295 >>> (k & 31 | 0) | 0) & x | 0) << (k & 31 | 0) | 0 | (((4294967295 << (32 - (k & 31 | 0) | 0) | 0) & x | 0) >>> (32 - (k & 31 | 0) | 0) | 0) | 0 | 0; + return wasm2asm_i32$0 | 0; } function __wasm_rotr_i32(x, k) { x = x | 0; k = k | 0; - var $$2 = 0, $$3 = 0, $$4 = 0, $$5 = 0, $$6 = 0, $$7 = 0, $$8 = 0, $$9 = 0, $$10 = 0, $$11 = 0, $$12 = 0, $$13 = 0, $$14 = 0, $$15 = 0, $$16 = 0, $$17 = 0, $$18 = 0, $$19 = 0, $$20 = 0; - $$2 = k; - $$3 = $$2 & 31 | 0; - $$4 = 4294967295 << $$3 | 0; - $$5 = x; - $$6 = $$4 & $$5 | 0; - $$7 = k; - $$8 = $$7 & 31 | 0; - $$9 = $$6 >>> $$8 | 0; - $$10 = k; - $$11 = $$10 & 31 | 0; - $$12 = 32 - $$11 | 0; - $$13 = 4294967295 >>> $$12 | 0; - $$14 = x; - $$15 = $$13 & $$14 | 0; - $$16 = k; - $$17 = $$16 & 31 | 0; - $$18 = 32 - $$17 | 0; - $$19 = $$15 << $$18 | 0; - $$20 = $$9 | $$19 | 0; - return $$20 | 0; + var $$2 = 0, $$3 = 0, $$4 = 0, $$5 = 0, $$6 = 0, $$7 = 0, $$8 = 0, $$9 = 0, $$10 = 0, $$11 = 0, $$12 = 0, $$13 = 0, $$14 = 0, $$15 = 0, $$16 = 0, $$17 = 0, $$18 = 0, $$19 = 0, $$20 = 0, wasm2asm_i32$0 = 0; + return ((4294967295 << (k & 31 | 0) | 0) & x | 0) >>> (k & 31 | 0) | 0 | (((4294967295 >>> (32 - (k & 31 | 0) | 0) | 0) & x | 0) << (32 - (k & 31 | 0) | 0) | 0) | 0 | 0; + return wasm2asm_i32$0 | 0; } return { |