]> git.proxmox.com Git - rustc.git/blob - src/binaryen/test/torture-s/20060420-1.c.s
New upstream version 1.23.0+dfsg1
[rustc.git] / src / binaryen / test / torture-s / 20060420-1.c.s
1 .text
2 .file "20060420-1.c"
3 .section .text.foo,"ax",@progbits
4 .hidden foo # -- Begin function foo
5 .globl foo
6 .type foo,@function
7 foo: # @foo
8 .param i32, i32, i32, i32
9 .local i32, i32, i32, i32, i32, i32, i32, i32, i32, f32, f32, f32, f32, f32, f32, f32, f32, f32, f32, f32, f32, f32, f32, f32, f32
10 # BB#0: # %entry
11 block
12 block
13 i32.const $push85=, 1
14 i32.lt_s $push3=, $3, $pop85
15 br_if 0, $pop3 # 0: down to label1
16 # BB#1: # %land.rhs.lr.ph
17 i32.const $push87=, -1
18 i32.add $8=, $2, $pop87
19 i32.const $push86=, 4
20 i32.add $4=, $1, $pop86
21 i32.const $10=, 0
22 .LBB0_2: # %land.rhs
23 # =>This Loop Header: Depth=1
24 # Child Loop BB0_5 Depth 2
25 loop # label2:
26 i32.add $push4=, $10, $0
27 i32.const $push88=, 15
28 i32.and $push5=, $pop4, $pop88
29 i32.eqz $push171=, $pop5
30 br_if 2, $pop171 # 2: down to label0
31 # BB#3: # %for.body
32 # in Loop: Header=BB0_2 Depth=1
33 i32.load $push7=, 0($1)
34 i32.const $push92=, 2
35 i32.shl $push91=, $10, $pop92
36 tee_local $push90=, $11=, $pop91
37 i32.add $push8=, $pop7, $pop90
38 f32.load $25=, 0($pop8)
39 block
40 i32.const $push89=, 2
41 i32.lt_s $push6=, $2, $pop89
42 br_if 0, $pop6 # 0: down to label3
43 # BB#4: # %for.body4.preheader
44 # in Loop: Header=BB0_2 Depth=1
45 copy_local $12=, $8
46 copy_local $9=, $4
47 .LBB0_5: # %for.body4
48 # Parent Loop BB0_2 Depth=1
49 # => This Inner Loop Header: Depth=2
50 loop # label4:
51 i32.load $push9=, 0($9)
52 i32.add $push10=, $pop9, $11
53 f32.load $push11=, 0($pop10)
54 f32.add $25=, $25, $pop11
55 i32.const $push96=, 4
56 i32.add $push0=, $9, $pop96
57 copy_local $9=, $pop0
58 i32.const $push95=, -1
59 i32.add $push94=, $12, $pop95
60 tee_local $push93=, $12=, $pop94
61 br_if 0, $pop93 # 0: up to label4
62 .LBB0_6: # %for.end
63 # in Loop: Header=BB0_2 Depth=1
64 end_loop
65 end_block # label3:
66 i32.add $push12=, $0, $11
67 f32.store 0($pop12), $25
68 i32.const $push99=, 1
69 i32.add $push98=, $10, $pop99
70 tee_local $push97=, $10=, $pop98
71 i32.lt_s $push13=, $pop97, $3
72 br_if 0, $pop13 # 0: up to label2
73 br 2 # 2: down to label0
74 .LBB0_7:
75 end_loop
76 end_block # label1:
77 i32.const $10=, 0
78 .LBB0_8: # %for.end11
79 end_block # label0:
80 block
81 i32.const $push14=, -15
82 i32.add $push101=, $3, $pop14
83 tee_local $push100=, $4=, $pop101
84 i32.ge_s $push15=, $10, $pop100
85 br_if 0, $pop15 # 0: down to label5
86 # BB#9: # %for.body15.lr.ph
87 i32.const $push104=, -1
88 i32.add $7=, $2, $pop104
89 i32.const $push103=, 4
90 i32.add $6=, $1, $pop103
91 i32.const $push16=, -16
92 i32.add $push17=, $3, $pop16
93 i32.sub $push18=, $pop17, $10
94 i32.const $push102=, -16
95 i32.and $push19=, $pop18, $pop102
96 i32.add $5=, $10, $pop19
97 .LBB0_10: # %for.body15
98 # =>This Loop Header: Depth=1
99 # Child Loop BB0_12 Depth 2
100 loop # label6:
101 i32.load $push21=, 0($1)
102 i32.const $push122=, 2
103 i32.shl $push121=, $10, $pop122
104 tee_local $push120=, $8=, $pop121
105 i32.add $push119=, $pop21, $pop120
106 tee_local $push118=, $9=, $pop119
107 f32.load $25=, 48($pop118)
108 f32.load $21=, 32($9)
109 f32.load $17=, 16($9)
110 f32.load $13=, 0($9)
111 i32.const $push117=, 60
112 i32.add $push22=, $9, $pop117
113 f32.load $28=, 0($pop22)
114 i32.const $push116=, 56
115 i32.add $push23=, $9, $pop116
116 f32.load $27=, 0($pop23)
117 i32.const $push115=, 52
118 i32.add $push24=, $9, $pop115
119 f32.load $26=, 0($pop24)
120 i32.const $push114=, 44
121 i32.add $push25=, $9, $pop114
122 f32.load $24=, 0($pop25)
123 i32.const $push113=, 40
124 i32.add $push26=, $9, $pop113
125 f32.load $23=, 0($pop26)
126 i32.const $push112=, 36
127 i32.add $push27=, $9, $pop112
128 f32.load $22=, 0($pop27)
129 i32.const $push111=, 28
130 i32.add $push28=, $9, $pop111
131 f32.load $20=, 0($pop28)
132 i32.const $push110=, 24
133 i32.add $push29=, $9, $pop110
134 f32.load $19=, 0($pop29)
135 i32.const $push109=, 20
136 i32.add $push30=, $9, $pop109
137 f32.load $18=, 0($pop30)
138 i32.const $push108=, 12
139 i32.add $push31=, $9, $pop108
140 f32.load $16=, 0($pop31)
141 i32.const $push107=, 8
142 i32.add $push32=, $9, $pop107
143 f32.load $15=, 0($pop32)
144 i32.const $push106=, 4
145 i32.add $push33=, $9, $pop106
146 f32.load $14=, 0($pop33)
147 block
148 i32.const $push105=, 2
149 i32.lt_s $push20=, $2, $pop105
150 br_if 0, $pop20 # 0: down to label7
151 # BB#11: # %for.body33.preheader
152 # in Loop: Header=BB0_10 Depth=1
153 copy_local $11=, $7
154 copy_local $12=, $6
155 .LBB0_12: # %for.body33
156 # Parent Loop BB0_10 Depth=1
157 # => This Inner Loop Header: Depth=2
158 loop # label8:
159 i32.load $push34=, 0($12)
160 i32.add $push140=, $pop34, $8
161 tee_local $push139=, $9=, $pop140
162 f32.load $push35=, 48($pop139)
163 f32.add $25=, $25, $pop35
164 f32.load $push36=, 32($9)
165 f32.add $21=, $21, $pop36
166 f32.load $push37=, 16($9)
167 f32.add $17=, $17, $pop37
168 f32.load $push38=, 0($9)
169 f32.add $13=, $13, $pop38
170 i32.const $push138=, 60
171 i32.add $push39=, $9, $pop138
172 f32.load $push40=, 0($pop39)
173 f32.add $28=, $28, $pop40
174 i32.const $push137=, 56
175 i32.add $push41=, $9, $pop137
176 f32.load $push42=, 0($pop41)
177 f32.add $27=, $27, $pop42
178 i32.const $push136=, 52
179 i32.add $push43=, $9, $pop136
180 f32.load $push44=, 0($pop43)
181 f32.add $26=, $26, $pop44
182 i32.const $push135=, 44
183 i32.add $push45=, $9, $pop135
184 f32.load $push46=, 0($pop45)
185 f32.add $24=, $24, $pop46
186 i32.const $push134=, 40
187 i32.add $push47=, $9, $pop134
188 f32.load $push48=, 0($pop47)
189 f32.add $23=, $23, $pop48
190 i32.const $push133=, 36
191 i32.add $push49=, $9, $pop133
192 f32.load $push50=, 0($pop49)
193 f32.add $22=, $22, $pop50
194 i32.const $push132=, 28
195 i32.add $push51=, $9, $pop132
196 f32.load $push52=, 0($pop51)
197 f32.add $20=, $20, $pop52
198 i32.const $push131=, 24
199 i32.add $push53=, $9, $pop131
200 f32.load $push54=, 0($pop53)
201 f32.add $19=, $19, $pop54
202 i32.const $push130=, 20
203 i32.add $push55=, $9, $pop130
204 f32.load $push56=, 0($pop55)
205 f32.add $18=, $18, $pop56
206 i32.const $push129=, 12
207 i32.add $push57=, $9, $pop129
208 f32.load $push58=, 0($pop57)
209 f32.add $16=, $16, $pop58
210 i32.const $push128=, 8
211 i32.add $push59=, $9, $pop128
212 f32.load $push60=, 0($pop59)
213 f32.add $15=, $15, $pop60
214 i32.const $push127=, 4
215 i32.add $push61=, $9, $pop127
216 f32.load $push62=, 0($pop61)
217 f32.add $14=, $14, $pop62
218 i32.const $push126=, 4
219 i32.add $push1=, $12, $pop126
220 copy_local $12=, $pop1
221 i32.const $push125=, -1
222 i32.add $push124=, $11, $pop125
223 tee_local $push123=, $11=, $pop124
224 br_if 0, $pop123 # 0: up to label8
225 .LBB0_13: # %for.end56
226 # in Loop: Header=BB0_10 Depth=1
227 end_loop
228 end_block # label7:
229 i32.add $push157=, $0, $8
230 tee_local $push156=, $9=, $pop157
231 f32.store 16($pop156), $17
232 f32.store 0($9), $13
233 f32.store 32($9), $21
234 f32.store 48($9), $25
235 i32.const $push155=, 28
236 i32.add $push63=, $9, $pop155
237 f32.store 0($pop63), $20
238 i32.const $push154=, 24
239 i32.add $push64=, $9, $pop154
240 f32.store 0($pop64), $19
241 i32.const $push153=, 20
242 i32.add $push65=, $9, $pop153
243 f32.store 0($pop65), $18
244 i32.const $push152=, 12
245 i32.add $push66=, $9, $pop152
246 f32.store 0($pop66), $16
247 i32.const $push151=, 8
248 i32.add $push67=, $9, $pop151
249 f32.store 0($pop67), $15
250 i32.const $push150=, 4
251 i32.add $push68=, $9, $pop150
252 f32.store 0($pop68), $14
253 i32.const $push149=, 44
254 i32.add $push69=, $9, $pop149
255 f32.store 0($pop69), $24
256 i32.const $push148=, 40
257 i32.add $push70=, $9, $pop148
258 f32.store 0($pop70), $23
259 i32.const $push147=, 36
260 i32.add $push71=, $9, $pop147
261 f32.store 0($pop71), $22
262 i32.const $push146=, 60
263 i32.add $push72=, $9, $pop146
264 f32.store 0($pop72), $28
265 i32.const $push145=, 56
266 i32.add $push73=, $9, $pop145
267 f32.store 0($pop73), $27
268 i32.const $push144=, 52
269 i32.add $push74=, $9, $pop144
270 f32.store 0($pop74), $26
271 i32.const $push143=, 16
272 i32.add $push142=, $10, $pop143
273 tee_local $push141=, $10=, $pop142
274 i32.lt_s $push75=, $pop141, $4
275 br_if 0, $pop75 # 0: up to label6
276 # BB#14: # %for.end72.loopexit
277 end_loop
278 i32.const $push76=, 16
279 i32.add $10=, $5, $pop76
280 .LBB0_15: # %for.end72
281 end_block # label5:
282 block
283 i32.ge_s $push77=, $10, $3
284 br_if 0, $pop77 # 0: down to label9
285 # BB#16: # %for.body75.lr.ph
286 i32.const $push159=, -1
287 i32.add $4=, $2, $pop159
288 i32.const $push158=, 4
289 i32.add $7=, $1, $pop158
290 i32.load $8=, 0($1)
291 .LBB0_17: # %for.body75
292 # =>This Loop Header: Depth=1
293 # Child Loop BB0_19 Depth 2
294 loop # label10:
295 i32.const $push163=, 2
296 i32.shl $push162=, $10, $pop163
297 tee_local $push161=, $11=, $pop162
298 i32.add $push79=, $8, $pop161
299 f32.load $25=, 0($pop79)
300 block
301 i32.const $push160=, 2
302 i32.lt_s $push78=, $2, $pop160
303 br_if 0, $pop78 # 0: down to label11
304 # BB#18: # %for.body81.preheader
305 # in Loop: Header=BB0_17 Depth=1
306 copy_local $12=, $4
307 copy_local $9=, $7
308 .LBB0_19: # %for.body81
309 # Parent Loop BB0_17 Depth=1
310 # => This Inner Loop Header: Depth=2
311 loop # label12:
312 i32.load $push80=, 0($9)
313 i32.add $push81=, $pop80, $11
314 f32.load $push82=, 0($pop81)
315 f32.add $25=, $25, $pop82
316 i32.const $push167=, 4
317 i32.add $push2=, $9, $pop167
318 copy_local $9=, $pop2
319 i32.const $push166=, -1
320 i32.add $push165=, $12, $pop166
321 tee_local $push164=, $12=, $pop165
322 br_if 0, $pop164 # 0: up to label12
323 .LBB0_20: # %for.end87
324 # in Loop: Header=BB0_17 Depth=1
325 end_loop
326 end_block # label11:
327 i32.add $push83=, $0, $11
328 f32.store 0($pop83), $25
329 i32.const $push170=, 1
330 i32.add $push169=, $10, $pop170
331 tee_local $push168=, $10=, $pop169
332 i32.ne $push84=, $pop168, $3
333 br_if 0, $pop84 # 0: up to label10
334 .LBB0_21: # %for.end91
335 end_loop
336 end_block # label9:
337 # fallthrough-return
338 .endfunc
339 .Lfunc_end0:
340 .size foo, .Lfunc_end0-foo
341 # -- End function
342 .section .text.main,"ax",@progbits
343 .hidden main # -- Begin function main
344 .globl main
345 .type main,@function
346 main: # @main
347 .result i32
348 .local f32, i32, i32, i32
349 # BB#0: # %entry
350 i32.const $push31=, 0
351 i32.const $push29=, 0
352 i32.load $push28=, __stack_pointer($pop29)
353 i32.const $push30=, 16
354 i32.sub $push43=, $pop28, $pop30
355 tee_local $push42=, $3=, $pop43
356 i32.store __stack_pointer($pop31), $pop42
357 i32.const $2=, 0
358 i32.const $push41=, 0
359 i32.const $push0=, buffer
360 i32.sub $push1=, $pop41, $pop0
361 i32.const $push2=, 63
362 i32.and $push40=, $pop1, $pop2
363 tee_local $push39=, $1=, $pop40
364 i32.const $push3=, buffer+128
365 i32.add $push4=, $pop39, $pop3
366 i32.store 12($3), $pop4
367 i32.const $push5=, buffer+64
368 i32.add $push38=, $1, $pop5
369 tee_local $push37=, $1=, $pop38
370 i32.store 8($3), $pop37
371 .LBB1_1: # %for.body
372 # =>This Inner Loop Header: Depth=1
373 loop # label13:
374 i32.const $push53=, 64
375 i32.add $push6=, $1, $pop53
376 f32.convert_s/i32 $push52=, $2
377 tee_local $push51=, $0=, $pop52
378 f32.const $push50=, 0x1.8p3
379 f32.mul $push7=, $pop51, $pop50
380 f32.add $push8=, $pop7, $0
381 f32.store 0($pop6), $pop8
382 f32.const $push49=, 0x1.6p3
383 f32.mul $push9=, $0, $pop49
384 f32.add $push10=, $pop9, $0
385 f32.store 0($1), $pop10
386 i32.const $push48=, 4
387 i32.add $1=, $1, $pop48
388 i32.const $push47=, 1
389 i32.add $push46=, $2, $pop47
390 tee_local $push45=, $2=, $pop46
391 i32.const $push44=, 16
392 i32.ne $push11=, $pop45, $pop44
393 br_if 0, $pop11 # 0: up to label13
394 # BB#2: # %for.end
395 end_loop
396 i32.const $push13=, 0
397 i32.const $push12=, buffer
398 i32.sub $push14=, $pop13, $pop12
399 i32.const $push15=, 63
400 i32.and $push16=, $pop14, $pop15
401 i32.const $push56=, buffer
402 i32.add $push55=, $pop16, $pop56
403 tee_local $push54=, $1=, $pop55
404 i32.const $push35=, 8
405 i32.add $push36=, $3, $pop35
406 i32.const $push18=, 2
407 i32.const $push17=, 16
408 call foo@FUNCTION, $pop54, $pop36, $pop18, $pop17
409 i32.const $2=, -1
410 .LBB1_3: # %for.body16
411 # =>This Inner Loop Header: Depth=1
412 block
413 loop # label15:
414 f32.load $push24=, 0($1)
415 i32.const $push63=, 1
416 i32.add $push62=, $2, $pop63
417 tee_local $push61=, $2=, $pop62
418 f32.convert_s/i32 $push60=, $pop61
419 tee_local $push59=, $0=, $pop60
420 f32.const $push58=, 0x1.8p3
421 f32.mul $push22=, $pop59, $pop58
422 f32.const $push57=, 0x1.6p3
423 f32.mul $push19=, $0, $pop57
424 f32.add $push20=, $pop19, $0
425 f32.add $push21=, $pop20, $0
426 f32.add $push23=, $pop22, $pop21
427 f32.ne $push25=, $pop24, $pop23
428 br_if 1, $pop25 # 1: down to label14
429 # BB#4: # %for.cond13
430 # in Loop: Header=BB1_3 Depth=1
431 i32.const $push65=, 4
432 i32.add $1=, $1, $pop65
433 i32.const $push64=, 14
434 i32.le_u $push26=, $2, $pop64
435 br_if 0, $pop26 # 0: up to label15
436 # BB#5: # %for.end31
437 end_loop
438 i32.const $push34=, 0
439 i32.const $push32=, 16
440 i32.add $push33=, $3, $pop32
441 i32.store __stack_pointer($pop34), $pop33
442 i32.const $push27=, 0
443 return $pop27
444 .LBB1_6: # %if.then
445 end_block # label14:
446 call abort@FUNCTION
447 unreachable
448 .endfunc
449 .Lfunc_end1:
450 .size main, .Lfunc_end1-main
451 # -- End function
452 .hidden buffer # @buffer
453 .type buffer,@object
454 .section .bss.buffer,"aw",@nobits
455 .globl buffer
456 .p2align 4
457 buffer:
458 .skip 256
459 .size buffer, 256
460
461
462 .ident "clang version 6.0.0 (https://llvm.googlesource.com/clang.git a1774cccdccfa673c057f93ccf23bc2d8cb04932) (https://llvm.googlesource.com/llvm.git fc50e1c6121255333bc42d6faf2b524c074eae25)"
463 .functype abort, void