forked from WebAssembly/binaryen
/
pr15296.c.s
212 lines (206 loc) · 6.26 KB
/
pr15296.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
.text
.file "/usr/local/google/home/jgravelle/code/wasm/waterfall/src/work/gcc/gcc/testsuite/gcc.c-torture/execute/pr15296.c"
.section .text.f,"ax",@progbits
.hidden f
.globl f
.type f,@function
f: # @f
.param i32, i32, i32, i32, i32, i32
# BB#0: # %entry
block
i32.ge_s $push1=, $3, $4
br_if 0, $pop1 # 0: down to label0
.LBB0_1: # %l0
# =>This Inner Loop Header: Depth=1
loop # label1:
br 0 # 0: up to label1
.LBB0_2: # %if.end.split
end_loop
end_block # label0:
block
block
block
i32.eqz $push16=, $3
br_if 0, $pop16 # 0: down to label4
# BB#3: # %if.end3
br_if 1, $5 # 1: down to label3
# BB#4: # %if.end6
i32.const $push2=, 4
i32.add $push3=, $1, $pop2
i32.load $push0=, 0($1)
i32.load $push13=, 0($pop0)
tee_local $push12=, $5=, $pop13
i32.store 0($pop3), $pop12
br_if 2, $5 # 2: down to label2
# BB#5:
i32.const $push10=, 12
i32.const $push11=, -1
i32.store 0($pop10), $pop11
return
.LBB0_6:
end_block # label4:
i32.const $5=, 0
.LBB0_7: # %l3
end_block # label3:
i32.const $push4=, 4
i32.add $push5=, $1, $pop4
i32.store 0($pop5), $5
block
block
i32.const $push6=, 8
i32.add $push7=, $1, $pop6
i32.load $push15=, 0($pop7)
tee_local $push14=, $3=, $pop15
br_if 0, $pop14 # 0: down to label6
# BB#8: # %if.end19
i32.eqz $push17=, $5
br_if 1, $pop17 # 1: down to label5
# BB#9: # %if.end24
i32.const $push8=, 8
i32.add $push9=, $5, $pop8
i32.store 0($pop9), $3
return
.LBB0_10: # %if.then18
end_block # label6:
call g@FUNCTION, $5, $5
unreachable
.LBB0_11: # %if.then23
end_block # label5:
call g@FUNCTION, $5, $5
unreachable
.LBB0_12: # %if.then11
end_block # label2:
call g@FUNCTION, $5, $5
unreachable
.endfunc
.Lfunc_end0:
.size f, .Lfunc_end0-f
.section .text.g,"ax",@progbits
.hidden g
.globl g
.type g,@function
g: # @g
.param i32, i32
# BB#0: # %entry
call abort@FUNCTION
unreachable
.endfunc
.Lfunc_end1:
.size g, .Lfunc_end1-g
.section .text.main,"ax",@progbits
.hidden main
.globl main
.type main,@function
main: # @main
.result i32
.local i32, i32
# BB#0: # %entry
i32.const $push38=, 0
i32.const $push35=, 0
i32.load $push36=, __stack_pointer($pop35)
i32.const $push37=, 48
i32.sub $push53=, $pop36, $pop37
tee_local $push52=, $1=, $pop53
i32.store __stack_pointer($pop38), $pop52
i32.const $push0=, 0
i64.load $push1=, .Lmain.uv+8($pop0)
i64.store 40($1), $pop1
i32.const $push51=, 0
i64.load $push2=, .Lmain.uv($pop51)
i64.store 32($1), $pop2
i32.const $push3=, 24
i32.add $push4=, $1, $pop3
i32.const $push50=, 0
i32.load $push5=, .Lmain.s+16($pop50)
i32.store 0($pop4), $pop5
i32.const $push6=, 16
i32.add $push49=, $1, $pop6
tee_local $push48=, $0=, $pop49
i32.const $push47=, 0
i64.load $push7=, .Lmain.s+8($pop47):p2align=2
i64.store 0($pop48), $pop7
i32.const $push46=, 0
i64.load $push8=, .Lmain.s($pop46):p2align=2
i64.store 8($1), $pop8
i32.const $push45=, 0
i32.const $push39=, 8
i32.add $push40=, $1, $pop39
i32.const $push10=, 20000
i32.const $push9=, 10000
i32.const $push41=, 32
i32.add $push42=, $1, $pop41
call f@FUNCTION, $pop45, $pop40, $1, $pop10, $pop9, $pop42
block
i32.load $push11=, 12($1)
i32.const $push43=, 32
i32.add $push44=, $1, $pop43
i32.ne $push12=, $pop11, $pop44
br_if 0, $pop12 # 0: down to label7
# BB#1: # %lor.lhs.false
i32.load $push13=, 0($0)
br_if 0, $pop13 # 0: down to label7
# BB#2: # %lor.lhs.false6
i32.const $push14=, 20
i32.add $push15=, $1, $pop14
i32.load $push16=, 0($pop15)
i32.const $push17=, 999
i32.ne $push18=, $pop16, $pop17
br_if 0, $pop18 # 0: down to label7
# BB#3: # %lor.lhs.false11
i32.const $push19=, 24
i32.add $push20=, $1, $pop19
i32.load $push21=, 0($pop20)
i32.const $push22=, 777
i32.ne $push23=, $pop21, $pop22
br_if 0, $pop23 # 0: down to label7
# BB#4: # %lor.lhs.false16
i32.load $push25=, 32($1)
i32.const $push24=, 111
i32.ne $push26=, $pop25, $pop24
br_if 0, $pop26 # 0: down to label7
# BB#5: # %lor.lhs.false20
i32.load $push28=, 36($1)
i32.const $push27=, 222
i32.ne $push29=, $pop28, $pop27
br_if 0, $pop29 # 0: down to label7
# BB#6: # %lor.lhs.false24
i32.load $push30=, 40($1)
br_if 0, $pop30 # 0: down to label7
# BB#7: # %lor.lhs.false28
i32.load $push32=, 44($1)
i32.const $push31=, 444
i32.ne $push33=, $pop32, $pop31
br_if 0, $pop33 # 0: down to label7
# BB#8: # %if.end
i32.const $push34=, 0
call exit@FUNCTION, $pop34
unreachable
.LBB2_9: # %if.then
end_block # label7:
call abort@FUNCTION
unreachable
.endfunc
.Lfunc_end2:
.size main, .Lfunc_end2-main
.type .Lmain.uv,@object # @main.uv
.section .rodata.cst16,"aM",@progbits,16
.p2align 4
.Lmain.uv:
.int32 111 # 0x6f
.int32 222 # 0xde
.int32 333 # 0x14d
.int32 444 # 0x1bc
.size .Lmain.uv, 16
.type .Lmain.s,@object # @main.s
.section .rodata..Lmain.s,"a",@progbits
.p2align 2
.Lmain.s:
.int32 0
.int32 555 # 0x22b
.skip 4
.int32 999 # 0x3e7
.int32 777 # 0x309
.size .Lmain.s, 20
.ident "clang version 4.0.0 "
.functype abort, void
.functype exit, void, i32