summaryrefslogtreecommitdiff
path: root/test/lit/passes/code-pushing-gc.wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/lit/passes/code-pushing-gc.wast')
-rw-r--r--test/lit/passes/code-pushing-gc.wast18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/lit/passes/code-pushing-gc.wast b/test/lit/passes/code-pushing-gc.wast
index 56cfc8777..9587d5ab7 100644
--- a/test/lit/passes/code-pushing-gc.wast
+++ b/test/lit/passes/code-pushing-gc.wast
@@ -7,8 +7,8 @@
;; CHECK-NEXT: (drop
;; CHECK-NEXT: (block $out (result (ref func))
;; CHECK-NEXT: (drop
- ;; CHECK-NEXT: (br_on_cast $out (ref $none_=>_none) (ref func)
- ;; CHECK-NEXT: (ref.func $br_on)
+ ;; CHECK-NEXT: (br_on_cast $out nullfuncref (ref func)
+ ;; CHECK-NEXT: (ref.null nofunc)
;; CHECK-NEXT: )
;; CHECK-NEXT: )
;; CHECK-NEXT: (local.set $x
@@ -28,8 +28,8 @@
;; We can push the local.set past the br_on.
(local.set $x (ref.func $br_on))
(drop
- (br_on_func $out
- (ref.func $br_on)
+ (br_on_cast $out funcref (ref func)
+ (ref.null nofunc)
)
)
(drop
@@ -48,8 +48,8 @@
;; CHECK-NEXT: (ref.func $br_on_no)
;; CHECK-NEXT: )
;; CHECK-NEXT: (drop
- ;; CHECK-NEXT: (br_on_cast $out (ref $none_=>_none) (ref func)
- ;; CHECK-NEXT: (ref.func $br_on_no)
+ ;; CHECK-NEXT: (br_on_cast $out nullfuncref (ref func)
+ ;; CHECK-NEXT: (ref.null nofunc)
;; CHECK-NEXT: )
;; CHECK-NEXT: )
;; CHECK-NEXT: (ref.func $br_on_no)
@@ -61,13 +61,13 @@
;; CHECK-NEXT: )
(func $br_on_no
(local $x (ref null func))
- ;; We can't push here since the local.get is outside of the loop.
+ ;; We can't push here since the local.get is outside of the block.
(drop
(block $out (result (ref func))
(local.set $x (ref.func $br_on_no))
(drop
- (br_on_func $out
- (ref.func $br_on_no)
+ (br_on_cast $out funcref (ref func)
+ (ref.null nofunc)
)
)
(ref.func $br_on_no)