summaryrefslogtreecommitdiff
path: root/test/exception-handling.wast.fromBinary
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2020-09-11 13:34:01 -0700
committerGitHub <noreply@github.com>2020-09-11 13:34:01 -0700
commit8ec8a0bbfb039852b60f121fb23c439228b9fe36 (patch)
tree7987dcb2af2141dfc709cc8b761a69fd14f79798 /test/exception-handling.wast.fromBinary
parentdbff242b3bc1fdaec15140cc48a537d7a497fb48 (diff)
downloadbinaryen-8ec8a0bbfb039852b60f121fb23c439228b9fe36.tar.gz
binaryen-8ec8a0bbfb039852b60f121fb23c439228b9fe36.tar.bz2
binaryen-8ec8a0bbfb039852b60f121fb23c439228b9fe36.zip
Update Pop text format to handle tuples (#3116)
Previously Pops were printed as ({type}.pop), and if the popped type was a tuple, something like ((i32, i64).pop) would get printed. However, the parser didn't support pops of anything besides single basic types. This PR changes the text format to be (pop <type>*) and adds support for parsing pops of tuples of basic types. The text format change is designed to make parsing simpler. This change is necessary for writing Poppy IR tests (see #3059) that contain break or return instructions that consume multiple values, since in Poppy IR that requires tuple-typed pops.
Diffstat (limited to 'test/exception-handling.wast.fromBinary')
-rw-r--r--test/exception-handling.wast.fromBinary8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/exception-handling.wast.fromBinary b/test/exception-handling.wast.fromBinary
index 24af9294e..7add5b33e 100644
--- a/test/exception-handling.wast.fromBinary
+++ b/test/exception-handling.wast.fromBinary
@@ -24,7 +24,7 @@
)
(catch
(local.set $0
- (exnref.pop)
+ (pop exnref)
)
(drop
(block $label$3 (result i32)
@@ -44,7 +44,7 @@
)
(catch
(drop
- (exnref.pop)
+ (pop exnref)
)
(br $label$4)
)
@@ -56,7 +56,7 @@
)
(catch
(drop
- (exnref.pop)
+ (pop exnref)
)
)
)
@@ -67,7 +67,7 @@
)
(catch
(drop
- (exnref.pop)
+ (pop exnref)
)
(call $foo)
(call $bar)