forked from WebAssembly/binaryen
/
20050224-1.c.s
181 lines (172 loc) · 5.22 KB
/
20050224-1.c.s
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
.text
.file "/usr/local/google/home/dschuff/s/wasm-waterfall/src/work/gcc/gcc/testsuite/gcc.c-torture/execute/20050224-1.c"
.section .text.foo,"ax",@progbits
.hidden foo
.globl foo
.type foo,@function
foo: # @foo
.param i32, i32, i32
# BB#0: # %entry
block
i32.const $push0=, 245
i32.ne $push1=, $0, $pop0
br_if 0, $pop1 # 0: down to label0
# BB#1: # %entry
i32.const $push2=, 36
i32.ne $push3=, $1, $pop2
br_if 0, $pop3 # 0: down to label0
# BB#2: # %entry
i32.const $push4=, 444
i32.ne $push5=, $2, $pop4
br_if 0, $pop5 # 0: down to label0
# BB#3: # %if.end
return
.LBB0_4: # %if.then
end_block # label0:
call abort@FUNCTION
unreachable
.endfunc
.Lfunc_end0:
.size foo, .Lfunc_end0-foo
.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 $8=, 0
block
i32.const $push18=, 0
i32.load $push17=, a($pop18)
tee_local $push16=, $5=, $pop17
i32.const $push15=, 0
i32.load $push14=, b($pop15)
tee_local $push13=, $0=, $pop14
i32.ge_u $push0=, $pop16, $pop13
br_if 0, $pop0 # 0: down to label1
# BB#1: # %for.body.lr.ph
i32.const $push22=, 0
i32.load $4=, f($pop22)
i32.const $push21=, 0
i32.load $3=, e($pop21)
i32.const $push20=, 0
i32.load $2=, d($pop20)
i32.const $push19=, 0
i32.load $1=, c($pop19)
i32.const $7=, 0
i32.const $6=, 0
.LBB1_2: # %for.body
# =>This Inner Loop Header: Depth=1
loop # label2:
block
block
i32.ge_u $push1=, $5, $1
br_if 0, $pop1 # 0: down to label4
# BB#3: # %if.then
# in Loop: Header=BB1_2 Depth=1
i32.const $push23=, 1
i32.add $6=, $6, $pop23
br 1 # 1: down to label3
.LBB1_4: # %if.else
# in Loop: Header=BB1_2 Depth=1
end_block # label4:
block
i32.lt_u $push2=, $5, $2
br_if 0, $pop2 # 0: down to label5
# BB#5: # %if.else
# in Loop: Header=BB1_2 Depth=1
i32.ge_u $push3=, $5, $3
br_if 0, $pop3 # 0: down to label5
# BB#6: # %if.then4
# in Loop: Header=BB1_2 Depth=1
i32.const $push24=, 1
i32.add $8=, $8, $pop24
br 1 # 1: down to label3
.LBB1_7: # %if.else6
# in Loop: Header=BB1_2 Depth=1
end_block # label5:
i32.lt_u $push4=, $5, $4
i32.add $7=, $pop4, $7
.LBB1_8: # %for.inc
# in Loop: Header=BB1_2 Depth=1
end_block # label3:
i32.const $push27=, 4096
i32.add $push26=, $5, $pop27
tee_local $push25=, $5=, $pop26
i32.lt_u $push5=, $pop25, $0
br_if 0, $pop5 # 0: up to label2
# BB#9: # %for.end
end_loop
i32.const $push6=, 444
i32.ne $push7=, $6, $pop6
br_if 0, $pop7 # 0: down to label1
# BB#10: # %for.end
i32.const $push8=, 245
i32.ne $push9=, $7, $pop8
br_if 0, $pop9 # 0: down to label1
# BB#11: # %for.end
i32.const $push10=, 36
i32.ne $push11=, $8, $pop10
br_if 0, $pop11 # 0: down to label1
# BB#12: # %foo.exit
i32.const $push12=, 0
return $pop12
.LBB1_13: # %if.then.i
end_block # label1:
call abort@FUNCTION
unreachable
.endfunc
.Lfunc_end1:
.size main, .Lfunc_end1-main
.hidden a # @a
.type a,@object
.section .data.a,"aw",@progbits
.globl a
.p2align 2
a:
.int32 3221225472 # 0xc0000000
.size a, 4
.hidden b # @b
.type b,@object
.section .data.b,"aw",@progbits
.globl b
.p2align 2
b:
.int32 3489660928 # 0xd0000000
.size b, 4
.hidden c # @c
.type c,@object
.section .data.c,"aw",@progbits
.globl c
.p2align 2
c:
.int32 3223042392 # 0xc01bb958
.size c, 4
.hidden d # @d
.type d,@object
.section .data.d,"aw",@progbits
.globl d
.p2align 2
d:
.int32 3223732224 # 0xc0264000
.size d, 4
.hidden e # @e
.type e,@object
.section .data.e,"aw",@progbits
.globl e
.p2align 2
e:
.int32 3223879680 # 0xc0288000
.size e, 4
.hidden f # @f
.type f,@object
.section .data.f,"aw",@progbits
.globl f
.p2align 2
f:
.int32 3224191864 # 0xc02d4378
.size f, 4
.ident "clang version 4.0.0 (trunk 283460) (llvm/trunk 283507)"
.functype abort, void