From 2590620a32190f98b29c7d9726865aa8082b4023 Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Wed, 7 Dec 2022 12:41:49 -0600 Subject: 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. --- test/lit/passes/dae-gc.wast | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'test/lit/passes/dae-gc.wast') 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)) ) ) -- cgit v1.2.3