diff options
author | Heejin Ahn <aheejin@gmail.com> | 2024-05-28 10:32:02 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-28 10:32:02 -0700 |
commit | 13f3fd2bb76a41f146382ebf7303869c1088c73e (patch) | |
tree | 8895e95a07eddeddf13598de22b6cb94bf0696aa /test/lit/passes/remove-unused-names-eh-legacy.wast | |
parent | f9ce00bd1f2457f5d2779d122199251978c7f851 (diff) | |
download | binaryen-13f3fd2bb76a41f146382ebf7303869c1088c73e.tar.gz binaryen-13f3fd2bb76a41f146382ebf7303869c1088c73e.tar.bz2 binaryen-13f3fd2bb76a41f146382ebf7303869c1088c73e.zip |
[EH] Rename old EH tests from -old to -legacy (#6627)
This renames old EH tests in the form of `-eh-old.wast` to
`-eh-legacy.wast`, to be clearer in names.
Diffstat (limited to 'test/lit/passes/remove-unused-names-eh-legacy.wast')
-rw-r--r-- | test/lit/passes/remove-unused-names-eh-legacy.wast | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/test/lit/passes/remove-unused-names-eh-legacy.wast b/test/lit/passes/remove-unused-names-eh-legacy.wast new file mode 100644 index 000000000..729e50add --- /dev/null +++ b/test/lit/passes/remove-unused-names-eh-legacy.wast @@ -0,0 +1,71 @@ +;; NOTE: Assertions have been generated by update_lit_checks.py and should not be edited. +;; RUN: wasm-opt %s --remove-unused-names -all -S -o - | filecheck %s + +(module + ;; CHECK: (tag $tag$0 (param i32)) + (tag $tag$0 (param i32)) + + ;; CHECK: (func $func0 (type $0) + ;; CHECK-NEXT: (try $label$9 + ;; CHECK-NEXT: (do + ;; CHECK-NEXT: (nop) + ;; CHECK-NEXT: ) + ;; CHECK-NEXT: (catch_all + ;; CHECK-NEXT: (try $label$8 + ;; CHECK-NEXT: (do + ;; CHECK-NEXT: (try + ;; CHECK-NEXT: (do + ;; CHECK-NEXT: (rethrow $label$9) + ;; CHECK-NEXT: ) + ;; CHECK-NEXT: (delegate $label$8) + ;; CHECK-NEXT: ) + ;; CHECK-NEXT: ) + ;; CHECK-NEXT: (catch $tag$0 + ;; CHECK-NEXT: (drop + ;; CHECK-NEXT: (pop i32) + ;; CHECK-NEXT: ) + ;; CHECK-NEXT: ) + ;; CHECK-NEXT: ) + ;; CHECK-NEXT: ) + ;; CHECK-NEXT: ) + ;; CHECK-NEXT: ) + (func $func0 + (try $label$9 ;; needed due to a rethrow + (do) + (catch_all + (try $label$8 ;; needed due to a delegate + (do + (try $label$6 ;; this one is not needed + (do + (rethrow $label$9) + ) + (delegate $label$8) + ) + ) + (catch $tag$0 + (drop + (pop i32) + ) + ) + ) + ) + ) + ) + + ;; CHECK: (func $func1 (type $0) + ;; CHECK-NEXT: (try + ;; CHECK-NEXT: (do + ;; CHECK-NEXT: (nop) + ;; CHECK-NEXT: ) + ;; CHECK-NEXT: (delegate 0) + ;; CHECK-NEXT: ) + ;; CHECK-NEXT: ) + (func $func1 + (try $label$3 ;; this one is not needed + (do + (nop) + ) + (delegate 0) ;; delegates to the caller + ) + ) +) |