summaryrefslogtreecommitdiff
path: root/test/torture-s/fprintf-1.c.s
blob: e3283bc24641393d2d21bb447d54be6e4534b103 (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
	.text
	.file	"/b/build/slave/linux/build/src/src/work/gcc/gcc/testsuite/gcc.c-torture/execute/fprintf-1.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, i32, i32, i32, i32, i32
# BB#0:                                 # %entry
	i32.const	$2=, __stack_pointer
	i32.load	$2=, 0($2)
	i32.const	$3=, 144
	i32.sub 	$13=, $2, $3
	i32.const	$3=, __stack_pointer
	i32.store	$13=, 0($3), $13
	i32.const	$push1=, .L.str
	i32.const	$push2=, 5
	i32.const	$push61=, 1
	i32.const	$push60=, 0
	i32.load	$push0=, stdout($pop60)
	i32.call	$discard=, fwrite@FUNCTION, $pop1, $pop2, $pop61, $pop0
	block
	block
	block
	block
	block
	block
	block
	block
	block
	block
	block
	i32.const	$push59=, 0
	i32.load	$push3=, stdout($pop59)
	i32.const	$push58=, .L.str
	i32.const	$push57=, 0
	i32.call	$push4=, fprintf@FUNCTION, $pop3, $pop58, $pop57
	i32.const	$push56=, 5
	i32.ne  	$push5=, $pop4, $pop56
	br_if   	0, $pop5        # 0: down to label10
# BB#1:                                 # %if.end
	i32.const	$push7=, .L.str.1
	i32.const	$push8=, 6
	i32.const	$push67=, 1
	i32.const	$push66=, 0
	i32.load	$push6=, stdout($pop66)
	i32.call	$discard=, fwrite@FUNCTION, $pop7, $pop8, $pop67, $pop6
	i32.const	$push65=, 0
	i32.load	$push9=, stdout($pop65)
	i32.const	$push64=, .L.str.1
	i32.const	$push63=, 0
	i32.call	$push10=, fprintf@FUNCTION, $pop9, $pop64, $pop63
	i32.const	$push62=, 6
	i32.ne  	$push11=, $pop10, $pop62
	br_if   	1, $pop11       # 1: down to label9
# BB#2:                                 # %if.end6
	i32.const	$push13=, 97
	i32.const	$push70=, 0
	i32.load	$push12=, stdout($pop70)
	i32.call	$discard=, fputc@FUNCTION, $pop13, $pop12
	i32.const	$push69=, 0
	i32.load	$push14=, stdout($pop69)
	i32.const	$push15=, .L.str.2
	i32.const	$push68=, 0
	i32.call	$push16=, fprintf@FUNCTION, $pop14, $pop15, $pop68
	i32.const	$push17=, 1
	i32.ne  	$push18=, $pop16, $pop17
	br_if   	2, $pop18       # 2: down to label8
# BB#3:                                 # %if.end11
	i32.const	$push72=, 0
	i32.load	$push19=, stdout($pop72)
	i32.const	$push20=, .L.str.3
	i32.const	$push71=, 0
	i32.call	$push21=, fprintf@FUNCTION, $pop19, $pop20, $pop71
	br_if   	3, $pop21       # 3: down to label7
# BB#4:                                 # %if.end16
	i32.const	$push23=, .L.str
	i32.const	$push24=, 5
	i32.const	$push78=, 1
	i32.const	$push77=, 0
	i32.load	$push22=, stdout($pop77)
	i32.call	$discard=, fwrite@FUNCTION, $pop23, $pop24, $pop78, $pop22
	i32.const	$push76=, 0
	i32.load	$1=, stdout($pop76)
	i32.const	$push75=, .L.str
	i32.store	$discard=, 128($13):p2align=4, $pop75
	i32.const	$push74=, .L.str.4
	i32.const	$5=, 128
	i32.add 	$5=, $13, $5
	i32.call	$push25=, fprintf@FUNCTION, $1, $pop74, $5
	i32.const	$push73=, 5
	i32.ne  	$push26=, $pop25, $pop73
	br_if   	4, $pop26       # 4: down to label6
# BB#5:                                 # %if.end21
	i32.const	$push28=, .L.str.1
	i32.const	$push29=, 6
	i32.const	$push84=, 1
	i32.const	$push83=, 0
	i32.load	$push27=, stdout($pop83)
	i32.call	$discard=, fwrite@FUNCTION, $pop28, $pop29, $pop84, $pop27
	i32.const	$push82=, 0
	i32.load	$1=, stdout($pop82)
	i32.const	$push81=, .L.str.1
	i32.store	$discard=, 112($13):p2align=4, $pop81
	i32.const	$push80=, .L.str.4
	i32.const	$6=, 112
	i32.add 	$6=, $13, $6
	i32.call	$push30=, fprintf@FUNCTION, $1, $pop80, $6
	i32.const	$push79=, 6
	i32.ne  	$push31=, $pop30, $pop79
	br_if   	5, $pop31       # 5: down to label5
# BB#6:                                 # %if.end26
	i32.const	$push33=, 97
	i32.const	$push87=, 0
	i32.load	$push32=, stdout($pop87)
	i32.call	$discard=, fputc@FUNCTION, $pop33, $pop32
	i32.const	$push86=, 0
	i32.load	$1=, stdout($pop86)
	i32.const	$push34=, .L.str.2
	i32.store	$discard=, 96($13):p2align=4, $pop34
	i32.const	$push85=, .L.str.4
	i32.const	$7=, 96
	i32.add 	$7=, $13, $7
	i32.call	$push35=, fprintf@FUNCTION, $1, $pop85, $7
	i32.const	$push36=, 1
	i32.ne  	$push37=, $pop35, $pop36
	br_if   	6, $pop37       # 6: down to label4
# BB#7:                                 # %if.end31
	i32.const	$push89=, 0
	i32.load	$1=, stdout($pop89)
	i32.const	$push38=, .L.str.3
	i32.store	$discard=, 80($13):p2align=4, $pop38
	i32.const	$push88=, .L.str.4
	i32.const	$8=, 80
	i32.add 	$8=, $13, $8
	i32.call	$push39=, fprintf@FUNCTION, $1, $pop88, $8
	br_if   	7, $pop39       # 7: down to label3
# BB#8:                                 # %if.end36
	i32.const	$push41=, 120
	i32.const	$push92=, 0
	i32.load	$push40=, stdout($pop92)
	i32.call	$discard=, fputc@FUNCTION, $pop41, $pop40
	i32.const	$push91=, 0
	i32.load	$1=, stdout($pop91)
	i32.const	$push90=, 120
	i32.store	$discard=, 64($13):p2align=4, $pop90
	i32.const	$push42=, .L.str.5
	i32.const	$9=, 64
	i32.add 	$9=, $13, $9
	i32.call	$push43=, fprintf@FUNCTION, $1, $pop42, $9
	i32.const	$push44=, 1
	i32.ne  	$push45=, $pop43, $pop44
	br_if   	8, $pop45       # 8: down to label2
# BB#9:                                 # %if.end41
	i32.const	$push95=, 0
	i32.load	$1=, stdout($pop95)
	i32.const	$push46=, .L.str.1
	i32.store	$0=, 48($13):p2align=4, $pop46
	i32.const	$push47=, .L.str.6
	i32.const	$10=, 48
	i32.add 	$10=, $13, $10
	i32.call	$discard=, fprintf@FUNCTION, $1, $pop47, $10
	i32.const	$push94=, 0
	i32.load	$1=, stdout($pop94)
	i32.store	$discard=, 32($13):p2align=4, $0
	i32.const	$push93=, .L.str.6
	i32.const	$11=, 32
	i32.add 	$11=, $13, $11
	i32.call	$push48=, fprintf@FUNCTION, $1, $pop93, $11
	i32.const	$push49=, 7
	i32.ne  	$push50=, $pop48, $pop49
	br_if   	9, $pop50       # 9: down to label1
# BB#10:                                # %if.end46
	i32.const	$push51=, 0
	i32.load	$0=, stdout($pop51)
	i32.const	$push97=, 0
	i32.store	$1=, 16($13):p2align=4, $pop97
	i32.const	$push52=, .L.str.7
	i32.const	$12=, 16
	i32.add 	$12=, $13, $12
	i32.call	$discard=, fprintf@FUNCTION, $0, $pop52, $12
	i32.load	$0=, stdout($1)
	i32.store	$discard=, 0($13):p2align=4, $1
	i32.const	$push96=, .L.str.7
	i32.call	$push53=, fprintf@FUNCTION, $0, $pop96, $13
	i32.const	$push54=, 2
	i32.ne  	$push55=, $pop53, $pop54
	br_if   	10, $pop55      # 10: down to label0
# BB#11:                                # %if.end51
	i32.const	$4=, 144
	i32.add 	$13=, $13, $4
	i32.const	$4=, __stack_pointer
	i32.store	$13=, 0($4), $13
	return  	$1
.LBB0_12:                               # %if.then
	end_block                       # label10:
	call    	abort@FUNCTION
	unreachable
.LBB0_13:                               # %if.then5
	end_block                       # label9:
	call    	abort@FUNCTION
	unreachable
.LBB0_14:                               # %if.then10
	end_block                       # label8:
	call    	abort@FUNCTION
	unreachable
.LBB0_15:                               # %if.then15
	end_block                       # label7:
	call    	abort@FUNCTION
	unreachable
.LBB0_16:                               # %if.then20
	end_block                       # label6:
	call    	abort@FUNCTION
	unreachable
.LBB0_17:                               # %if.then25
	end_block                       # label5:
	call    	abort@FUNCTION
	unreachable
.LBB0_18:                               # %if.then30
	end_block                       # label4:
	call    	abort@FUNCTION
	unreachable
.LBB0_19:                               # %if.then35
	end_block                       # label3:
	call    	abort@FUNCTION
	unreachable
.LBB0_20:                               # %if.then40
	end_block                       # label2:
	call    	abort@FUNCTION
	unreachable
.LBB0_21:                               # %if.then45
	end_block                       # label1:
	call    	abort@FUNCTION
	unreachable
.LBB0_22:                               # %if.then50
	end_block                       # label0:
	call    	abort@FUNCTION
	unreachable
	.endfunc
.Lfunc_end0:
	.size	main, .Lfunc_end0-main

	.type	.L.str,@object          # @.str
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str:
	.asciz	"hello"
	.size	.L.str, 6

	.type	.L.str.1,@object        # @.str.1
.L.str.1:
	.asciz	"hello\n"
	.size	.L.str.1, 7

	.type	.L.str.2,@object        # @.str.2
.L.str.2:
	.asciz	"a"
	.size	.L.str.2, 2

	.type	.L.str.3,@object        # @.str.3
.L.str.3:
	.skip	1
	.size	.L.str.3, 1

	.type	.L.str.4,@object        # @.str.4
.L.str.4:
	.asciz	"%s"
	.size	.L.str.4, 3

	.type	.L.str.5,@object        # @.str.5
.L.str.5:
	.asciz	"%c"
	.size	.L.str.5, 3

	.type	.L.str.6,@object        # @.str.6
.L.str.6:
	.asciz	"%s\n"
	.size	.L.str.6, 4

	.type	.L.str.7,@object        # @.str.7
.L.str.7:
	.asciz	"%d\n"
	.size	.L.str.7, 4


	.ident	"clang version 3.9.0 "