summaryrefslogtreecommitdiff
path: root/test/wasm2asm/i32.2asm.js
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2018-05-19 16:14:00 -0500
committerAlon Zakai <alonzakai@gmail.com>2018-05-19 14:14:00 -0700
commitd0ce93f8d7a08017618839498a9b920bbb132267 (patch)
tree752e836fcd09e37c6e7963622ac5d35aa2021d18 /test/wasm2asm/i32.2asm.js
parentcb64ec3879db3422ac4afd3119938f8dfe7b7b05 (diff)
downloadbinaryen-d0ce93f8d7a08017618839498a9b920bbb132267.tar.gz
binaryen-d0ce93f8d7a08017618839498a9b920bbb132267.tar.bz2
binaryen-d0ce93f8d7a08017618839498a9b920bbb132267.zip
wasm2asm: Finish f32/f64 operations (#1554)
Diffstat (limited to 'test/wasm2asm/i32.2asm.js')
-rw-r--r--test/wasm2asm/i32.2asm.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/test/wasm2asm/i32.2asm.js b/test/wasm2asm/i32.2asm.js
index 6fab2d7f6..7c319ba5e 100644
--- a/test/wasm2asm/i32.2asm.js
+++ b/test/wasm2asm/i32.2asm.js
@@ -99,13 +99,13 @@ function asmFunc(global, env, buffer) {
function $13(x, y) {
x = x | 0;
y = y | 0;
- return __wasm_rotl_i32(x, y) | 0 | 0;
+ return __wasm_rotl_i32(x | 0, y | 0) | 0 | 0;
}
function $14(x, y) {
x = x | 0;
y = y | 0;
- return __wasm_rotr_i32(x, y) | 0 | 0;
+ return __wasm_rotr_i32(x | 0, y | 0) | 0 | 0;
}
function $15(x) {
@@ -115,12 +115,12 @@ function asmFunc(global, env, buffer) {
function $16(x) {
x = x | 0;
- return __wasm_ctz_i32(x) | 0 | 0;
+ return __wasm_ctz_i32(x | 0) | 0 | 0;
}
function $17(x) {
x = x | 0;
- return __wasm_popcnt_i32(x) | 0 | 0;
+ return __wasm_popcnt_i32(x | 0) | 0 | 0;
}
function $18(x) {
@@ -190,18 +190,18 @@ function asmFunc(global, env, buffer) {
function __wasm_ctz_i32(x) {
x = x | 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;
+ var $9 = 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) {
x = x | 0;
- var count = 0, $2 = 0;
+ var count = 0, $5 = 0;
count = 0;
b : {
l : do {
- $2 = count;
+ $5 = count;
if ((x | 0) == (0 | 0)) break b;
x = x & (x - 1 | 0) | 0;
count = count + 1 | 0;
@@ -209,7 +209,7 @@ function asmFunc(global, env, buffer) {
break l;
} while (1);
};
- return $2 | 0;
+ return $5 | 0;
}
function __wasm_rotl_i32(x, k) {