summaryrefslogtreecommitdiff
path: root/test/lit/passes/optimize-instructions-call_ref.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/optimize-instructions-call_ref.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/optimize-instructions-call_ref.wast')
-rw-r--r--test/lit/passes/optimize-instructions-call_ref.wast2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lit/passes/optimize-instructions-call_ref.wast b/test/lit/passes/optimize-instructions-call_ref.wast
index a0da2e9e5..2b648df3b 100644
--- a/test/lit/passes/optimize-instructions-call_ref.wast
+++ b/test/lit/passes/optimize-instructions-call_ref.wast
@@ -175,7 +175,7 @@
;; call_ref that returns nothing with a call that returns an i32. In fact, we
;; end up optimizing the cast into an unreachable.
(call_ref $none_=>_i32
- (ref.cast_static $none_=>_i32
+ (ref.cast null $none_=>_i32
(ref.func $return-nothing)
)
)