summaryrefslogtreecommitdiff
path: root/test/ctor-eval/gc-array.wast
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2023-02-28 18:18:38 -0600
committerGitHub <noreply@github.com>2023-02-28 16:18:38 -0800
commit356767e259cde364b0968bedf4ffd012d48737b5 (patch)
tree82daae9ece7114141b31c26a8fcccd94e0ea2ba7 /test/ctor-eval/gc-array.wast
parentaa4bc77bc967fd8911c30d7e69e44a9a0aef553a (diff)
downloadbinaryen-356767e259cde364b0968bedf4ffd012d48737b5.tar.gz
binaryen-356767e259cde364b0968bedf4ffd012d48737b5.tar.bz2
binaryen-356767e259cde364b0968bedf4ffd012d48737b5.zip
Parse and print `array.new_fixed` (#5527)
This is a (more) standard name for `array.init_static`. (The full upstream name in the spec repo is `array.new_canon_fixed`, but I'm still hoping we can drop `canon` from all the instruction names and it doesn't appear elsewhere in Binaryen). Update all the existing tests to use the new name and add a test specifically to ensure the old name continues parsing.
Diffstat (limited to 'test/ctor-eval/gc-array.wast')
-rw-r--r--test/ctor-eval/gc-array.wast4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ctor-eval/gc-array.wast b/test/ctor-eval/gc-array.wast
index 8f6731821..316230e13 100644
--- a/test/ctor-eval/gc-array.wast
+++ b/test/ctor-eval/gc-array.wast
@@ -5,7 +5,7 @@
;; This global will remain as it is.
(global $global1 (ref $array)
- (array.init_static $array
+ (array.new_fixed $array
(i32.const 10)
(i32.const 20)
(i32.const 30)
@@ -14,7 +14,7 @@
)
(global $global2 (ref $array)
- (array.init_static $array
+ (array.new_fixed $array
(i32.const 42)
;; This location will be written with a new value, 1337
(i32.const 0)