summaryrefslogtreecommitdiff
path: root/test/lit/passes/catch-pop-fixup-eh-old.wast
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2024-01-29 16:31:33 -0800
committerGitHub <noreply@github.com>2024-01-29 16:31:33 -0800
commit88d6b7c08f3fbf1b510ae630f83ff8d44321b151 (patch)
tree1227b162507a7c1e7de2b8255ccdd0bef34e1347 /test/lit/passes/catch-pop-fixup-eh-old.wast
parentc0046ad0e44d39f7ef33fa6a401a0d9d5a34a578 (diff)
downloadbinaryen-88d6b7c08f3fbf1b510ae630f83ff8d44321b151.tar.gz
binaryen-88d6b7c08f3fbf1b510ae630f83ff8d44321b151.tar.bz2
binaryen-88d6b7c08f3fbf1b510ae630f83ff8d44321b151.zip
Update pop text syntax (#6251)
Rather than `(pop valtype*)`, use `(pop valtype)`, where `valtype` is now allowed to be a tuple. This will make it possible to parse un-folded multivalue pops in the new text parser. The alternative would have been to put an arity in the syntax like we have for other tuple instructions, but that's much uglier.
Diffstat (limited to 'test/lit/passes/catch-pop-fixup-eh-old.wast')
-rw-r--r--test/lit/passes/catch-pop-fixup-eh-old.wast4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lit/passes/catch-pop-fixup-eh-old.wast b/test/lit/passes/catch-pop-fixup-eh-old.wast
index b834a4e33..50aa7f7ba 100644
--- a/test/lit/passes/catch-pop-fixup-eh-old.wast
+++ b/test/lit/passes/catch-pop-fixup-eh-old.wast
@@ -334,7 +334,7 @@
;; CHECK-NEXT: )
;; CHECK-NEXT: (catch $e-i32-f32
;; CHECK-NEXT: (local.set $1
- ;; CHECK-NEXT: (pop i32 f32)
+ ;; CHECK-NEXT: (pop (tuple i32 f32))
;; CHECK-NEXT: )
;; CHECK-NEXT: (throw $e-i32
;; CHECK-NEXT: (block (result i32)
@@ -354,7 +354,7 @@
(throw $e-i32
;; This tests a pop taking a tuple type.
(block (result i32)
- (local.set $x (pop i32 f32))
+ (local.set $x (pop (tuple i32 f32)))
(i32.const 0)
)
)