blob: 893fb0a337c41bab6816caccc0ec41e2606999a6 (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
;; NOTE: Assertions have been generated by update_lit_checks.py --all-items and should not be edited.
;; Check that the deprecated *_static instruction names are still parsed correctly.
;; RUN: wasm-opt %s -all -S -o - | filecheck %s
(module
;; CHECK: (type $none_=>_none (func))
;; CHECK: (type $struct (struct ))
(type $struct (struct))
;; CHECK: (func $test (type $none_=>_none)
;; CHECK-NEXT: (drop
;; CHECK-NEXT: (ref.test $struct
;; CHECK-NEXT: (ref.null none)
;; CHECK-NEXT: )
;; CHECK-NEXT: )
;; CHECK-NEXT: (drop
;; CHECK-NEXT: (ref.cast null none
;; CHECK-NEXT: (ref.null none)
;; CHECK-NEXT: )
;; CHECK-NEXT: )
;; CHECK-NEXT: (drop
;; CHECK-NEXT: (ref.cast_nop none
;; CHECK-NEXT: (ref.null none)
;; CHECK-NEXT: )
;; CHECK-NEXT: )
;; CHECK-NEXT: )
(func $test
(drop
(ref.test_static $struct
(ref.null none)
)
)
(drop
(ref.cast_static $struct
(ref.null none)
)
)
(drop
(ref.cast_nop_static $struct
(ref.null none)
)
)
)
)
|