summaryrefslogtreecommitdiff
path: root/test/lit/passes
diff options
context:
space:
mode:
Diffstat (limited to 'test/lit/passes')
-rw-r--r--test/lit/passes/gto-removals.wast16
1 files changed, 11 insertions, 5 deletions
diff --git a/test/lit/passes/gto-removals.wast b/test/lit/passes/gto-removals.wast
index 1d662f0ac..c5e148afa 100644
--- a/test/lit/passes/gto-removals.wast
+++ b/test/lit/passes/gto-removals.wast
@@ -589,17 +589,23 @@
)
;; CHECK: (func $new-side-effect-in-kept (type $3) (param $any (ref any))
+ ;; CHECK-NEXT: (local $1 i32)
;; CHECK-NEXT: (drop
- ;; CHECK-NEXT: (struct.new $struct
- ;; CHECK-NEXT: (call $helper0
- ;; CHECK-NEXT: (i32.const 0)
+ ;; CHECK-NEXT: (block (result (ref $struct))
+ ;; CHECK-NEXT: (local.set $1
+ ;; CHECK-NEXT: (call $helper0
+ ;; CHECK-NEXT: (i32.const 0)
+ ;; CHECK-NEXT: )
+ ;; CHECK-NEXT: )
+ ;; CHECK-NEXT: (struct.new $struct
+ ;; CHECK-NEXT: (local.get $1)
;; CHECK-NEXT: )
;; CHECK-NEXT: )
;; CHECK-NEXT: )
;; CHECK-NEXT: )
(func $new-side-effect-in-kept (param $any (ref any))
- ;; Side effects appear in fields that we do *not* remove. In that case,
- ;; we do not need to use locals.
+ ;; Side effects appear in fields that we do *not* remove. We do not need to
+ ;; use locals here, but for simplicity we do, and rely on later opts.
(drop
(struct.new $struct
(call $helper0 (i32.const 0))