summaryrefslogtreecommitdiff
path: root/test/torture-s/strncmp-1.c.s
blob: 05fedcc60c6b4ab6a7cfe710e1e15ac820cd2326 (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
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
	.text
	.file	"/b/build/slave/linux/build/src/src/work/gcc/gcc/testsuite/gcc.c-torture/execute/strncmp-1.c"
	.section	.text.test,"ax",@progbits
	.hidden	test
	.globl	test
	.type	test,@function
test:                                   # @test
	.param  	i32, i32, i32, i32
# BB#0:                                 # %entry
	i32.call	$2=, strncmp@FUNCTION, $0, $1, $2
	block
	block
	block
	block
	i32.const	$push0=, -1
	i32.gt_s	$push1=, $3, $pop0
	br_if   	0, $pop1        # 0: down to label3
# BB#1:                                 # %entry
	i32.const	$push2=, 0
	i32.ge_s	$push3=, $2, $pop2
	br_if   	1, $pop3        # 1: down to label2
.LBB0_2:                                # %if.else
	end_block                       # label3:
	block
	br_if   	0, $3           # 0: down to label4
# BB#3:                                 # %if.else
	br_if   	2, $2           # 2: down to label1
.LBB0_4:                                # %if.else6
	end_block                       # label4:
	block
	i32.const	$push4=, 1
	i32.lt_s	$push5=, $3, $pop4
	br_if   	0, $pop5        # 0: down to label5
# BB#5:                                 # %if.else6
	i32.const	$push6=, 0
	i32.le_s	$push7=, $2, $pop6
	br_if   	3, $pop7        # 3: down to label0
.LBB0_6:                                # %if.end12
	end_block                       # label5:
	return
.LBB0_7:                                # %if.then
	end_block                       # label2:
	call    	abort@FUNCTION
	unreachable
.LBB0_8:                                # %if.then5
	end_block                       # label1:
	call    	abort@FUNCTION
	unreachable
.LBB0_9:                                # %if.then10
	end_block                       # label0:
	call    	abort@FUNCTION
	unreachable
	.endfunc
.Lfunc_end0:
	.size	test, .Lfunc_end0-test

	.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, i64, i32, i32, i32
# BB#0:                                 # %entry
	i32.const	$0=, 0
	i32.const	$1=, u1
.LBB1_1:                                # %for.cond1.preheader
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB1_2 Depth 2
                                        #       Child Loop BB1_3 Depth 3
	block
	block
	block
	block
	block
	block
	block
	block
	block
	block
	block
	block
	block
	block
	block
	block
	block
	block
	loop                            # label24:
	i32.const	$2=, 0
	i32.const	$3=, u2
.LBB1_2:                                # %for.cond4.preheader
                                        #   Parent Loop BB1_1 Depth=1
                                        # =>  This Loop Header: Depth=2
                                        #       Child Loop BB1_3 Depth 3
	loop                            # label26:
	i32.const	$4=, 0
.LBB1_3:                                # %for.cond7.preheader
                                        #   Parent Loop BB1_1 Depth=1
                                        #     Parent Loop BB1_2 Depth=2
                                        # =>    This Inner Loop Header: Depth=3
	loop                            # label28:
	i32.const	$5=, u1
	block
	i32.const	$push63=, 0
	i32.eq  	$push64=, $0, $pop63
	br_if   	0, $pop64       # 0: down to label30
# BB#4:                                 # %for.body9.preheader
                                        #   in Loop: Header=BB1_3 Depth=3
	i32.const	$push36=, u1
	i32.const	$push35=, 0
	i32.call	$discard=, memset@FUNCTION, $pop36, $pop35, $0
	copy_local	$5=, $1
.LBB1_5:                                # %for.cond10.preheader
                                        #   in Loop: Header=BB1_3 Depth=3
	end_block                       # label30:
	copy_local	$6=, $5
	block
	i32.const	$push65=, 0
	i32.eq  	$push66=, $4, $pop65
	br_if   	0, $pop66       # 0: down to label31
# BB#6:                                 # %for.body12.preheader
                                        #   in Loop: Header=BB1_3 Depth=3
	i32.const	$push37=, 97
	i32.call	$push0=, memset@FUNCTION, $5, $pop37, $4
	i32.add 	$6=, $pop0, $4
.LBB1_7:                                # %for.cond17.preheader
                                        #   in Loop: Header=BB1_3 Depth=3
	end_block                       # label31:
	i64.const	$push38=, 8680820740569200760
	i64.store	$9=, 0($6):p2align=0, $pop38
	i32.const	$7=, u2
	block
	i32.const	$push67=, 0
	i32.eq  	$push68=, $2, $pop67
	br_if   	0, $pop68       # 0: down to label32
# BB#8:                                 # %for.body26.preheader
                                        #   in Loop: Header=BB1_3 Depth=3
	i32.const	$push40=, u2
	i32.const	$push39=, 0
	i32.call	$discard=, memset@FUNCTION, $pop40, $pop39, $2
	copy_local	$7=, $3
.LBB1_9:                                # %for.cond31.preheader
                                        #   in Loop: Header=BB1_3 Depth=3
	end_block                       # label32:
	copy_local	$8=, $7
	block
	i32.const	$push69=, 0
	i32.eq  	$push70=, $4, $pop69
	br_if   	0, $pop70       # 0: down to label33
# BB#10:                                # %for.body33.preheader
                                        #   in Loop: Header=BB1_3 Depth=3
	i32.const	$push41=, 97
	i32.call	$push1=, memset@FUNCTION, $7, $pop41, $4
	i32.add 	$8=, $pop1, $4
.LBB1_11:                               # %for.cond38.preheader
                                        #   in Loop: Header=BB1_3 Depth=3
	end_block                       # label33:
	i64.store	$discard=, 0($8):p2align=0, $9
	i32.const	$push43=, 0
	i32.store8	$push2=, 0($6), $pop43
	i32.store8	$11=, 0($8), $pop2
	i32.const	$push42=, 80
	i32.call	$push3=, strncmp@FUNCTION, $5, $7, $pop42
	br_if   	6, $pop3        # 6: down to label23
# BB#12:                                # %test.exit
                                        #   in Loop: Header=BB1_3 Depth=3
	i32.call	$push4=, strncmp@FUNCTION, $5, $7, $4
	br_if   	7, $pop4        # 7: down to label22
# BB#13:                                # %test.exit185
                                        #   in Loop: Header=BB1_3 Depth=3
	i32.store8	$discard=, 0($8), $11
	i32.const	$push45=, 97
	i32.store16	$10=, 0($6):p2align=0, $pop45
	i32.const	$push44=, 80
	i32.call	$push5=, strncmp@FUNCTION, $5, $7, $pop44
	i32.le_s	$push6=, $pop5, $11
	br_if   	8, $pop6        # 8: down to label21
# BB#14:                                # %test.exit190
                                        #   in Loop: Header=BB1_3 Depth=3
	i32.call	$push7=, strncmp@FUNCTION, $5, $7, $4
	br_if   	9, $pop7        # 9: down to label20
# BB#15:                                # %test.exit196
                                        #   in Loop: Header=BB1_3 Depth=3
	i32.store16	$discard=, 0($8):p2align=0, $10
	i32.store8	$discard=, 0($6), $11
	i32.const	$push46=, 80
	i32.call	$push8=, strncmp@FUNCTION, $5, $7, $pop46
	i32.ge_s	$push9=, $pop8, $11
	br_if   	10, $pop9       # 10: down to label19
# BB#16:                                # %test.exit201
                                        #   in Loop: Header=BB1_3 Depth=3
	i32.call	$push10=, strncmp@FUNCTION, $5, $7, $4
	br_if   	11, $pop10      # 11: down to label18
# BB#17:                                # %test.exit207
                                        #   in Loop: Header=BB1_3 Depth=3
	i32.const	$push49=, 98
	i32.store16	$10=, 0($6):p2align=0, $pop49
	i32.const	$push48=, 99
	i32.store16	$12=, 0($8):p2align=0, $pop48
	i32.const	$push47=, 80
	i32.call	$push11=, strncmp@FUNCTION, $5, $7, $pop47
	i32.ge_s	$push12=, $pop11, $11
	br_if   	12, $pop12      # 12: down to label17
# BB#18:                                # %test.exit213
                                        #   in Loop: Header=BB1_3 Depth=3
	i32.call	$push13=, strncmp@FUNCTION, $5, $7, $4
	br_if   	13, $pop13      # 13: down to label16
# BB#19:                                # %test.exit219
                                        #   in Loop: Header=BB1_3 Depth=3
	i32.store16	$discard=, 0($6):p2align=0, $12
	i32.store16	$discard=, 0($8):p2align=0, $10
	i32.const	$push50=, 80
	i32.call	$push14=, strncmp@FUNCTION, $5, $7, $pop50
	i32.le_s	$push15=, $pop14, $11
	br_if   	14, $pop15      # 14: down to label15
# BB#20:                                # %test.exit225
                                        #   in Loop: Header=BB1_3 Depth=3
	i32.call	$push16=, strncmp@FUNCTION, $5, $7, $4
	br_if   	15, $pop16      # 15: down to label14
# BB#21:                                # %test.exit231
                                        #   in Loop: Header=BB1_3 Depth=3
	i32.store16	$discard=, 0($6):p2align=0, $10
	i32.const	$push52=, 169
	i32.store16	$12=, 0($8):p2align=0, $pop52
	i32.const	$push51=, 80
	i32.call	$push17=, strncmp@FUNCTION, $5, $7, $pop51
	i32.ge_s	$push18=, $pop17, $11
	br_if   	16, $pop18      # 16: down to label13
# BB#22:                                # %test.exit237
                                        #   in Loop: Header=BB1_3 Depth=3
	i32.call	$push19=, strncmp@FUNCTION, $5, $7, $4
	br_if   	17, $pop19      # 17: down to label12
# BB#23:                                # %test.exit243
                                        #   in Loop: Header=BB1_3 Depth=3
	i32.store16	$discard=, 0($8):p2align=0, $10
	i32.store16	$10=, 0($6):p2align=0, $12
	i32.const	$push53=, 80
	i32.call	$push20=, strncmp@FUNCTION, $5, $7, $pop53
	i32.le_s	$push21=, $pop20, $11
	br_if   	18, $pop21      # 18: down to label11
# BB#24:                                # %test.exit249
                                        #   in Loop: Header=BB1_3 Depth=3
	i32.call	$push22=, strncmp@FUNCTION, $5, $7, $4
	br_if   	19, $pop22      # 19: down to label10
# BB#25:                                # %test.exit255
                                        #   in Loop: Header=BB1_3 Depth=3
	i32.store16	$discard=, 0($6):p2align=0, $10
	i32.const	$push55=, 170
	i32.store16	$12=, 0($8):p2align=0, $pop55
	i32.const	$push54=, 80
	i32.call	$push23=, strncmp@FUNCTION, $5, $7, $pop54
	i32.ge_s	$push24=, $pop23, $11
	br_if   	20, $pop24      # 20: down to label9
# BB#26:                                # %test.exit261
                                        #   in Loop: Header=BB1_3 Depth=3
	i32.call	$push25=, strncmp@FUNCTION, $5, $7, $4
	br_if   	21, $pop25      # 21: down to label8
# BB#27:                                # %test.exit267
                                        #   in Loop: Header=BB1_3 Depth=3
	i32.store16	$discard=, 0($6):p2align=0, $12
	i32.store16	$discard=, 0($8):p2align=0, $10
	i32.const	$push56=, 80
	i32.call	$push26=, strncmp@FUNCTION, $5, $7, $pop56
	i32.le_s	$push27=, $pop26, $11
	br_if   	22, $pop27      # 22: down to label7
# BB#28:                                # %test.exit273
                                        #   in Loop: Header=BB1_3 Depth=3
	i32.call	$push28=, strncmp@FUNCTION, $5, $7, $4
	br_if   	23, $pop28      # 23: down to label6
# BB#29:                                # %for.cond4
                                        #   in Loop: Header=BB1_3 Depth=3
	i32.const	$push34=, 1
	i32.add 	$4=, $4, $pop34
	i32.const	$push33=, 63
	i32.le_u	$push29=, $4, $pop33
	br_if   	0, $pop29       # 0: up to label28
# BB#30:                                # %for.inc79
                                        #   in Loop: Header=BB1_2 Depth=2
	end_loop                        # label29:
	i32.const	$push59=, 1
	i32.add 	$2=, $2, $pop59
	i32.const	$push58=, 1
	i32.add 	$3=, $3, $pop58
	i32.const	$push57=, 8
	i32.lt_u	$push30=, $2, $pop57
	br_if   	0, $pop30       # 0: up to label26
# BB#31:                                # %for.inc82
                                        #   in Loop: Header=BB1_1 Depth=1
	end_loop                        # label27:
	i32.const	$push62=, 1
	i32.add 	$0=, $0, $pop62
	i32.const	$push61=, 1
	i32.add 	$1=, $1, $pop61
	i32.const	$push60=, 8
	i32.lt_u	$push31=, $0, $pop60
	br_if   	0, $pop31       # 0: up to label24
# BB#32:                                # %for.end84
	end_loop                        # label25:
	i32.const	$push32=, 0
	call    	exit@FUNCTION, $pop32
	unreachable
.LBB1_33:                               # %if.then5.i
	end_block                       # label23:
	call    	abort@FUNCTION
	unreachable
.LBB1_34:                               # %if.then5.i183
	end_block                       # label22:
	call    	abort@FUNCTION
	unreachable
.LBB1_35:                               # %if.then10.i
	end_block                       # label21:
	call    	abort@FUNCTION
	unreachable
.LBB1_36:                               # %if.then5.i194
	end_block                       # label20:
	call    	abort@FUNCTION
	unreachable
.LBB1_37:                               # %if.then.i
	end_block                       # label19:
	call    	abort@FUNCTION
	unreachable
.LBB1_38:                               # %if.then5.i205
	end_block                       # label18:
	call    	abort@FUNCTION
	unreachable
.LBB1_39:                               # %if.then.i210
	end_block                       # label17:
	call    	abort@FUNCTION
	unreachable
.LBB1_40:                               # %if.then5.i217
	end_block                       # label16:
	call    	abort@FUNCTION
	unreachable
.LBB1_41:                               # %if.then10.i224
	end_block                       # label15:
	call    	abort@FUNCTION
	unreachable
.LBB1_42:                               # %if.then5.i229
	end_block                       # label14:
	call    	abort@FUNCTION
	unreachable
.LBB1_43:                               # %if.then.i234
	end_block                       # label13:
	call    	abort@FUNCTION
	unreachable
.LBB1_44:                               # %if.then5.i241
	end_block                       # label12:
	call    	abort@FUNCTION
	unreachable
.LBB1_45:                               # %if.then10.i248
	end_block                       # label11:
	call    	abort@FUNCTION
	unreachable
.LBB1_46:                               # %if.then5.i253
	end_block                       # label10:
	call    	abort@FUNCTION
	unreachable
.LBB1_47:                               # %if.then.i258
	end_block                       # label9:
	call    	abort@FUNCTION
	unreachable
.LBB1_48:                               # %if.then5.i265
	end_block                       # label8:
	call    	abort@FUNCTION
	unreachable
.LBB1_49:                               # %if.then10.i272
	end_block                       # label7:
	call    	abort@FUNCTION
	unreachable
.LBB1_50:                               # %if.then5.i277
	end_block                       # label6:
	call    	abort@FUNCTION
	unreachable
	.endfunc
.Lfunc_end1:
	.size	main, .Lfunc_end1-main

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

	.ident	"clang version 3.9.0 "