diff options
author | Thomas Lively <tlively@google.com> | 2024-04-25 14:55:12 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-25 14:55:12 -0700 |
commit | 956d2d89d530012885c1f88c87bf8b872c187b70 (patch) | |
tree | a24095ab6965bbfdfd04afbc02c33a3409d51fd0 /test/lit/merge/fusing.wat | |
parent | f44dcd4482f5bbb0fb5b567de4a9425ed949c939 (diff) | |
download | binaryen-956d2d89d530012885c1f88c87bf8b872c187b70.tar.gz binaryen-956d2d89d530012885c1f88c87bf8b872c187b70.tar.bz2 binaryen-956d2d89d530012885c1f88c87bf8b872c187b70.zip |
[Parser] Enable the new text parser by default (#6371)
The new text parser is faster and more standards compliant than the old text
parser. Enable it by default in wasm-opt and update the tests to reflect the
slightly different results it produces. Besides following the spec, the new
parser differs from the old parser in that it:
- Does not synthesize `loop` and `try` labels unnecessarily
- Synthesizes different block names in some cases
- Parses exports in a different order
- Parses `nop`s instead of empty blocks for empty control flow arms
- Does not support parsing Poppy IR
- Produces different error messages
- Cannot parse `pop` except as the first instruction inside a `catch`
Diffstat (limited to 'test/lit/merge/fusing.wat')
-rw-r--r-- | test/lit/merge/fusing.wat | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/lit/merge/fusing.wat b/test/lit/merge/fusing.wat index a1ac3a2c7..e074d30ba 100644 --- a/test/lit/merge/fusing.wat +++ b/test/lit/merge/fusing.wat @@ -40,20 +40,20 @@ ;; CHECK: (export "keepalive" (func $keepalive)) - ;; CHECK: (export "mem" (memory $first.mem)) - ;; CHECK: (export "exn" (tag $exn)) - ;; CHECK: (export "mem_5" (memory $second.mem)) + ;; CHECK: (export "mem" (memory $first.mem)) - ;; CHECK: (export "foo_6" (func $second.foo)) + ;; CHECK: (export "foo_5" (func $second.foo)) - ;; CHECK: (export "bar_7" (func $bar_6)) + ;; CHECK: (export "bar_6" (func $bar_6)) ;; CHECK: (export "keepalive2" (func $keepalive2)) ;; CHECK: (export "keepalive3" (func $keepalive3)) + ;; CHECK: (export "mem_9" (memory $second.mem)) + ;; CHECK: (func $first.foo (type $0) ;; CHECK-NEXT: (drop ;; CHECK-NEXT: (i32.const 1) |