forked from WebAssembly/binaryen
/
i32.s
256 lines (232 loc) · 4.17 KB
/
i32.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
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
.text
.file "/s/llvm-upstream/llvm/test/CodeGen/WebAssembly/i32.ll"
.globl add32
.type add32,@function
add32:
.param i32, i32
.result i32
i32.add $push0=, $0, $1
return $pop0
.endfunc
.Lfunc_end0:
.size add32, .Lfunc_end0-add32
.globl sub32
.type sub32,@function
sub32:
.param i32, i32
.result i32
i32.sub $push0=, $0, $1
return $pop0
.endfunc
.Lfunc_end1:
.size sub32, .Lfunc_end1-sub32
.globl mul32
.type mul32,@function
mul32:
.param i32, i32
.result i32
i32.mul $push0=, $0, $1
return $pop0
.endfunc
.Lfunc_end2:
.size mul32, .Lfunc_end2-mul32
.globl sdiv32
.type sdiv32,@function
sdiv32:
.param i32, i32
.result i32
i32.div_s $push0=, $0, $1
return $pop0
.endfunc
.Lfunc_end3:
.size sdiv32, .Lfunc_end3-sdiv32
.globl udiv32
.type udiv32,@function
udiv32:
.param i32, i32
.result i32
i32.div_u $push0=, $0, $1
return $pop0
.endfunc
.Lfunc_end4:
.size udiv32, .Lfunc_end4-udiv32
.globl srem32
.type srem32,@function
srem32:
.param i32, i32
.result i32
i32.rem_s $push0=, $0, $1
return $pop0
.endfunc
.Lfunc_end5:
.size srem32, .Lfunc_end5-srem32
.globl urem32
.type urem32,@function
urem32:
.param i32, i32
.result i32
i32.rem_u $push0=, $0, $1
return $pop0
.endfunc
.Lfunc_end6:
.size urem32, .Lfunc_end6-urem32
.globl and32
.type and32,@function
and32:
.param i32, i32
.result i32
i32.and $push0=, $0, $1
return $pop0
.endfunc
.Lfunc_end7:
.size and32, .Lfunc_end7-and32
.globl or32
.type or32,@function
or32:
.param i32, i32
.result i32
i32.or $push0=, $0, $1
return $pop0
.endfunc
.Lfunc_end8:
.size or32, .Lfunc_end8-or32
.globl xor32
.type xor32,@function
xor32:
.param i32, i32
.result i32
i32.xor $push0=, $0, $1
return $pop0
.endfunc
.Lfunc_end9:
.size xor32, .Lfunc_end9-xor32
.globl shl32
.type shl32,@function
shl32:
.param i32, i32
.result i32
i32.shl $push0=, $0, $1
return $pop0
.endfunc
.Lfunc_end10:
.size shl32, .Lfunc_end10-shl32
.globl shr32
.type shr32,@function
shr32:
.param i32, i32
.result i32
i32.shr_u $push0=, $0, $1
return $pop0
.endfunc
.Lfunc_end11:
.size shr32, .Lfunc_end11-shr32
.globl sar32
.type sar32,@function
sar32:
.param i32, i32
.result i32
i32.shr_s $push0=, $0, $1
return $pop0
.endfunc
.Lfunc_end12:
.size sar32, .Lfunc_end12-sar32
.globl clz32
.type clz32,@function
clz32:
.param i32
.result i32
i32.clz $push0=, $0
return $pop0
.endfunc
.Lfunc_end13:
.size clz32, .Lfunc_end13-clz32
.globl clz32_zero_undef
.type clz32_zero_undef,@function
clz32_zero_undef:
.param i32
.result i32
i32.clz $push0=, $0
return $pop0
.endfunc
.Lfunc_end14:
.size clz32_zero_undef, .Lfunc_end14-clz32_zero_undef
.globl ctz32
.type ctz32,@function
ctz32:
.param i32
.result i32
i32.ctz $push0=, $0
return $pop0
.endfunc
.Lfunc_end15:
.size ctz32, .Lfunc_end15-ctz32
.globl ctz32_zero_undef
.type ctz32_zero_undef,@function
ctz32_zero_undef:
.param i32
.result i32
i32.ctz $push0=, $0
return $pop0
.endfunc
.Lfunc_end16:
.size ctz32_zero_undef, .Lfunc_end16-ctz32_zero_undef
.globl popcnt32
.type popcnt32,@function
popcnt32:
.param i32
.result i32
i32.popcnt $push0=, $0
return $pop0
.endfunc
.Lfunc_end17:
.size popcnt32, .Lfunc_end17-popcnt32
.globl eqz32
.type eqz32,@function
eqz32:
.param i32
.result i32
i32.eqz $push0=, $0
return $pop0
.endfunc
.Lfunc_end18:
.size eqz32, .Lfunc_end18-eqz32
.globl rotl
.type rotl,@function
rotl:
.param i32, i32
.result i32
i32.rotl $push0=, $0, $1
return $pop0
.endfunc
.Lfunc_end19:
.size rotl, .Lfunc_end19-rotl
.globl masked_rotl
.type masked_rotl,@function
masked_rotl:
.param i32, i32
.result i32
i32.rotl $push0=, $0, $1
return $pop0
.endfunc
.Lfunc_end20:
.size masked_rotl, .Lfunc_end20-masked_rotl
.globl rotr
.type rotr,@function
rotr:
.param i32, i32
.result i32
i32.rotr $push0=, $0, $1
return $pop0
.endfunc
.Lfunc_end21:
.size rotr, .Lfunc_end21-rotr
.globl masked_rotr
.type masked_rotr,@function
masked_rotr:
.param i32, i32
.result i32
i32.rotr $push0=, $0, $1
return $pop0
.endfunc
.Lfunc_end22:
.size masked_rotr, .Lfunc_end22-masked_rotr