summaryrefslogtreecommitdiff
path: root/test/lit/passes/precompute-gc-immutable.wast
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2022-12-07 16:06:53 -0600
committerGitHub <noreply@github.com>2022-12-07 14:06:53 -0800
commitc79548b93a81ccf7609413da1345a7570c51b9ba (patch)
tree7783fbf6610383fb76fe312fe3c125860428b779 /test/lit/passes/precompute-gc-immutable.wast
parent5a8d09bfe725f321b022187e294991db3ffaa417 (diff)
downloadbinaryen-c79548b93a81ccf7609413da1345a7570c51b9ba.tar.gz
binaryen-c79548b93a81ccf7609413da1345a7570c51b9ba.tar.bz2
binaryen-c79548b93a81ccf7609413da1345a7570c51b9ba.zip
Add standard versions of WasmGC casts (#5331)
We previously supported only the non-standard cast instructions introduced when we were experimenting with nominal types. Parse the names and opcodes of their standard counterparts and switch to emitting the standard names and opcodes. Port all of the tests to use the standard instructions, but add additional tests showing that the non-standard versions are still parsed correctly.
Diffstat (limited to 'test/lit/passes/precompute-gc-immutable.wast')
-rw-r--r--test/lit/passes/precompute-gc-immutable.wast4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lit/passes/precompute-gc-immutable.wast b/test/lit/passes/precompute-gc-immutable.wast
index 2420a139c..5b0d4dffd 100644
--- a/test/lit/passes/precompute-gc-immutable.wast
+++ b/test/lit/passes/precompute-gc-immutable.wast
@@ -794,7 +794,7 @@
;; We can precompute all these operations away into the final constants.
(call $helper
(struct.get $vtable-0 0
- (ref.cast_static $vtable-0
+ (ref.cast null $vtable-0
(array.get $itable
(struct.get $object 0
(local.get $ref)
@@ -806,7 +806,7 @@
)
(call $helper
(struct.get $vtable-1 0
- (ref.cast_static $vtable-1
+ (ref.cast null $vtable-1
(array.get $itable
(struct.get $object 0
(local.get $ref)