diff options
author | Thomas Lively <tlively@google.com> | 2022-12-07 12:41:49 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-07 18:41:49 +0000 |
commit | 2590620a32190f98b29c7d9726865aa8082b4023 (patch) | |
tree | 22bb9475aecafe5aeae4977fe1b0edb49053f2e7 /test/lit/passes/dae-gc.wast | |
parent | 3253df552729e771a31decf0e29a775f888b1e6f (diff) | |
download | binaryen-2590620a32190f98b29c7d9726865aa8082b4023.tar.gz binaryen-2590620a32190f98b29c7d9726865aa8082b4023.tar.bz2 binaryen-2590620a32190f98b29c7d9726865aa8082b4023.zip |
Update tests ahead of transition from `data` to `struct` (#5320)
The upstream WasmGC spec has removed `data` and introduced `struct`. To make the
migration easier, we have been supporting `struct` as an `alias` for `data` and
`structref` as an alias for `dataref`.
Update the tests to prefer the `struct` aliases over `data` for test input to
make the future migration easier. Also update some tests that had stale comments
about ref.null types being updated and remove some tests for instructions like
br_on_data and ref.as_data that do not make sense without a `data` type.
Diffstat (limited to 'test/lit/passes/dae-gc.wast')
-rw-r--r-- | test/lit/passes/dae-gc.wast | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/lit/passes/dae-gc.wast b/test/lit/passes/dae-gc.wast index 2f023b075..4e5144453 100644 --- a/test/lit/passes/dae-gc.wast +++ b/test/lit/passes/dae-gc.wast @@ -211,15 +211,15 @@ ;; NOMNL-NEXT: ) ;; NOMNL-NEXT: ) (func $call-bar - ;; Call with nulls. Mixing nulls is fine as they all have the same value, and - ;; we can optimize (to the LUB of the nulls). However, mixing a null with a - ;; reference stops us in the second param. + ;; Call with nulls. Mixing nulls is fine as they all have the same type and + ;; value. However, mixing a null with a reference stops us in the second + ;; param. (call $bar - (ref.null i31) - (ref.null data) + (ref.null none) + (ref.null none) ) (call $bar - (ref.null any) + (ref.null none) (i31.new (i32.const 0)) ) ) |