diff options
author | Thomas Lively <tlively@google.com> | 2024-01-29 16:31:33 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-29 16:31:33 -0800 |
commit | 88d6b7c08f3fbf1b510ae630f83ff8d44321b151 (patch) | |
tree | 1227b162507a7c1e7de2b8255ccdd0bef34e1347 /test/lit/passes/gufa-refs.wast | |
parent | c0046ad0e44d39f7ef33fa6a401a0d9d5a34a578 (diff) | |
download | binaryen-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/gufa-refs.wast')
-rw-r--r-- | test/lit/passes/gufa-refs.wast | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/lit/passes/gufa-refs.wast b/test/lit/passes/gufa-refs.wast index 6d72a4209..168fcd0df 100644 --- a/test/lit/passes/gufa-refs.wast +++ b/test/lit/passes/gufa-refs.wast @@ -2150,7 +2150,7 @@ ;; CHECK-NEXT: ) ;; CHECK-NEXT: (catch $tag ;; CHECK-NEXT: (local.set $0 - ;; CHECK-NEXT: (pop anyref anyref) + ;; CHECK-NEXT: (pop (tuple anyref anyref)) ;; CHECK-NEXT: ) ;; CHECK-NEXT: (drop ;; CHECK-NEXT: (block (result nullref) @@ -2169,7 +2169,7 @@ ;; CHECK-NEXT: (catch $tag ;; CHECK-NEXT: (drop ;; CHECK-NEXT: (tuple.extract 2 1 - ;; CHECK-NEXT: (pop anyref anyref) + ;; CHECK-NEXT: (pop (tuple anyref anyref)) ;; CHECK-NEXT: ) ;; CHECK-NEXT: ) ;; CHECK-NEXT: ) @@ -2187,7 +2187,7 @@ (catch $tag (drop (tuple.extract 2 0 - (pop (ref null any) (ref null any)) + (pop (tuple (ref null any) (ref null any))) ) ) ) @@ -2198,7 +2198,7 @@ (catch $tag (drop (tuple.extract 2 1 - (pop (ref null any) (ref null any)) + (pop (tuple (ref null any) (ref null any))) ) ) ) |