blob: 0b1e45d9d72d35b4936c9e43b5daafef7579dde3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
;; NOTE: Assertions have been generated by update_lit_checks.py and should not be edited.
;; RUN: wasm-opt %s --merge-locals -all -S -o - | filecheck %s
(module
;; CHECK: (func $between-unreachable (type $0) (result i32)
;; CHECK-NEXT: (local $x i32)
;; CHECK-NEXT: (local $y i32)
;; CHECK-NEXT: (select
;; CHECK-NEXT: (unreachable)
;; CHECK-NEXT: (local.tee $x
;; CHECK-NEXT: (local.get $y)
;; CHECK-NEXT: )
;; CHECK-NEXT: (unreachable)
;; CHECK-NEXT: )
;; CHECK-NEXT: )
(func $between-unreachable (result i32)
(local $x i32)
(local $y i32)
(select
(unreachable)
;; The local copy here is in between unreachables. We should not error.
(local.tee $x
(local.get $y)
)
(unreachable)
)
)
)
|