summaryrefslogtreecommitdiff
path: root/test/wasm2js/labels.2asm.js
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2019-04-30 20:30:03 -0700
committerGitHub <noreply@github.com>2019-04-30 20:30:03 -0700
commit8d4bcd6e02bb0df3ac87e4850896ba733525b055 (patch)
tree1f98b878c22fd23c918992b53fd8e9f4f78d3788 /test/wasm2js/labels.2asm.js
parentfba743ca5bdfe4fb437a36503b8983c5f42e4575 (diff)
downloadbinaryen-8d4bcd6e02bb0df3ac87e4850896ba733525b055.tar.gz
binaryen-8d4bcd6e02bb0df3ac87e4850896ba733525b055.tar.bz2
binaryen-8d4bcd6e02bb0df3ac87e4850896ba733525b055.zip
wasm2js: run full optimizations during the pipeline (#2071)
We flatten for the i64 lowering etc. passes, and it is worth optimizing afterwards, to clean up stuff they created. That is run if the user ran wasm2js with an optimization level (like wasm2js -O3). Split the test files to check both optimized and unoptimized code.
Diffstat (limited to 'test/wasm2js/labels.2asm.js')
-rw-r--r--test/wasm2js/labels.2asm.js24
1 files changed, 12 insertions, 12 deletions
diff --git a/test/wasm2js/labels.2asm.js b/test/wasm2js/labels.2asm.js
index ded00aab1..043684eb9 100644
--- a/test/wasm2js/labels.2asm.js
+++ b/test/wasm2js/labels.2asm.js
@@ -42,7 +42,7 @@ function asmFunc(global, env, buffer) {
break exit;
}
}
- continue;
+ continue cont;
};
}
return $6_1 | 0;
@@ -55,7 +55,7 @@ function asmFunc(global, env, buffer) {
cont : while (1) {
i = i + 1 | 0;
if ((i | 0) == (5 | 0)) {
- continue
+ continue cont
}
if ((i | 0) == (8 | 0)) {
{
@@ -64,7 +64,7 @@ function asmFunc(global, env, buffer) {
}
}
i = i + 1 | 0;
- continue;
+ continue cont;
};
}
return $8_1 | 0;
@@ -99,7 +99,7 @@ function asmFunc(global, env, buffer) {
break exit;
}
}
- continue;
+ continue cont;
};
}
return $9_1 | 0;
@@ -108,7 +108,7 @@ function asmFunc(global, env, buffer) {
function $5() {
var $0_1 = 0;
$0_1 = 1;
- return $0_1 + 1 | 0;
+ return $0_1 + 1 | 0 | 0;
}
function $6() {
@@ -225,24 +225,24 @@ function asmFunc(global, env, buffer) {
if (0) {
break inner
}
- i = i | 1;
+ i = i | 1 | 0;
if (1) {
break inner
}
- i = i | 2;
+ i = i | 2 | 0;
}
- i = i | 4;
+ i = i | 4 | 0;
$10_1 = i;
if (0) {
break outer
}
- i = i | 8;
- i = i | 16;
+ i = i | 8 | 0;
+ i = i | 16 | 0;
$10_1 = i;
if (1) {
break outer
}
- i = i | 32;
+ i = i | 32 | 0;
$10_1 = i;
}
return $10_1 | 0;
@@ -321,7 +321,7 @@ function asmFunc(global, env, buffer) {
$2_2 = 3;
break l113;
}
- return $1_2 + $2_2 | 0;
+ return $1_2 + $2_2 | 0 | 0;
}
var FUNCTION_TABLE = [];