]> git.proxmox.com Git - rustc.git/blob - src/binaryen/test/torture-s/921113-1.c.s
New upstream version 1.23.0+dfsg1
[rustc.git] / src / binaryen / test / torture-s / 921113-1.c.s
1 .text
2 .file "921113-1.c"
3 .section .text.w,"ax",@progbits
4 .hidden w # -- Begin function w
5 .globl w
6 .type w,@function
7 w: # @w
8 .param f32, f32
9 .result i32
10 .local i32
11 # BB#0: # %entry
12 copy_local $push0=, $2
13 # fallthrough-return: $pop0
14 .endfunc
15 .Lfunc_end0:
16 .size w, .Lfunc_end0-w
17 # -- End function
18 .section .text.f1,"ax",@progbits
19 .hidden f1 # -- Begin function f1
20 .globl f1
21 .type f1,@function
22 f1: # @f1
23 .param f32, f32
24 .result i32
25 .local i32
26 # BB#0: # %entry
27 block
28 f32.const $push2=, 0x0p0
29 f32.ne $push0=, $0, $pop2
30 br_if 0, $pop0 # 0: down to label0
31 # BB#1: # %entry
32 f32.const $push3=, 0x0p0
33 f32.ne $push1=, $1, $pop3
34 br_if 0, $pop1 # 0: down to label0
35 # BB#2: # %if.end
36 return $2
37 .LBB1_3: # %if.then
38 end_block # label0:
39 call abort@FUNCTION
40 unreachable
41 .endfunc
42 .Lfunc_end1:
43 .size f1, .Lfunc_end1-f1
44 # -- End function
45 .section .text.f2,"ax",@progbits
46 .hidden f2 # -- Begin function f2
47 .globl f2
48 .type f2,@function
49 f2: # @f2
50 .param f32, f32
51 .result i32
52 .local i32
53 # BB#0: # %entry
54 block
55 f32.const $push2=, 0x1p0
56 f32.ne $push0=, $0, $pop2
57 br_if 0, $pop0 # 0: down to label1
58 # BB#1: # %entry
59 f32.const $push3=, 0x1p0
60 f32.ne $push1=, $1, $pop3
61 br_if 0, $pop1 # 0: down to label1
62 # BB#2: # %if.end
63 return $2
64 .LBB2_3: # %if.then
65 end_block # label1:
66 call abort@FUNCTION
67 unreachable
68 .endfunc
69 .Lfunc_end2:
70 .size f2, .Lfunc_end2-f2
71 # -- End function
72 .section .text.gitter,"ax",@progbits
73 .hidden gitter # -- Begin function gitter
74 .globl gitter
75 .type gitter,@function
76 gitter: # @gitter
77 .param i32, i32, i32, i32, i32, f32
78 .result i32
79 .local f32, f64, f64
80 # BB#0: # %entry
81 block
82 f32.load $push1=, 0($4)
83 f32.const $push23=, 0x0p0
84 f32.ne $push2=, $pop1, $pop23
85 br_if 0, $pop2 # 0: down to label2
86 # BB#1: # %entry
87 f32.load $push0=, 4($4)
88 f32.const $push24=, 0x0p0
89 f32.ne $push3=, $pop0, $pop24
90 br_if 0, $pop3 # 0: down to label2
91 # BB#2: # %f1.exit
92 f32.load $push5=, 8($4)
93 f32.const $push25=, 0x1p0
94 f32.ne $push6=, $pop5, $pop25
95 br_if 0, $pop6 # 0: down to label2
96 # BB#3: # %f1.exit
97 i32.const $push7=, 12
98 i32.add $push8=, $4, $pop7
99 f32.load $push4=, 0($pop8)
100 f32.const $push26=, 0x1p0
101 f32.ne $push9=, $pop4, $pop26
102 br_if 0, $pop9 # 0: down to label2
103 # BB#4: # %f2.exit
104 i32.const $push10=, 0
105 i32.store 0($3), $pop10
106 block
107 f32.load $push28=, 0($1)
108 tee_local $push27=, $6=, $pop28
109 f32.const $push11=, 0x0p0
110 f32.gt $push12=, $pop27, $pop11
111 f32.ne $push13=, $6, $6
112 i32.or $push14=, $pop12, $pop13
113 br_if 0, $pop14 # 0: down to label3
114 # BB#5: # %if.then
115 f64.promote/f32 $push15=, $5
116 f64.const $push16=, 0x1p-1
117 f64.mul $push32=, $pop15, $pop16
118 tee_local $push31=, $7=, $pop32
119 f64.promote/f32 $push30=, $6
120 tee_local $push29=, $8=, $pop30
121 f64.lt $push17=, $pop31, $pop29
122 f64.ne $push18=, $7, $7
123 f64.ne $push19=, $8, $8
124 i32.or $push20=, $pop18, $pop19
125 i32.or $push21=, $pop17, $pop20
126 br_if 0, $pop21 # 0: down to label3
127 # BB#6: # %if.then15
128 i32.const $push22=, 1065353216
129 i32.store 0($2), $pop22
130 .LBB3_7: # %if.end18
131 end_block # label3:
132 return $4
133 .LBB3_8: # %if.then.i
134 end_block # label2:
135 call abort@FUNCTION
136 unreachable
137 .endfunc
138 .Lfunc_end3:
139 .size gitter, .Lfunc_end3-gitter
140 # -- End function
141 .section .text.main,"ax",@progbits
142 .hidden main # -- Begin function main
143 .globl main
144 .type main,@function
145 main: # @main
146 .result i32
147 .local i32
148 # BB#0: # %entry
149 i32.const $push7=, 0
150 i32.const $push5=, 0
151 i32.load $push4=, __stack_pointer($pop5)
152 i32.const $push6=, 16
153 i32.sub $push13=, $pop4, $pop6
154 tee_local $push12=, $0=, $pop13
155 i32.store __stack_pointer($pop7), $pop12
156 i32.const $push2=, pos
157 i32.const $push8=, 8
158 i32.add $push9=, $0, $pop8
159 i32.const $push10=, 12
160 i32.add $push11=, $0, $pop10
161 i32.const $push1=, limit
162 f32.const $push0=, 0x1p0
163 i32.call $drop=, gitter@FUNCTION, $0, $pop2, $pop9, $pop11, $pop1, $pop0
164 i32.const $push3=, 0
165 call exit@FUNCTION, $pop3
166 unreachable
167 .endfunc
168 .Lfunc_end4:
169 .size main, .Lfunc_end4-main
170 # -- End function
171 .hidden pos # @pos
172 .type pos,@object
173 .section .bss.pos,"aw",@nobits
174 .globl pos
175 .p2align 2
176 pos:
177 .skip 8
178 .size pos, 8
179
180 .hidden limit # @limit
181 .type limit,@object
182 .section .data.limit,"aw",@progbits
183 .globl limit
184 .p2align 4
185 limit:
186 .skip 8
187 .int32 1065353216 # float 1
188 .int32 1065353216 # float 1
189 .size limit, 16
190
191
192 .ident "clang version 6.0.0 (https://llvm.googlesource.com/clang.git a1774cccdccfa673c057f93ccf23bc2d8cb04932) (https://llvm.googlesource.com/llvm.git fc50e1c6121255333bc42d6faf2b524c074eae25)"
193 .functype abort, void
194 .functype exit, void, i32