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
|
.text
.file "/b/build/slave/linux/build/src/src/work/gcc/gcc/testsuite/gcc.c-torture/execute/memcpy-1.c"
.section .text.copy,"ax",@progbits
.hidden copy
.globl copy
.type copy,@function
copy: # @copy
.param i32, i32, i32
.result i32
# BB#0: # %entry
i32.call $push0=, memcpy@FUNCTION, $0, $1, $2
return $pop0
.endfunc
.Lfunc_end0:
.size copy, .Lfunc_end0-copy
.section .text.main,"ax",@progbits
.hidden main
.globl main
.type main,@function
main: # @main
.result i32
.local i32, i32, i32, i32, i32, i32, i32, i32, i32, i32
# BB#0: # %entry
i32.const $2=, __stack_pointer
i32.load $2=, 0($2)
i32.const $3=, 262144
i32.sub $9=, $2, $3
i32.const $3=, __stack_pointer
i32.store $9=, 0($3), $9
i32.const $1=, 0
i32.const $push37=, 0
i32.const $push36=, 131072
i32.call $discard=, memset@FUNCTION, $9, $pop37, $pop36
.LBB1_1: # %for.body
# =>This Inner Loop Header: Depth=1
loop # label0:
i32.const $4=, 131072
i32.add $4=, $9, $4
i32.add $push0=, $4, $1
i32.store8 $push1=, 0($pop0), $1
i32.const $push39=, 1
i32.add $1=, $pop1, $pop39
i32.const $push38=, 131072
i32.ne $push2=, $1, $pop38
br_if 0, $pop2 # 0: up to label0
# BB#2: # %for.end
end_loop # label1:
i32.const $push3=, 1024
i32.const $5=, 131072
i32.add $5=, $9, $5
i32.call $discard=, memcpy@FUNCTION, $9, $5, $pop3
i32.const $1=, 0
.LBB1_3: # %for.body6
# =>This Inner Loop Header: Depth=1
block
block
block
loop # label5:
i32.add $push4=, $9, $1
i32.load8_u $push5=, 0($pop4)
i32.const $push42=, 255
i32.and $push6=, $1, $pop42
i32.ne $push7=, $pop5, $pop6
br_if 2, $pop7 # 2: down to label4
# BB#4: # %for.cond3
# in Loop: Header=BB1_3 Depth=1
i32.const $push41=, 1
i32.add $1=, $1, $pop41
i32.const $push40=, 1023
i32.le_u $push8=, $1, $pop40
br_if 0, $pop8 # 0: up to label5
# BB#5: # %for.end15
end_loop # label6:
i32.const $push43=, 1
i32.const $push9=, 1024
i32.call $discard=, memset@FUNCTION, $9, $pop43, $pop9
i32.const $1=, 1
.LBB1_6: # %for.cond17
# =>This Inner Loop Header: Depth=1
block
loop # label8:
i32.const $push44=, 1023
i32.gt_u $push10=, $1, $pop44
br_if 2, $pop10 # 2: down to label7
# BB#7: # %for.cond17.for.body20_crit_edge
# in Loop: Header=BB1_6 Depth=1
i32.add $0=, $9, $1
i32.const $push46=, 1
i32.add $1=, $1, $pop46
i32.load8_u $push34=, 0($0)
i32.const $push45=, 1
i32.eq $push35=, $pop34, $pop45
br_if 0, $pop35 # 0: up to label8
# BB#8: # %if.then25
end_loop # label9:
call abort@FUNCTION
unreachable
.LBB1_9: # %for.end29
end_block # label7:
i32.const $push11=, 131072
i32.const $6=, 131072
i32.add $6=, $9, $6
i32.call $discard=, memcpy@FUNCTION, $9, $6, $pop11
i32.const $1=, 0
.LBB1_10: # %for.body35
# =>This Inner Loop Header: Depth=1
loop # label10:
i32.add $push12=, $9, $1
i32.load8_u $push13=, 0($pop12)
i32.const $push49=, 255
i32.and $push14=, $1, $pop49
i32.ne $push15=, $pop13, $pop14
br_if 3, $pop15 # 3: down to label3
# BB#11: # %for.cond32
# in Loop: Header=BB1_10 Depth=1
i32.const $push48=, 1
i32.add $1=, $1, $pop48
i32.const $push47=, 131071
i32.le_u $push16=, $1, $pop47
br_if 0, $pop16 # 0: up to label10
# BB#12: # %for.end46
end_loop # label11:
i32.const $push18=, 0
i32.const $push17=, 131072
i32.call $discard=, memset@FUNCTION, $9, $pop18, $pop17
i32.const $1=, 1
.LBB1_13: # %for.cond48
# =>This Inner Loop Header: Depth=1
block
loop # label13:
i32.const $push50=, 131071
i32.gt_u $push19=, $1, $pop50
br_if 2, $pop19 # 2: down to label12
# BB#14: # %for.cond48.for.body51_crit_edge
# in Loop: Header=BB1_13 Depth=1
i32.add $0=, $9, $1
i32.const $push51=, 1
i32.add $1=, $1, $pop51
i32.load8_u $push33=, 0($0)
i32.const $push58=, 0
i32.eq $push59=, $pop33, $pop58
br_if 0, $pop59 # 0: up to label13
# BB#15: # %if.then56
end_loop # label14:
call abort@FUNCTION
unreachable
.LBB1_16: # %for.end60
end_block # label12:
i32.const $push20=, 1024
i32.const $7=, 131072
i32.add $7=, $9, $7
i32.call $discard=, memcpy@FUNCTION, $9, $7, $pop20
i32.const $1=, 0
.LBB1_17: # %for.body66
# =>This Inner Loop Header: Depth=1
loop # label15:
i32.add $push21=, $9, $1
i32.load8_u $push22=, 0($pop21)
i32.const $push54=, 255
i32.and $push23=, $1, $pop54
i32.ne $push24=, $pop22, $pop23
br_if 4, $pop24 # 4: down to label2
# BB#18: # %for.cond63
# in Loop: Header=BB1_17 Depth=1
i32.const $push53=, 1
i32.add $1=, $1, $pop53
i32.const $push52=, 1023
i32.le_u $push25=, $1, $pop52
br_if 0, $pop25 # 0: up to label15
# BB#19: # %for.end77
end_loop # label16:
i32.const $push26=, 131072
i32.const $8=, 131072
i32.add $8=, $9, $8
i32.call $discard=, memcpy@FUNCTION, $9, $8, $pop26
i32.const $1=, 0
.LBB1_20: # %for.body85
# =>This Inner Loop Header: Depth=1
block
loop # label18:
i32.add $push27=, $9, $1
i32.load8_u $push28=, 0($pop27)
i32.const $push57=, 255
i32.and $push29=, $1, $pop57
i32.ne $push30=, $pop28, $pop29
br_if 2, $pop30 # 2: down to label17
# BB#21: # %for.cond82
# in Loop: Header=BB1_20 Depth=1
i32.const $push56=, 1
i32.add $1=, $1, $pop56
i32.const $push55=, 131071
i32.le_u $push31=, $1, $pop55
br_if 0, $pop31 # 0: up to label18
# BB#22: # %for.end96
end_loop # label19:
i32.const $push32=, 0
call exit@FUNCTION, $pop32
unreachable
.LBB1_23: # %if.then92
end_block # label17:
call abort@FUNCTION
unreachable
.LBB1_24: # %if.then
end_block # label4:
call abort@FUNCTION
unreachable
.LBB1_25: # %if.then42
end_block # label3:
call abort@FUNCTION
unreachable
.LBB1_26: # %if.then73
end_block # label2:
call abort@FUNCTION
unreachable
.endfunc
.Lfunc_end1:
.size main, .Lfunc_end1-main
.ident "clang version 3.9.0 "
|