forked from WebAssembly/binaryen
/
921113-1.c.s
194 lines (186 loc) · 5.32 KB
/
921113-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
182
183
184
185
186
187
188
189
190
191
192
193
194
.text
.file "/usr/local/google/home/dschuff/s/wasm-waterfall/src/work/gcc/gcc/testsuite/gcc.c-torture/execute/921113-1.c"
.section .text.w,"ax",@progbits
.hidden w
.globl w
.type w,@function
w: # @w
.param f32, f32
.result i32
.local i32
# BB#0: # %entry
copy_local $push0=, $2
# fallthrough-return: $pop0
.endfunc
.Lfunc_end0:
.size w, .Lfunc_end0-w
.section .text.f1,"ax",@progbits
.hidden f1
.globl f1
.type f1,@function
f1: # @f1
.param f32, f32
.result i32
.local i32
# BB#0: # %entry
block
f32.const $push2=, 0x0p0
f32.ne $push0=, $0, $pop2
br_if 0, $pop0 # 0: down to label0
# BB#1: # %entry
f32.const $push3=, 0x0p0
f32.ne $push1=, $1, $pop3
br_if 0, $pop1 # 0: down to label0
# BB#2: # %if.end
return $2
.LBB1_3: # %if.then
end_block # label0:
call abort@FUNCTION
unreachable
.endfunc
.Lfunc_end1:
.size f1, .Lfunc_end1-f1
.section .text.f2,"ax",@progbits
.hidden f2
.globl f2
.type f2,@function
f2: # @f2
.param f32, f32
.result i32
.local i32
# BB#0: # %entry
block
f32.const $push2=, 0x1p0
f32.ne $push0=, $0, $pop2
br_if 0, $pop0 # 0: down to label1
# BB#1: # %entry
f32.const $push3=, 0x1p0
f32.ne $push1=, $1, $pop3
br_if 0, $pop1 # 0: down to label1
# BB#2: # %if.end
return $2
.LBB2_3: # %if.then
end_block # label1:
call abort@FUNCTION
unreachable
.endfunc
.Lfunc_end2:
.size f2, .Lfunc_end2-f2
.section .text.gitter,"ax",@progbits
.hidden gitter
.globl gitter
.type gitter,@function
gitter: # @gitter
.param i32, i32, i32, i32, i32, f32
.result i32
.local f32, f64, f64
# BB#0: # %entry
block
f32.load $push1=, 0($4)
f32.const $push23=, 0x0p0
f32.ne $push2=, $pop1, $pop23
br_if 0, $pop2 # 0: down to label2
# BB#1: # %entry
f32.load $push0=, 4($4)
f32.const $push24=, 0x0p0
f32.ne $push3=, $pop0, $pop24
br_if 0, $pop3 # 0: down to label2
# BB#2: # %f1.exit
f32.load $push5=, 8($4)
f32.const $push25=, 0x1p0
f32.ne $push6=, $pop5, $pop25
br_if 0, $pop6 # 0: down to label2
# BB#3: # %f1.exit
i32.const $push7=, 12
i32.add $push8=, $4, $pop7
f32.load $push4=, 0($pop8)
f32.const $push26=, 0x1p0
f32.ne $push9=, $pop4, $pop26
br_if 0, $pop9 # 0: down to label2
# BB#4: # %f2.exit
i32.const $push10=, 0
i32.store 0($3), $pop10
block
f32.load $push28=, 0($1)
tee_local $push27=, $6=, $pop28
f32.const $push11=, 0x0p0
f32.gt $push12=, $pop27, $pop11
f32.ne $push13=, $6, $6
i32.or $push14=, $pop12, $pop13
br_if 0, $pop14 # 0: down to label3
# BB#5: # %if.then
f64.promote/f32 $push32=, $6
tee_local $push31=, $8=, $pop32
f64.promote/f32 $push15=, $5
f64.const $push16=, 0x1p-1
f64.mul $push30=, $pop15, $pop16
tee_local $push29=, $7=, $pop30
f64.gt $push17=, $pop31, $pop29
f64.ne $push19=, $8, $8
f64.ne $push18=, $7, $7
i32.or $push20=, $pop19, $pop18
i32.or $push21=, $pop17, $pop20
br_if 0, $pop21 # 0: down to label3
# BB#6: # %if.then15
i32.const $push22=, 1065353216
i32.store 0($2), $pop22
.LBB3_7: # %if.end18
end_block # label3:
return $4
.LBB3_8: # %if.then.i32
end_block # label2:
call abort@FUNCTION
unreachable
.endfunc
.Lfunc_end3:
.size gitter, .Lfunc_end3-gitter
.section .text.main,"ax",@progbits
.hidden main
.globl main
.type main,@function
main: # @main
.result i32
.local i32
# BB#0: # %entry
i32.const $push7=, 0
i32.const $push4=, 0
i32.load $push5=, __stack_pointer($pop4)
i32.const $push6=, 16
i32.sub $push13=, $pop5, $pop6
tee_local $push12=, $0=, $pop13
i32.store __stack_pointer($pop7), $pop12
i32.const $push2=, pos
i32.const $push8=, 8
i32.add $push9=, $0, $pop8
i32.const $push10=, 12
i32.add $push11=, $0, $pop10
i32.const $push1=, limit
f32.const $push0=, 0x1p0
i32.call $drop=, gitter@FUNCTION, $0, $pop2, $pop9, $pop11, $pop1, $pop0
i32.const $push3=, 0
call exit@FUNCTION, $pop3
unreachable
.endfunc
.Lfunc_end4:
.size main, .Lfunc_end4-main
.hidden pos # @pos
.type pos,@object
.section .bss.pos,"aw",@nobits
.globl pos
.p2align 2
pos:
.skip 8
.size pos, 8
.hidden limit # @limit
.type limit,@object
.section .data.limit,"aw",@progbits
.globl limit
.p2align 4
limit:
.skip 8
.int32 1065353216 # float 1
.int32 1065353216 # float 1
.size limit, 16
.ident "clang version 4.0.0 (trunk 283460) (llvm/trunk 283507)"
.functype abort, void
.functype exit, void, i32