summaryrefslogtreecommitdiff
path: root/test/torture-s/memcpy-2.c.s
blob: a2d1afddd87fa5700194458440f034ebf10f35ee (plain)
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
	.text
	.file	"/b/build/slave/linux/build/src/src/work/gcc/gcc/testsuite/gcc.c-torture/execute/memcpy-2.c"
	.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
# BB#0:                                 # %entry
	i32.const	$0=, 0
.LBB0_1:                                # %for.cond1.preheader
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB0_2 Depth 2
                                        #       Child Loop BB0_3 Depth 3
                                        #         Child Loop BB0_4 Depth 4
                                        #         Child Loop BB0_7 Depth 4
                                        #         Child Loop BB0_11 Depth 4
	block
	loop                            # label1:
	i32.const	$push44=, u1
	i32.add 	$1=, $0, $pop44
	i32.const	$2=, 0
.LBB0_2:                                # %for.cond4.preheader
                                        #   Parent Loop BB0_1 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB0_3 Depth 3
                                        #         Child Loop BB0_4 Depth 4
                                        #         Child Loop BB0_7 Depth 4
                                        #         Child Loop BB0_11 Depth 4
	loop                            # label3:
	i32.const	$push46=, u2
	i32.add 	$3=, $2, $pop46
	i32.const	$push45=, 65
	i32.add 	$4=, $2, $pop45
	i32.const	$5=, 1
.LBB0_3:                                # %for.cond7.preheader
                                        #   Parent Loop BB0_1 Depth=1
                                        #     Parent Loop BB0_2 Depth=2
                                        # =>    This Loop Header: Depth=3
                                        #         Child Loop BB0_4 Depth 4
                                        #         Child Loop BB0_7 Depth 4
                                        #         Child Loop BB0_11 Depth 4
	loop                            # label5:
	i32.const	$push49=, u1
	i32.const	$push48=, 97
	i32.const	$push47=, 96
	i32.call	$drop=, memset@FUNCTION, $pop49, $pop48, $pop47
	i32.const	$6=, 65
	i32.const	$8=, -96
.LBB0_4:                                # %for.body9
                                        #   Parent Loop BB0_1 Depth=1
                                        #     Parent Loop BB0_2 Depth=2
                                        #       Parent Loop BB0_3 Depth=3
                                        # =>      This Inner Loop Header: Depth=4
	loop                            # label7:
	i32.const	$push55=, 65
	i32.const	$push54=, 24
	i32.shl 	$push1=, $6, $pop54
	i32.const	$push53=, 24
	i32.shr_s	$push2=, $pop1, $pop53
	i32.const	$push52=, 95
	i32.gt_s	$push3=, $pop2, $pop52
	i32.select	$push4=, $pop55, $6, $pop3
	i32.store8	$push0=, u2+96($8), $pop4
	i32.const	$push51=, 1
	i32.add 	$6=, $pop0, $pop51
	i32.const	$push50=, 1
	i32.add 	$8=, $8, $pop50
	br_if   	0, $8           # 0: up to label7
# BB#5:                                 # %for.end
                                        #   in Loop: Header=BB0_3 Depth=3
	end_loop                        # label8:
	i32.call	$drop=, memcpy@FUNCTION, $1, $3, $5
	i32.const	$7=, u1
	block
	i32.const	$push56=, 1
	i32.lt_s	$push5=, $0, $pop56
	br_if   	0, $pop5        # 0: down to label9
# BB#6:                                 # %for.body23.preheader
                                        #   in Loop: Header=BB0_3 Depth=3
	i32.const	$8=, 0
.LBB0_7:                                # %for.body23
                                        #   Parent Loop BB0_1 Depth=1
                                        #     Parent Loop BB0_2 Depth=2
                                        #       Parent Loop BB0_3 Depth=3
                                        # =>      This Inner Loop Header: Depth=4
	loop                            # label10:
	copy_local	$push59=, $8
	tee_local	$push58=, $6=, $pop59
	i32.load8_u	$push6=, u1($pop58)
	i32.const	$push57=, 97
	i32.ne  	$push7=, $pop6, $pop57
	br_if   	9, $pop7        # 9: down to label0
# BB#8:                                 # %for.inc29
                                        #   in Loop: Header=BB0_7 Depth=4
	i32.const	$push62=, 1
	i32.add 	$push61=, $6, $pop62
	tee_local	$push60=, $8=, $pop61
	i32.lt_s	$push8=, $pop60, $0
	br_if   	0, $pop8        # 0: up to label10
# BB#9:                                 #   in Loop: Header=BB0_3 Depth=3
	end_loop                        # label11:
	i32.const	$push63=, u1+1
	i32.add 	$7=, $6, $pop63
.LBB0_10:                               # %for.body36.preheader
                                        #   in Loop: Header=BB0_3 Depth=3
	end_block                       # label9:
	i32.const	$8=, 0
	copy_local	$6=, $4
.LBB0_11:                               # %for.body36
                                        #   Parent Loop BB0_1 Depth=1
                                        #     Parent Loop BB0_2 Depth=2
                                        #       Parent Loop BB0_3 Depth=3
                                        # =>      This Inner Loop Header: Depth=4
	loop                            # label12:
	i32.add 	$push13=, $7, $8
	i32.load8_u	$push14=, 0($pop13)
	i32.const	$push70=, 65
	i32.const	$push69=, 24
	i32.shl 	$push9=, $6, $pop69
	i32.const	$push68=, 24
	i32.shr_s	$push10=, $pop9, $pop68
	i32.const	$push67=, 95
	i32.gt_s	$push11=, $pop10, $pop67
	i32.select	$push66=, $pop70, $6, $pop11
	tee_local	$push65=, $6=, $pop66
	i32.const	$push64=, 255
	i32.and 	$push12=, $pop65, $pop64
	i32.ne  	$push15=, $pop14, $pop12
	br_if   	8, $pop15       # 8: down to label0
