summaryrefslogtreecommitdiff
path: root/test/lit/ctor-eval
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2023-09-13 20:02:26 -0700
committerGitHub <noreply@github.com>2023-09-13 20:02:26 -0700
commit2cbe448eb4df17010f0e5f360a8e705da710f3e0 (patch)
treeb0967cb40dd4dbb2d209afb66cdf58c8af498cf9 /test/lit/ctor-eval
parent9d79632c210a8c5002657ae87ff06c70ee109e8f (diff)
downloadbinaryen-2cbe448eb4df17010f0e5f360a8e705da710f3e0.tar.gz
binaryen-2cbe448eb4df17010f0e5f360a8e705da710f3e0.tar.bz2
binaryen-2cbe448eb4df17010f0e5f360a8e705da710f3e0.zip
Replace i31.new with ref.i31 everywhere (#5931)
Replace i31.new with ref.i31 in the printer, tests, and source code. Continue parsing i31.new for the time being to allow a graceful transition. Also update the JS API to reflect the new instruction name.
Diffstat (limited to 'test/lit/ctor-eval')
-rw-r--r--test/lit/ctor-eval/extern.wast8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/lit/ctor-eval/extern.wast b/test/lit/ctor-eval/extern.wast
index b279b718e..5bb5c8cbc 100644
--- a/test/lit/ctor-eval/extern.wast
+++ b/test/lit/ctor-eval/extern.wast
@@ -20,7 +20,7 @@
;; CHECK: (global $ctor-eval$global_1 (ref $struct) (struct.new $struct
;; CHECK-NEXT: (extern.externalize
- ;; CHECK-NEXT: (i31.new
+ ;; CHECK-NEXT: (ref.i31
;; CHECK-NEXT: (i32.const 1)
;; CHECK-NEXT: )
;; CHECK-NEXT: )
@@ -38,7 +38,7 @@
;; serialization of an externalized i31 is what is written here. But the add
;; will be evalled out.
(extern.externalize
- (i31.new
+ (ref.i31
(i32.add
(i32.const 41)
(i32.const 1)
@@ -62,7 +62,7 @@
;; This will add a global that contains an externalization operation.
(struct.new $struct
(extern.externalize
- (i31.new
+ (ref.i31
(i32.const 1)
)
)
@@ -72,7 +72,7 @@
;; CHECK: (func $test1_3 (type $2) (result externref)
;; CHECK-NEXT: (extern.externalize
-;; CHECK-NEXT: (i31.new
+;; CHECK-NEXT: (ref.i31
;; CHECK-NEXT: (i32.const 42)
;; CHECK-NEXT: )
;; CHECK-NEXT: )