]> git.proxmox.com Git - rustc.git/blob - src/binaryen/test/llvm_autogenerated/varargs.wast
New upstream version 1.23.0+dfsg1
[rustc.git] / src / binaryen / test / llvm_autogenerated / varargs.wast
1 (module
2 (type $FUNCSIG$v (func))
3 (type $FUNCSIG$vi (func (param i32)))
4 (import "env" "callee" (func $callee (param i32)))
5 (import "env" "memory" (memory $0 1))
6 (table 0 anyfunc)
7 (data (i32.const 4) "\10\04\00\00")
8 (export "start" (func $start))
9 (export "end" (func $end))
10 (export "copy" (func $copy))
11 (export "arg_i8" (func $arg_i8))
12 (export "arg_i32" (func $arg_i32))
13 (export "arg_i128" (func $arg_i128))
14 (export "caller_none" (func $caller_none))
15 (export "caller_some" (func $caller_some))
16 (export "startbb" (func $startbb))
17 (export "stackSave" (func $stackSave))
18 (export "stackAlloc" (func $stackAlloc))
19 (export "stackRestore" (func $stackRestore))
20 (func $start (; 1 ;) (param $0 i32) (param $1 i32)
21 (i32.store
22 (get_local $0)
23 (get_local $1)
24 )
25 (return)
26 )
27 (func $end (; 2 ;) (param $0 i32)
28 (return)
29 )
30 (func $copy (; 3 ;) (param $0 i32) (param $1 i32)
31 (i32.store
32 (get_local $0)
33 (i32.load
34 (get_local $1)
35 )
36 )
37 (return)
38 )
39 (func $arg_i8 (; 4 ;) (param $0 i32) (result i32)
40 (local $1 i32)
41 (i32.store
42 (get_local $0)
43 (i32.add
44 (tee_local $1
45 (i32.load
46 (get_local $0)
47 )
48 )
49 (i32.const 4)
50 )
51 )
52 (return
53 (i32.load
54 (get_local $1)
55 )
56 )
57 )
58 (func $arg_i32 (; 5 ;) (param $0 i32) (result i32)
59 (local $1 i32)
60 (i32.store
61 (get_local $0)
62 (i32.add
63 (tee_local $1
64 (i32.and
65 (i32.add
66 (i32.load
67 (get_local $0)
68 )
69 (i32.const 3)
70 )
71 (i32.const -4)
72 )
73 )
74 (i32.const 4)
75 )
76 )
77 (return
78 (i32.load
79 (get_local $1)
80 )
81 )
82 )
83 (func $arg_i128 (; 6 ;) (param $0 i32) (param $1 i32)
84 (local $2 i32)
85 (local $3 i32)
86 (local $4 i64)
87 (i32.store
88 (get_local $1)
89 (tee_local $3
90 (i32.add
91 (tee_local $2
92 (i32.and
93 (i32.add
94 (i32.load
95 (get_local $1)
96 )
97 (i32.const 7)
98 )
99 (i32.const -8)
100 )
101 )
102 (i32.const 8)
103 )
104 )
105 )
106 (set_local $4
107 (i64.load
108 (get_local $2)
109 )
110 )
111 (i32.store
112 (get_local $1)
113 (i32.add
114 (get_local $2)
115 (i32.const 16)
116 )
117 )
118 (i64.store
119 (i32.add
120 (get_local $0)
121 (i32.const 8)
122 )
123 (i64.load
124 (get_local $3)
125 )
126 )
127 (i64.store
128 (get_local $0)
129 (get_local $4)
130 )
131 (return)
132 )
133 (func $caller_none (; 7 ;)
134 (call $callee
135 (i32.const 0)
136 )
137 (return)
138 )
139 (func $caller_some (; 8 ;)
140 (local $0 i32)
141 (i32.store offset=4
142 (i32.const 0)
143 (tee_local $0
144 (i32.sub
145 (i32.load offset=4
146 (i32.const 0)
147 )
148 (i32.const 16)
149 )
150 )
151 )
152 (i64.store offset=8
153 (get_local $0)
154 (i64.const 4611686018427387904)
155 )
156 (i32.store
157 (get_local $0)
158 (i32.const 0)
159 )
160 (call $callee
161 (get_local $0)
162 )
163 (i32.store offset=4
164 (i32.const 0)
165 (i32.add
166 (get_local $0)
167 (i32.const 16)
168 )
169 )
170 (return)
171 )
172 (func $startbb (; 9 ;) (param $0 i32) (param $1 i32) (param $2 i32)
173 (block $label$0
174 (br_if $label$0
175 (i32.eqz
176 (i32.and
177 (get_local $0)
178 (i32.const 1)
179 )
180 )
181 )
182 (return)
183 )
184 (i32.store
185 (get_local $1)
186 (get_local $2)
187 )
188 (return)
189 )
190 (func $stackSave (; 10 ;) (result i32)
191 (i32.load offset=4
192 (i32.const 0)
193 )
194 )
195 (func $stackAlloc (; 11 ;) (param $0 i32) (result i32)
196 (local $1 i32)
197 (set_local $1
198 (i32.load offset=4
199 (i32.const 0)
200 )
201 )
202 (i32.store offset=4
203 (i32.const 0)
204 (i32.and
205 (i32.sub
206 (get_local $1)
207 (get_local $0)
208 )
209 (i32.const -16)
210 )
211 )
212 (get_local $1)
213 )
214 (func $stackRestore (; 12 ;) (param $0 i32)
215 (i32.store offset=4
216 (i32.const 0)
217 (get_local $0)
218 )
219 )
220 )
221 ;; METADATA: { "asmConsts": {},"staticBump": 1040, "initializers": [] }