summaryrefslogtreecommitdiff
path: root/test/unit.fromasm.imprecise
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2017-06-12 16:50:28 -0700
committerGitHub <noreply@github.com>2017-06-12 16:50:28 -0700
commit68dc2eddc24844c7582cafa85afeb4023a47888f (patch)
treefcaedc839420fe43c555166420865d5aeef0dbfa /test/unit.fromasm.imprecise
parent93c65f98b7a9b0977578dbf55778529efec646f1 (diff)
downloadbinaryen-68dc2eddc24844c7582cafa85afeb4023a47888f.tar.gz
binaryen-68dc2eddc24844c7582cafa85afeb4023a47888f.tar.bz2
binaryen-68dc2eddc24844c7582cafa85afeb4023a47888f.zip
Support new result syntax for if/loop/block (#1047)
Support both syntax formats in input since the old spec tests still need to be parsable.
Diffstat (limited to 'test/unit.fromasm.imprecise')
-rw-r--r--test/unit.fromasm.imprecise12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/unit.fromasm.imprecise b/test/unit.fromasm.imprecise
index bf01a4681..45912cffb 100644
--- a/test/unit.fromasm.imprecise
+++ b/test/unit.fromasm.imprecise
@@ -392,7 +392,7 @@
(i32.const 3)
)
)
- (block i32
+ (block (result i32)
(drop
(call $lb
(i32.const 4)
@@ -413,7 +413,7 @@
)
)
)
- (block i32
+ (block (result i32)
(drop
(call $lb
(i32.const 8)
@@ -481,7 +481,7 @@
)
)
(func $phi (result i32)
- (block $do-once i32
+ (block $do-once (result i32)
(drop
(br_if $do-once
(i32.const 0)
@@ -579,7 +579,7 @@
)
(func $conditionalTypeFun
(drop
- (if i32
+ (if (result i32)
(call $return_int)
(i32.trunc_s/f64
(call $abort
@@ -592,7 +592,7 @@
)
)
(drop
- (if f64
+ (if (result f64)
(call $return_int)
(call $abort
(f64.convert_s/i32
@@ -1063,7 +1063,7 @@
)
(func $dropIgnoredImportsInIf (param $0 i32) (param $1 i32) (param $2 i32)
(drop
- (if i32
+ (if (result i32)
(get_local $0)
(call $lb
(get_local $1)