]> git.proxmox.com Git - rustc.git/blob - src/binaryen/test/llvm_autogenerated/lower-em-ehsjlj-options.wast
New upstream version 1.23.0+dfsg1
[rustc.git] / src / binaryen / test / llvm_autogenerated / lower-em-ehsjlj-options.wast
1 (module
2 (type $FUNCSIG$v (func))
3 (type $FUNCSIG$i (func (result i32)))
4 (type $FUNCSIG$ii (func (param i32) (result i32)))
5 (type $FUNCSIG$vii (func (param i32 i32)))
6 (type $FUNCSIG$vi (func (param i32)))
7 (import "env" "__cxa_begin_catch" (func $__cxa_begin_catch (param i32) (result i32)))
8 (import "env" "__cxa_end_catch" (func $__cxa_end_catch))
9 (import "env" "__cxa_find_matching_catch_3" (func $__cxa_find_matching_catch_3 (param i32) (result i32)))
10 (import "env" "invoke_v" (func $invoke_v (param i32)))
11 (import "env" "longjmp" (func $longjmp (param i32 i32)))
12 (import "env" "setjmp" (func $setjmp (param i32) (result i32)))
13 (import "env" "memory" (memory $0 1))
14 (import "env" "foo" (func $foo))
15 (table 2 2 anyfunc)
16 (elem (i32.const 0) $__wasm_nullptr $__importThunk_foo)
17 (data (i32.const 4) " \04\00\00")
18 (data (i32.const 12) "\00\00\00\00")
19 (data (i32.const 16) "\00\00\00\00")
20 (data (i32.const 20) "\00\00\00\00")
21 (export "exception" (func $exception))
22 (export "setjmp_longjmp" (func $setjmp_longjmp))
23 (export "setThrew" (func $setThrew))
24 (export "setTempRet0" (func $setTempRet0))
25 (export "stackSave" (func $stackSave))
26 (export "stackAlloc" (func $stackAlloc))
27 (export "stackRestore" (func $stackRestore))
28 (export "dynCall_v" (func $dynCall_v))
29 (func $exception (; 7 ;)
30 (local $0 i32)
31 (i32.store offset=12
32 (i32.const 0)
33 (i32.const 0)
34 )
35 (call $invoke_v
36 (i32.const 1)
37 )
38 (set_local $0
39 (i32.load offset=12
40 (i32.const 0)
41 )
42 )
43 (i32.store offset=12
44 (i32.const 0)
45 (i32.const 0)
46 )
47 (block $label$0
48 (br_if $label$0
49 (i32.ne
50 (get_local $0)
51 (i32.const 1)
52 )
53 )
54 (drop
55 (call $__cxa_begin_catch
56 (call $__cxa_find_matching_catch_3
57 (i32.const 0)
58 )
59 )
60 )
61 (call $__cxa_end_catch)
62 )
63 )
64 (func $setjmp_longjmp (; 8 ;)
65 (local $0 i32)
66 (i32.store offset=4
67 (i32.const 0)
68 (tee_local $0
69 (i32.sub
70 (i32.load offset=4
71 (i32.const 0)
72 )
73 (i32.const 160)
74 )
75 )
76 )
77 (drop
78 (call $setjmp
79 (get_local $0)
80 )
81 )
82 (call $longjmp
83 (get_local $0)
84 (i32.const 1)
85 )
86 (unreachable)
87 )
88 (func $setThrew (; 9 ;) (param $0 i32) (param $1 i32)
89 (block $label$0
90 (br_if $label$0
91 (i32.load offset=12
92 (i32.const 0)
93 )
94 )
95 (i32.store offset=16
96 (i32.const 0)
97 (get_local $1)
98 )
99 (i32.store offset=12
100 (i32.const 0)
101 (get_local $0)
102 )
103 )
104 )
105 (func $setTempRet0 (; 10 ;) (param $0 i32)
106 (i32.store offset=20
107 (i32.const 0)
108 (get_local $0)
109 )
110 )
111 (func $__wasm_nullptr (; 11 ;) (type $FUNCSIG$v)
112 (unreachable)
113 )
114 (func $__importThunk_foo (; 12 ;) (type $FUNCSIG$v)
115 (call $foo)
116 )
117 (func $stackSave (; 13 ;) (result i32)
118 (i32.load offset=4
119 (i32.const 0)
120 )
121 )
122 (func $stackAlloc (; 14 ;) (param $0 i32) (result i32)
123 (local $1 i32)
124 (set_local $1
125 (i32.load offset=4
126 (i32.const 0)
127 )
128 )
129 (i32.store offset=4
130 (i32.const 0)
131 (i32.and
132 (i32.sub
133 (get_local $1)
134 (get_local $0)
135 )
136 (i32.const -16)
137 )
138 )
139 (get_local $1)
140 )
141 (func $stackRestore (; 15 ;) (param $0 i32)
142 (i32.store offset=4
143 (i32.const 0)
144 (get_local $0)
145 )
146 )
147 (func $dynCall_v (; 16 ;) (param $fptr i32)
148 (call_indirect (type $FUNCSIG$v)
149 (get_local $fptr)
150 )
151 )
152 )
153 ;; METADATA: { "asmConsts": {},"staticBump": 1056, "initializers": [] }