summaryrefslogtreecommitdiff
path: root/test/wasm2js/labels.2asm.js
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2019-11-29 18:33:41 -0800
committerGitHub <noreply@github.com>2019-11-29 18:33:41 -0800
commit24d274983df9f7dbeebe8a890297d4f30d5bbca7 (patch)
treeb76f10f6de34e94b8c0e449b18427daeb34bee0c /test/wasm2js/labels.2asm.js
parent8c97dc61a713768d7f8302ec3a695c1207ce7239 (diff)
downloadbinaryen-24d274983df9f7dbeebe8a890297d4f30d5bbca7.tar.gz
binaryen-24d274983df9f7dbeebe8a890297d4f30d5bbca7.tar.bz2
binaryen-24d274983df9f7dbeebe8a890297d4f30d5bbca7.zip
Update spec test suite (#2484)
This updates spec test suite to that of the current up-to-date version of https://github.com/WebAssembly/spec repo. - All failing tests are added in `BLACKLIST` in shared.py with reasons. - For tests that already existed and was passing and started failing after the update, we add the new test to the blacklist and preserve the old file by renaming it to 'old_[FILENAME].wast' not to lose test coverage. When the cause of the error is fixed or the unsupported construct gets support so the new test passes, we can delete the corresponding 'old_[FILENAME].wast' file. - Adds support for `spectest.print_[type] style imports.
Diffstat (limited to 'test/wasm2js/labels.2asm.js')
-rw-r--r--test/wasm2js/labels.2asm.js63
1 files changed, 40 insertions, 23 deletions
diff --git a/test/wasm2js/labels.2asm.js b/test/wasm2js/labels.2asm.js
index 0051a4113..34a88c63a 100644
--- a/test/wasm2js/labels.2asm.js
+++ b/test/wasm2js/labels.2asm.js
@@ -109,6 +109,18 @@ function asmFunc(global, env, buffer) {
}
function $6() {
+ var $2_1 = 0;
+ loop_in : while (1) {
+ if (0) {
+ continue loop_in
+ }
+ $2_1 = 3;
+ break loop_in;
+ };
+ return $2_1 | 0;
+ }
+
+ function $7() {
var i = 0;
i = 0;
block_1 : {
@@ -136,7 +148,7 @@ function asmFunc(global, env, buffer) {
return i | 0;
}
- function $7() {
+ function $8() {
var i = 0;
i = 0;
block_1 : {
@@ -164,7 +176,7 @@ function asmFunc(global, env, buffer) {
return i | 0;
}
- function $8($0_1) {
+ function $9($0_1) {
$0_1 = $0_1 | 0;
var $2_1 = 0, $3_1 = 0;
ret : {
@@ -190,7 +202,7 @@ function asmFunc(global, env, buffer) {
return $3_1 | 0;
}
- function $9($0_1) {
+ function $10($0_1) {
$0_1 = $0_1 | 0;
$1_1 : {
switch ($0_1 | 0) {
@@ -203,7 +215,7 @@ function asmFunc(global, env, buffer) {
return 2 | 0;
}
- function $10() {
+ function $11() {
var i = 0, $10_1 = 0;
i = 0;
outer : {
@@ -234,7 +246,7 @@ function asmFunc(global, env, buffer) {
return $10_1 | 0;
}
- function $11() {
+ function $12() {
var $2_1 = 0, $0_1 = 0;
l0 : {
l1 : {
@@ -245,12 +257,12 @@ function asmFunc(global, env, buffer) {
if (1) {
break l0
}
- $2_1 = 1;
+ $2_1 = 0;
}
return $2_1 | 0;
}
- function $12() {
+ function $13() {
var $2_1 = 0, $0_1 = 0;
l0 : {
l1 : {
@@ -258,12 +270,15 @@ function asmFunc(global, env, buffer) {
break l1;
}
$2_1 = $0_1;
- break l0;
+ if (1) {
+ break l0
+ }
+ $2_1 = 0;
}
return $2_1 | 0;
}
- function $13() {
+ function $14() {
var i1 = 0, $7_1 = 0, $3_1 = 0;
l0 : {
i1 = 1;
@@ -278,7 +293,7 @@ function asmFunc(global, env, buffer) {
return i1 | 0;
}
- function $14() {
+ function $15() {
var $2_1 = 0, $0_1 = 0, $3_1 = 0;
l0 : {
l1 : {
@@ -291,7 +306,7 @@ function asmFunc(global, env, buffer) {
return $2_1 | 0;
}
- function $15() {
+ function $16() {
var $0_1 = 0;
l1 : {
$0_1 = 1;
@@ -300,7 +315,7 @@ function asmFunc(global, env, buffer) {
return $0_1 | 0;
}
- function $16() {
+ function $17() {
var $1_2 = 0, $2_1 = 0;
l1 : {
$1_2 = 2;
@@ -320,17 +335,18 @@ function asmFunc(global, env, buffer) {
"loop3": $3,
"loop4": $4,
"loop5": $5,
- "if_": $6,
- "if2": $7,
- "switch_": $8,
- "return_": $9,
- "br_if0": $10,
- "br_if1": $11,
- "br_if2": $12,
- "br_if3": $13,
- "br": $14,
- "shadowing": $15,
- "redefinition": $16
+ "loop6": $6,
+ "if_": $7,
+ "if2": $8,
+ "switch_": $9,
+ "return_": $10,
+ "br_if0": $11,
+ "br_if1": $12,
+ "br_if2": $13,
+ "br_if3": $14,
+ "br": $15,
+ "shadowing": $16,
+ "redefinition": $17
};
}
@@ -342,6 +358,7 @@ export var loop2 = retasmFunc.loop2;
export var loop3 = retasmFunc.loop3;
export var loop4 = retasmFunc.loop4;
export var loop5 = retasmFunc.loop5;
+export var loop6 = retasmFunc.loop6;
export var if_ = retasmFunc.if_;
export var if2 = retasmFunc.if2;
export var switch_ = retasmFunc.switch_;