forked from WebAssembly/binaryen
/
20090113-2.c.s
437 lines (428 loc) · 14.5 KB
/
20090113-2.c.s
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
.text
.file "/usr/local/google/home/jgravelle/code/wasm/waterfall/src/work/gcc/gcc/testsuite/gcc.c-torture/execute/20090113-2.c"
.section .text.main,"ax",@progbits
.hidden main
.globl main
.type main,@function
main: # @main
.result i32
.local i32
# BB#0: # %entry
i32.const $push11=, 0
i32.const $push8=, 0
i32.load $push9=, __stack_pointer($pop8)
i32.const $push10=, 48
i32.sub $push27=, $pop9, $pop10
tee_local $push26=, $0=, $pop27
i32.store __stack_pointer($pop11), $pop26
i32.const $push2=, 40
i32.add $push3=, $0, $pop2
i32.const $push0=, 0
i32.load $push1=, .Lmain.elem+16($pop0)
i32.store 0($pop3), $pop1
i32.const $push5=, 32
i32.add $push6=, $0, $pop5
i32.const $push25=, 0
i64.load $push4=, .Lmain.elem+8($pop25):p2align=2
i64.store 0($pop6), $pop4
i32.const $push24=, 0
i64.load $push7=, .Lmain.elem($pop24):p2align=2
i64.store 24($0), $pop7
i32.const $push23=, 0
i32.store 16($0), $pop23
i32.const $push22=, 0
i32.store 20($0), $pop22
i32.const $push15=, 24
i32.add $push16=, $0, $pop15
i32.store 12($0), $pop16
i32.const $push17=, 24
i32.add $push18=, $0, $pop17
i32.store 8($0), $pop18
i32.const $push19=, 8
i32.add $push20=, $0, $pop19
call foobar@FUNCTION, $pop20
i32.const $push14=, 0
i32.const $push12=, 48
i32.add $push13=, $0, $pop12
i32.store __stack_pointer($pop14), $pop13
i32.const $push21=, 0
# fallthrough-return: $pop21
.endfunc
.Lfunc_end0:
.size main, .Lfunc_end0-main
.section .text.foobar,"ax",@progbits
.type foobar,@function
foobar: # @foobar
.param i32
.local i32, i32, i32, i32, i32, i32, i32, i32
# BB#0: # %entry
i32.const $push14=, 0
i32.const $push11=, 0
i32.load $push12=, __stack_pointer($pop11)
i32.const $push13=, 32
i32.sub $push34=, $pop12, $pop13
tee_local $push33=, $7=, $pop34
i32.store __stack_pointer($pop14), $pop33
i32.const $push18=, 16
i32.add $push19=, $7, $pop18
i32.const $push20=, 12
i32.add $push21=, $7, $pop20
call bmp_iter_set_init@FUNCTION, $pop19, $0, $pop21
i32.const $push22=, 16
i32.add $push23=, $7, $pop22
i32.const $push32=, 12
i32.add $2=, $pop23, $pop32
i32.const $push2=, 24
i32.add $3=, $7, $pop2
.LBB1_1: # %for.cond
# =>This Loop Header: Depth=1
# Child Loop BB1_3 Depth 2
# Child Loop BB1_9 Depth 2
loop # label0:
i32.load $0=, 12($7)
block
block
block
i32.load $push36=, 0($2)
tee_local $push35=, $5=, $pop36
i32.eqz $push72=, $pop35
br_if 0, $pop72 # 0: down to label3
# BB#2: # %while.cond.preheader.i
# in Loop: Header=BB1_1 Depth=1
block
i32.const $push37=, 1
i32.and $push0=, $5, $pop37
br_if 0, $pop0 # 0: down to label4
.LBB1_3: # %while.body.i
# Parent Loop BB1_1 Depth=1
# => This Inner Loop Header: Depth=2
loop # label5:
i32.const $push42=, 1
i32.add $0=, $0, $pop42
i32.const $push41=, 1
i32.shr_u $push40=, $5, $pop41
tee_local $push39=, $5=, $pop40
i32.const $push38=, 1
i32.and $push1=, $pop39, $pop38
i32.eqz $push73=, $pop1
br_if 0, $pop73 # 0: up to label5
.LBB1_4: # %while.end.i
# in Loop: Header=BB1_1 Depth=1
end_loop
end_block # label4:
i32.store 12($7), $0
br 1 # 1: down to label2
.LBB1_5: # %if.end.i
# in Loop: Header=BB1_1 Depth=1
end_block # label3:
i32.load $push3=, 0($3)
i32.const $push50=, 1
i32.add $push49=, $pop3, $pop50
tee_local $push48=, $1=, $pop49
i32.store 0($3), $pop48
i32.const $push47=, 63
i32.add $push4=, $0, $pop47
i32.const $push46=, -64
i32.and $push45=, $pop4, $pop46
tee_local $push44=, $0=, $pop45
i32.store 12($7), $pop44
i32.load $4=, 16($7)
block
i32.const $push43=, 2
i32.ne $push5=, $1, $pop43
br_if 0, $pop5 # 0: down to label6
# BB#6: # in Loop: Header=BB1_1 Depth=1
i32.const $8=, 1
br 2 # 2: down to label1
.LBB1_7: # in Loop: Header=BB1_1 Depth=1
end_block # label6:
i32.const $8=, 3
br 1 # 1: down to label1
.LBB1_8: # in Loop: Header=BB1_1 Depth=1
end_block # label2:
i32.const $8=, 6
.LBB1_9: # Parent Loop BB1_1 Depth=1
# => This Inner Loop Header: Depth=2
end_block # label1:
block
loop # label8:
block
block
block
block
block
block
block
block
block
block
block
block
block
br_table $8, 4, 5, 0, 1, 2, 6, 14, 3, 3 # 4: down to label17
# 5: down to label16
# 0: down to label21
# 1: down to label20
# 2: down to label19
# 6: down to label15
# 14: down to label7
# 3: down to label18
.LBB1_10: # %if.end25.i
# in Loop: Header=BB1_9 Depth=2
end_block # label21:
i32.const $1=, 0
i32.const $push56=, 0
i32.store 0($3), $pop56
i32.load $push10=, 8($4)
i32.const $push55=, 7
i32.shl $push54=, $pop10, $pop55
tee_local $push53=, $0=, $pop54
i32.store 12($7), $pop53
i32.const $push52=, 0
i32.const $push51=, 2
i32.eq $push6=, $pop52, $pop51
br_if 8, $pop6 # 8: down to label12
# BB#11: # in Loop: Header=BB1_9 Depth=2
i32.const $8=, 3
br 12 # 12: up to label8
.LBB1_12: # %while.body9.i.preheader
# in Loop: Header=BB1_9 Depth=2
end_block # label20:
i32.const $push60=, 1
i32.add $5=, $1, $pop60
i32.const $push59=, 64
i32.add $6=, $0, $pop59
i32.const $push58=, 2
i32.shl $push7=, $1, $pop58
i32.add $push8=, $4, $pop7
i32.const $push57=, 12
i32.add $0=, $pop8, $pop57
# BB#13: # in Loop: Header=BB1_9 Depth=2
i32.const $8=, 4
br 11 # 11: up to label8
.LBB1_14: # %while.body9.i
# in Loop: Header=BB1_9 Depth=2
end_block # label19:
i32.load $push62=, 0($0)
tee_local $push61=, $1=, $pop62
br_if 8, $pop61 # 8: down to label10
# BB#15: # in Loop: Header=BB1_9 Depth=2
i32.const $8=, 7
br 10 # 10: up to label8
.LBB1_16: # %if.end17.i
# in Loop: Header=BB1_9 Depth=2
end_block # label18:
i32.store 0($3), $5
i32.const $push68=, 4
i32.add $0=, $0, $pop68
i32.store 12($7), $6
i32.const $push67=, 64
i32.add $6=, $6, $pop67
i32.const $push66=, 1
i32.add $push65=, $5, $pop66
tee_local $push64=, $5=, $pop65
i32.const $push63=, 3
i32.ne $push9=, $pop64, $pop63
br_if 4, $pop9 # 4: down to label13
# BB#17: # in Loop: Header=BB1_9 Depth=2
i32.const $8=, 0
br 9 # 9: up to label8
.LBB1_18: # %while.end21.i.loopexit
# in Loop: Header=BB1_9 Depth=2
end_block # label17:
i32.const $push69=, 0
i32.store 0($2), $pop69
# BB#19: # in Loop: Header=BB1_9 Depth=2
i32.const $8=, 1
br 8 # 8: up to label8
.LBB1_20: # %while.end21.i
# in Loop: Header=BB1_9 Depth=2
end_block # label16:
i32.load $push71=, 0($4)
tee_local $push70=, $4=, $pop71
br_if 4, $pop70 # 4: down to label11
br 1 # 1: down to label14
.LBB1_21: # %if.then15.i
# in Loop: Header=BB1_9 Depth=2
end_block # label15:
i32.store 0($2), $1
i32.store 16($7), $4
i32.const $push24=, 16
i32.add $push25=, $7, $pop24
i32.const $push26=, 12
i32.add $push27=, $7, $pop26
call bmp_iter_set_tail@FUNCTION, $pop25, $pop27
i32.load $0=, 12($7)
br 5 # 5: down to label9
.LBB1_22: # %for.end
end_block # label14:
i32.const $push17=, 0
i32.const $push15=, 32
i32.add $push16=, $7, $pop15
i32.store __stack_pointer($pop17), $pop16
return
.LBB1_23: # in Loop: Header=BB1_9 Depth=2
end_block # label13:
i32.const $8=, 4
br 4 # 4: up to label8
.LBB1_24: # in Loop: Header=BB1_9 Depth=2
end_block # label12:
i32.const $8=, 1
br 3 # 3: up to label8
.LBB1_25: # in Loop: Header=BB1_9 Depth=2
end_block # label11:
i32.const $8=, 2
br 2 # 2: up to label8
.LBB1_26: # in Loop: Header=BB1_9 Depth=2
end_block # label10:
i32.const $8=, 5
br 1 # 1: up to label8
.LBB1_27: # in Loop: Header=BB1_9 Depth=2
end_block # label9:
i32.const $8=, 6
br 0 # 0: up to label8
.LBB1_28: # %for.body
# in Loop: Header=BB1_1 Depth=1
end_loop
end_block # label7:
call catchme@FUNCTION, $0
i32.const $push28=, 16
i32.add $push29=, $7, $pop28
i32.const $push30=, 12
i32.add $push31=, $7, $pop30
call bmp_iter_next@FUNCTION, $pop29, $pop31
br 0 # 0: up to label0
.LBB1_29:
end_loop
.endfunc
.Lfunc_end1:
.size foobar, .Lfunc_end1-foobar
.section .text.bmp_iter_set_init,"ax",@progbits
.type bmp_iter_set_init,@function
bmp_iter_set_init: # @bmp_iter_set_init
.param i32, i32, i32
.local i32
# BB#0: # %entry
i32.const $push7=, 0
i32.store 4($0), $pop7
i32.load $push6=, 0($1)
tee_local $push5=, $1=, $pop6
i32.store 0($0), $pop5
block
br_if 0, $1 # 0: down to label22
# BB#1: # %if.then
i32.const $1=, bitmap_zero_bits
i32.const $push8=, bitmap_zero_bits
i32.store 0($0), $pop8
.LBB2_2: # %while.end
end_block # label22:
i32.const $push11=, 0
i32.store 8($0), $pop11
i32.load $push10=, 12($1)
tee_local $push9=, $3=, $pop10
i32.store 12($0), $pop9
i32.eqz $push3=, $3
i32.load $push0=, 8($1)
i32.const $push1=, 7
i32.shl $push2=, $pop0, $pop1
i32.or $push4=, $pop3, $pop2
i32.store 0($2), $pop4
# fallthrough-return
.endfunc
.Lfunc_end2:
.size bmp_iter_set_init, .Lfunc_end2-bmp_iter_set_init
.section .text.catchme,"ax",@progbits
.type catchme,@function
catchme: # @catchme
.param i32
# BB#0: # %entry
block
i32.const $push0=, 64
i32.or $push1=, $0, $pop0
i32.const $push3=, 64
i32.ne $push2=, $pop1, $pop3
br_if 0, $pop2 # 0: down to label23
# BB#1: # %if.end
return
.LBB3_2: # %if.then
end_block # label23:
call abort@FUNCTION
unreachable
.endfunc
.Lfunc_end3:
.size catchme, .Lfunc_end3-catchme
.section .text.bmp_iter_next,"ax",@progbits
.type bmp_iter_next,@function
bmp_iter_next: # @bmp_iter_next
.param i32, i32
# BB#0: # %entry
i32.load $push0=, 12($0)
i32.const $push1=, 1
i32.shr_u $push2=, $pop0, $pop1
i32.store 12($0), $pop2
i32.load $push3=, 0($1)
i32.const $push5=, 1
i32.add $push4=, $pop3, $pop5
i32.store 0($1), $pop4
# fallthrough-return
.endfunc
.Lfunc_end4:
.size bmp_iter_next, .Lfunc_end4-bmp_iter_next
.section .text.bmp_iter_set_tail,"ax",@progbits
.type bmp_iter_set_tail,@function
bmp_iter_set_tail: # @bmp_iter_set_tail
.param i32, i32
.local i32, i32
# BB#0: # %entry
block
i32.load $push6=, 12($0)
tee_local $push5=, $3=, $pop6
i32.const $push4=, 1
i32.and $push0=, $pop5, $pop4
br_if 0, $pop0 # 0: down to label24
# BB#1: # %while.body.lr.ph
i32.load $2=, 0($1)
.LBB5_2: # %while.body
# =>This Inner Loop Header: Depth=1
loop # label25:
i32.const $push11=, 1
i32.add $2=, $2, $pop11
i32.const $push10=, 1
i32.shr_u $push9=, $3, $pop10
tee_local $push8=, $3=, $pop9
i32.const $push7=, 1
i32.and $push1=, $pop8, $pop7
i32.eqz $push12=, $pop1
br_if 0, $pop12 # 0: up to label25
# BB#3: # %while.cond.while.end_crit_edge
end_loop
i32.store 0($1), $2
i32.const $push2=, 12
i32.add $push3=, $0, $pop2
i32.store 0($pop3), $3
.LBB5_4: # %while.end
end_block # label24:
# fallthrough-return
.endfunc
.Lfunc_end5:
.size bmp_iter_set_tail, .Lfunc_end5-bmp_iter_set_tail
.type .Lmain.elem,@object # @main.elem
.section .rodata..Lmain.elem,"a",@progbits
.p2align 2
.Lmain.elem:
.int32 0
.int32 0
.int32 0 # 0x0
.int32 1 # 0x1
.int32 1 # 0x1
.size .Lmain.elem, 20
.hidden bitmap_zero_bits # @bitmap_zero_bits
.type bitmap_zero_bits,@object
.section .bss.bitmap_zero_bits,"aw",@nobits
.globl bitmap_zero_bits
.p2align 2
bitmap_zero_bits:
.skip 20
.size bitmap_zero_bits, 20
.ident "clang version 4.0.0 "
.functype abort, void