]> git.proxmox.com Git - rustc.git/blob - src/binaryen/test/torture-s/20020529-1.c.s
New upstream version 1.23.0+dfsg1
[rustc.git] / src / binaryen / test / torture-s / 20020529-1.c.s
1 .text
2 .file "20020529-1.c"
3 .section .text.foo,"ax",@progbits
4 .hidden foo # -- Begin function foo
5 .globl foo
6 .type foo,@function
7 foo: # @foo
8 .param i32, i32, i32, i32
9 .result i32
10 .local i32, i32, i32, i32
11 # BB#0: # %entry
12 i32.const $push15=, 0
13 i32.const $push14=, 0
14 i32.load $push13=, f1.beenhere($pop14)
15 tee_local $push12=, $7=, $pop13
16 i32.const $push11=, 1
17 i32.add $push10=, $pop12, $pop11
18 tee_local $push9=, $6=, $pop10
19 i32.store f1.beenhere($pop15), $pop9
20 block
21 block
22 block
23 i32.const $push8=, 1
24 i32.gt_s $push0=, $7, $pop8
25 br_if 0, $pop0 # 0: down to label2
26 # BB#1: # %f1.exit.lr.ph.lr.ph
27 i32.const $push3=, 8
28 i32.add $5=, $0, $pop3
29 .LBB0_2: # %f1.exit
30 # =>This Inner Loop Header: Depth=1
31 loop # label3:
32 copy_local $4=, $6
33 i32.const $push16=, 1
34 i32.eq $push1=, $7, $pop16
35 br_if 2, $pop1 # 2: down to label1
36 # BB#3: # %if.end
37 # in Loop: Header=BB0_2 Depth=1
38 block
39 i32.eqz $push29=, $1
40 br_if 0, $pop29 # 0: down to label4
41 # BB#4: # %for.cond
42 # in Loop: Header=BB0_2 Depth=1
43 i32.const $push21=, 0
44 i32.const $push20=, 1
45 i32.add $push19=, $4, $pop20
46 tee_local $push18=, $6=, $pop19
47 i32.store f1.beenhere($pop21), $pop18
48 copy_local $7=, $4
49 i32.const $push17=, 2
50 i32.lt_s $push2=, $4, $pop17
51 br_if 1, $pop2 # 1: up to label3
52 br 2 # 2: down to label2
53 .LBB0_5: # %if.end3
54 # in Loop: Header=BB0_2 Depth=1
55 end_block # label4:
56 i32.store16 0($5), $3
57 i32.load $push4=, 0($0)
58 br_if 3, $pop4 # 3: down to label0
59 # BB#6: # %if.end8
60 # in Loop: Header=BB0_2 Depth=1
61 br_if 3, $2 # 3: down to label0
62 # BB#7: # %sw.epilog
63 # in Loop: Header=BB0_2 Depth=1
64 i32.const $push28=, 0
65 i32.const $push27=, 1
66 i32.add $push26=, $4, $pop27
67 tee_local $push25=, $6=, $pop26
68 i32.store f1.beenhere($pop28), $pop25
69 i32.const $push24=, 16
70 i32.shl $push5=, $3, $pop24
71 i32.const $push23=, 16
72 i32.shr_s $3=, $pop5, $pop23
73 copy_local $7=, $4
74 i32.const $push22=, 1
75 i32.le_s $push6=, $4, $pop22
76 br_if 0, $pop6 # 0: up to label3
77 .LBB0_8: # %if.then.i
78 end_loop
79 end_block # label2:
80 call abort@FUNCTION
81 unreachable
82 .LBB0_9: # %if.then
83 end_block # label1:
84 i32.const $push7=, 0
85 return $pop7
86 .LBB0_10: # %if.then7
87 end_block # label0:
88 call f2@FUNCTION
89 unreachable
90 .endfunc
91 .Lfunc_end0:
92 .size foo, .Lfunc_end0-foo
93 # -- End function
94 .section .text.f1,"ax",@progbits
95 .hidden f1 # -- Begin function f1
96 .globl f1
97 .type f1,@function
98 f1: # @f1
99 .param i32
100 .result i32
101 .local i32
102 # BB#0: # %entry
103 i32.const $push0=, 0
104 i32.const $push8=, 0
105 i32.load $push7=, f1.beenhere($pop8)
106 tee_local $push6=, $1=, $pop7
107 i32.const $push5=, 1
108 i32.add $push1=, $pop6, $pop5
109 i32.store f1.beenhere($pop0), $pop1
110 block
111 i32.const $push2=, 2
112 i32.ge_s $push3=, $1, $pop2
113 br_if 0, $pop3 # 0: down to label5
114 # BB#1: # %if.end
115 i32.const $push9=, 1
116 i32.eq $push4=, $1, $pop9
117 return $pop4
118 .LBB1_2: # %if.then
119 end_block # label5:
120 call abort@FUNCTION
121 unreachable
122 .endfunc
123 .Lfunc_end1:
124 .size f1, .Lfunc_end1-f1
125 # -- End function
126 .section .text.f2,"ax",@progbits
127 .hidden f2 # -- Begin function f2
128 .globl f2
129 .type f2,@function
130 f2: # @f2
131 # BB#0: # %entry
132 call abort@FUNCTION
133 unreachable
134 .endfunc
135 .Lfunc_end2:
136 .size f2, .Lfunc_end2-f2
137 # -- End function
138 .section .text.main,"ax",@progbits
139 .hidden main # -- Begin function main
140 .globl main
141 .type main,@function
142 main: # @main
143 .result i32
144 .local i32, i32, i32
145 # BB#0: # %entry
146 i32.const $push13=, 0
147 i32.const $push11=, 0
148 i32.load $push10=, __stack_pointer($pop11)
149 i32.const $push12=, 16
150 i32.sub $push22=, $pop10, $pop12
151 tee_local $push21=, $0=, $pop22
152 i32.store __stack_pointer($pop13), $pop21
153 i32.const $push0=, 0
154 i32.const $push20=, 0
155 i32.load $push19=, f1.beenhere($pop20)
156 tee_local $push18=, $1=, $pop19
157 i32.const $push17=, 1
158 i32.add $push1=, $pop18, $pop17
159 i32.store f1.beenhere($pop0), $pop1
160 i32.const $push16=, 0
161 i32.store 0($0), $pop16
162 i32.const $2=, 23
163 i32.const $push15=, 23
164 i32.store16 8($0), $pop15
165 i32.store 4($0), $0
166 block
167 i32.const $push14=, 1
168 i32.gt_s $push2=, $1, $pop14
169 br_if 0, $pop2 # 0: down to label6
170 # BB#1: # %f1.exit.lr.ph.i.preheader
171 i32.const $push5=, 8
172 i32.add $0=, $0, $pop5
173 .LBB3_2: # %f1.exit.lr.ph.i
174 # =>This Inner Loop Header: Depth=1
175 block
176 loop # label8:
177 i32.const $push23=, 1
178 i32.eq $push3=, $1, $pop23
179 br_if 1, $pop3 # 1: down to label7
180 # BB#3: # %if.end8.i
181 # in Loop: Header=BB3_2 Depth=1
182 i32.const $2=, 0
183 i32.const $push30=, 0
184 i32.const $push29=, 2
185 i32.add $push4=, $1, $pop29
186 i32.store f1.beenhere($pop30), $pop4
187 i32.const $push28=, 0
188 i32.store16 0($0), $pop28
189 i32.const $push27=, 1
190 i32.add $push26=, $1, $pop27
191 tee_local $push25=, $1=, $pop26
192 i32.const $push24=, 1
193 i32.le_s $push6=, $pop25, $pop24
194 br_if 0, $pop6 # 0: up to label8
195 br 2 # 2: down to label6
196 .LBB3_4: # %foo.exit
197 end_loop
198 end_block # label7:
199 i32.const $push7=, 65535
200 i32.and $push8=, $2, $pop7
201 br_if 0, $pop8 # 0: down to label6
202 # BB#5: # %if.end
203 i32.const $push9=, 0
204 call exit@FUNCTION, $pop9
205 unreachable
206 .LBB3_6: # %if.then.i.i
207 end_block # label6:
208 call abort@FUNCTION
209 unreachable
210 .endfunc
211 .Lfunc_end3:
212 .size main, .Lfunc_end3-main
213 # -- End function
214 .type f1.beenhere,@object # @f1.beenhere
215 .section .bss.f1.beenhere,"aw",@nobits
216 .p2align 2
217 f1.beenhere:
218 .int32 0 # 0x0
219 .size f1.beenhere, 4
220
221
222 .ident "clang version 6.0.0 (https://llvm.googlesource.com/clang.git a1774cccdccfa673c057f93ccf23bc2d8cb04932) (https://llvm.googlesource.com/llvm.git fc50e1c6121255333bc42d6faf2b524c074eae25)"
223 .functype abort, void
224 .functype exit, void, i32