forked from WebAssembly/binaryen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pr15296.c.s
202 lines (196 loc) · 6.03 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
.text
.file "/b/build/slave/linux/build/src/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 $push2=, $3, $4
br_if 0, $pop2 # 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 # label2:
end_block # label0:
i32.const $4=, 0
block
block
block
block
block
i32.eqz $push14=, $3
br_if 0, $pop14 # 0: down to label7
# BB#3: # %if.end3
copy_local $4=, $5
i32.eqz $push15=, $5
br_if 1, $pop15 # 1: down to label6
.LBB0_4: # %l3
end_block # label7:
i32.const $push8=, 4
i32.add $push9=, $1, $pop8
i32.store $3=, 0($pop9), $4
i32.const $push10=, 8
i32.add $push11=, $1, $pop10
i32.load $push13=, 0($pop11)
tee_local $push12=, $1=, $pop13
br_if 1, $pop12 # 1: down to label5
# BB#5: # %if.end19
i32.eqz $push16=, $3
br_if 2, $pop16 # 2: down to label4
# BB#6: # %if.end24
i32.store $drop=, 8($3), $1
return
.LBB0_7: # %if.end6
end_block # label6:
i32.const $push3=, 4
i32.add $push4=, $1, $pop3
i32.load $push1=, 0($1)
i32.load $push5=, 0($pop1)
i32.store $push0=, 0($pop4), $pop5
br_if 2, $pop0 # 2: down to label3
# BB#8: # %if.end12
i32.const $push7=, 0
i32.const $push6=, -1
i32.store $drop=, 12($pop7), $pop6
return
.LBB0_9: # %if.then18
end_block # label5:
call g@FUNCTION, $3, $3
unreachable
.LBB0_10: # %if.then23
end_block # label4:
call g@FUNCTION, $3, $3
unreachable
.LBB0_11: # %if.then11
end_block # label3:
call g@FUNCTION, $3, $3
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 $push34=, 0
i32.const $push31=, 0
i32.load $push32=, __stack_pointer($pop31)
i32.const $push33=, 48
i32.sub $push41=, $pop32, $pop33
i32.store $push50=, __stack_pointer($pop34), $pop41
tee_local $push49=, $0=, $pop50
i32.const $push0=, 0
i64.load $push1=, .Lmain.uv+8($pop0)
i64.store $drop=, 40($pop49), $pop1
i32.const $push48=, 0
i64.load $push2=, .Lmain.uv($pop48)
i64.store $drop=, 32($0), $pop2
i32.const $push3=, 24
i32.add $push4=, $0, $pop3
i32.const $push47=, 0
i32.load $push5=, .Lmain.s+16($pop47)
i32.store $drop=, 0($pop4), $pop5
i32.const $push6=, 16
i32.add $push46=, $0, $pop6
tee_local $push45=, $1=, $pop46
i32.const $push44=, 0
i64.load $push7=, .Lmain.s+8($pop44):p2align=2
i64.store $drop=, 0($pop45), $pop7
i32.const $push43=, 0
i64.load $push8=, .Lmain.s($pop43):p2align=2
i64.store $drop=, 8($0), $pop8
i32.const $push42=, 0
i32.const $push35=, 8
i32.add $push36=, $0, $pop35
i32.const $push10=, 20000
i32.const $push9=, 10000
i32.const $push37=, 32
i32.add $push38=, $0, $pop37
call f@FUNCTION, $pop42, $pop36, $0, $pop10, $pop9, $pop38
block
i32.load $push11=, 12($0)
i32.const $push39=, 32
i32.add $push40=, $0, $pop39
i32.ne $push12=, $pop11, $pop40
br_if 0, $pop12 # 0: down to label8
# BB#1: # %lor.lhs.false
i32.load $push13=, 0($1)
br_if 0, $pop13 # 0: down to label8
# BB#2: # %lor.lhs.false6
i32.const $push14=, 20
i32.add $push15=, $0, $pop14
i32.load $push16=, 0($pop15)
i32.const $push17=, 999
i32.ne $push18=, $pop16, $pop17
br_if 0, $pop18 # 0: down to label8
# BB#3: # %lor.lhs.false11
i32.const $push19=, 24
i32.add $push20=, $0, $pop19
i32.load $push21=, 0($pop20)
i32.const $push22=, 777
i32.ne $push23=, $pop21, $pop22
br_if 0, $pop23 # 0: down to label8
# BB#4: # %lor.lhs.false16
i64.load $push25=, 32($0)
i64.const $push24=, 953482739823
i64.ne $push26=, $pop25, $pop24
br_if 0, $pop26 # 0: down to label8
# BB#5: # %lor.lhs.false24
i64.load $push28=, 40($0)
i64.const $push27=, 1906965479424
i64.ne $push29=, $pop28, $pop27
br_if 0, $pop29 # 0: down to label8
# BB#6: # %if.end
i32.const $push30=, 0
call exit@FUNCTION, $pop30
unreachable
.LBB2_7: # %if.then
end_block # label8:
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 3.9.0 "
.functype abort, void
.functype exit, void, i32