# BB#12:                                # %for.inc48
                                        #   in Loop: Header=BB0_11 Depth=4
	i32.const	$push72=, 1
	i32.add 	$8=, $8, $pop72
	i32.const	$push71=, 1
	i32.add 	$6=, $6, $pop71
	i32.lt_s	$push16=, $8, $5
	br_if   	0, $pop16       # 0: up to label12
# BB#13:                                # %for.body56.preheader
                                        #   in Loop: Header=BB0_3 Depth=3
	end_loop                        # label13:
	i32.add 	$push75=, $7, $8
	tee_local	$push74=, $8=, $pop75
	i32.load8_u	$push17=, 0($pop74)
	i32.const	$push73=, 97
	i32.ne  	$push18=, $pop17, $pop73
	br_if   	6, $pop18       # 6: down to label0
# BB#14:                                # %for.inc62
                                        #   in Loop: Header=BB0_3 Depth=3
	i32.const	$push77=, 1
	i32.add 	$push19=, $8, $pop77
	i32.load8_u	$push20=, 0($pop19)
	i32.const	$push76=, 97
	i32.ne  	$push21=, $pop20, $pop76
	br_if   	6, $pop21       # 6: down to label0
# BB#15:                                # %for.inc62.1
                                        #   in Loop: Header=BB0_3 Depth=3
	i32.const	$push79=, 2
	i32.add 	$push22=, $8, $pop79
	i32.load8_u	$push23=, 0($pop22)
	i32.const	$push78=, 97
	i32.ne  	$push24=, $pop23, $pop78
	br_if   	6, $pop24       # 6: down to label0
# BB#16:                                # %for.inc62.2
                                        #   in Loop: Header=BB0_3 Depth=3
	i32.const	$push81=, 3
	i32.add 	$push25=, $8, $pop81
	i32.load8_u	$push26=, 0($pop25)
	i32.const	$push80=, 97
	i32.ne  	$push27=, $pop26, $pop80
	br_if   	6, $pop27       # 6: down to label0
# BB#17:                                # %for.inc62.3
                                        #   in Loop: Header=BB0_3 Depth=3
	i32.const	$push83=, 4
	i32.add 	$push28=, $8, $pop83
	i32.load8_u	$push29=, 0($pop28)
	i32.const	$push82=, 97
	i32.ne  	$push30=, $pop29, $pop82
	br_if   	6, $pop30       # 6: down to label0
# BB#18:                                # %for.inc62.4
                                        #   in Loop: Header=BB0_3 Depth=3
	i32.const	$push85=, 5
	i32.add 	$push31=, $8, $pop85
	i32.load8_u	$push32=, 0($pop31)
	i32.const	$push84=, 97
	i32.ne  	$push33=, $pop32, $pop84
	br_if   	6, $pop33       # 6: down to label0
# BB#19:                                # %for.inc62.5
                                        #   in Loop: Header=BB0_3 Depth=3
	i32.const	$push87=, 6
	i32.add 	$push34=, $8, $pop87
	i32.load8_u	$push35=, 0($pop34)
	i32.const	$push86=, 97
	i32.ne  	$push36=, $pop35, $pop86
	br_if   	6, $pop36       # 6: down to label0
# BB#20:                                # %for.inc62.6
                                        #   in Loop: Header=BB0_3 Depth=3
	i32.const	$push89=, 7
	i32.add 	$push37=, $8, $pop89
	i32.load8_u	$push38=, 0($pop37)
	i32.const	$push88=, 97
	i32.ne  	$push39=, $pop38, $pop88
	br_if   	6, $pop39       # 6: down to label0
# BB#21:                                # %for.inc62.7
                                        #   in Loop: Header=BB0_3 Depth=3
	i32.const	$push91=, 1
	i32.add 	$5=, $5, $pop91
	i32.const	$push90=, 80
	i32.lt_u	$push40=, $5, $pop90
	br_if   	0, $pop40       # 0: up to label5
# BB#22:                                # %for.inc69
                                        #   in Loop: Header=BB0_2 Depth=2
	end_loop                        # label6:
	i32.const	$push93=, 1
	i32.add 	$2=, $2, $pop93
	i32.const	$push92=, 8
	i32.lt_u	$push41=, $2, $pop92
	br_if   	0, $pop41       # 0: up to label3
# BB#23:                                # %for.inc72
                                        #   in Loop: Header=BB0_1 Depth=1
	end_loop                        # label4:
	i32.const	$push95=, 1
	i32.add 	$0=, $0, $pop95
	i32.const	$push94=, 8
	i32.lt_u	$push42=, $0, $pop94
	br_if   	0, $pop42       # 0: up to label1
# BB#24:                                # %for.end74
	end_loop                        # label2:
	i32.const	$push43=, 0
	call    	exit@FUNCTION, $pop43
	unreachable
.LBB0_25:                               # %if.then60
	end_block                       # label0:
	call    	abort@FUNCTION
	unreachable
	.endfunc
.Lfunc_end0:
	.size	main, .Lfunc_end0-main

	.type	u1,@object              # @u1
	.lcomm	u1,96,4
	.type	u2,@object              # @u2
	.lcomm	u2,96,4

	.ident	"clang version 3.9.0 "