Debian Codegraph @

tests/cli/simd.wast

raw
1 ;; RUN: wast --assert default --snapshot tests/snapshots %
2
3 (module
4 (type (;0;) (func (result v128)))
5 (func (;0;) (type 0) (result v128)
6 i32.const 4
7 v128.load)
8 (func (;1;) (type 0) (result v128)
9 i32.const 4
10 v128.const i32x4 0x11223344 0x55667788 0x99aabbcc 0xddeeff00
11 v128.store
12 i32.const 4
13 v128.load)
14 (func (;2;) (type 0) (result v128)
15 v128.const i32x4 0x0000789a 0xff880330 0x0000ffff 0x0000017f
16 f64.const 0x1.2p+2 (;=4.5;)
17 f64x2.replace_lane 0)
18 (func (;3;) (type 0) (result v128)
19 v128.const i32x4 0xff00ff01 0xff00ff0f 0xff00ffff 0xff00ff7f
20 v128.const i32x4 0x00550055 0x00550055 0x00550055 0x00550155
21 i8x16.shuffle 16 1 18 3 20 5 22 7 24 9 26 11 28 13 30 15)
22
23 (func
24 i32.const 0 v128.load32_zero drop
25 i32.const 0 v128.load64_zero drop)
26
27 ;; Where a result is produced, this uses i8x16.neg and i32.eqz to check that
28 ;; a value of the right type is produced
29 (func
30
31 v128.const i32x4 0 0 0 0
32 v128.const i32x4 0 0 0 0
33 i16x8.extmul_low_i8x16_s
34 i8x16.neg
35 drop
36
37 v128.const i32x4 0 0 0 0
38 v128.const i32x4 0 0 0 0
39 i16x8.extmul_high_i8x16_s
40 i8x16.neg
41 drop
42
43 v128.const i32x4 0 0 0 0
44 v128.const i32x4 0 0 0 0
45 i16x8.extmul_low_i8x16_u
46 i8x16.neg
47 drop
48
49 v128.const i32x4 0 0 0 0
50 v128.const i32x4 0 0 0 0
51 i16x8.extmul_high_i8x16_u
52 i8x16.neg
53 drop
54
55 v128.const i32x4 0 0 0 0
56 v128.const i32x4 0 0 0 0
57 i32x4.extmul_low_i16x8_s
58 i8x16.neg
59 drop
60
61 v128.const i32x4 0 0 0 0
62 v128.const i32x4 0 0 0 0
63 i32x4.extmul_low_i16x8_u
64 i8x16.neg
65 drop
66
67 v128.const i32x4 0 0 0 0
68 v128.const i32x4 0 0 0 0
69 i32x4.extmul_high_i16x8_s
70 i8x16.neg
71 drop
72
73 v128.const i32x4 0 0 0 0
74 v128.const i32x4 0 0 0 0
75 i32x4.extmul_high_i16x8_u
76 i8x16.neg
77 drop
78
79 v128.const i32x4 0 0 0 0
80 v128.const i32x4 0 0 0 0
81 i64x2.extmul_low_i32x4_s
82 i8x16.neg
83 drop
84
85 v128.const i32x4 0 0 0 0
86 v128.const i32x4 0 0 0 0
87 i64x2.extmul_low_i32x4_u
88 i8x16.neg
89 drop
90
91 v128.const i32x4 0 0 0 0
92 v128.const i32x4 0 0 0 0
93 i64x2.extmul_high_i32x4_s
94 i8x16.neg
95 drop
96
97 v128.const i32x4 0 0 0 0
98 v128.const i32x4 0 0 0 0
99 i64x2.extmul_high_i32x4_u
100 i8x16.neg
101 drop
102
103 i32.const 0
104 v128.const i32x4 1 2 3 4
105 v128.load8_lane 15
106 i8x16.neg
107 drop
108
109 i32.const 0
110 v128.const i32x4 1 2 3 4
111 v128.load16_lane 7
112 i8x16.neg
113 drop
114
115 i32.const 0
116 v128.const i32x4 1 2 3 4
117 v128.load32_lane 3
118 i8x16.neg
119 drop
120
121 i32.const 0
122 v128.const i32x4 1 2 3 4
123 v128.load64_lane 1
124 i8x16.neg
125 drop
126
127 i32.const 0
128 v128.const i32x4 1 2 3 4
129 v128.store8_lane 15
130
131 i32.const 0
132 v128.const i32x4 1 2 3 4
133 v128.store16_lane 7
134
135 i32.const 0
136 v128.const i32x4 1 2 3 4
137 v128.store32_lane 3
138
139 i32.const 0
140 v128.const i32x4 1 2 3 4
141 v128.store64_lane 1
142
143 v128.const i32x4 1 2 3 4
144 v128.any_true
145 i32.eqz
146 drop
147
148 v128.const i32x4 1 2 3 4
149 i8x16.all_true
150 i32.eqz
151 drop
152
153 v128.const i32x4 1 2 3 4
154 i16x8.all_true
155 i32.eqz
156 drop
157
158 v128.const i32x4 1 2 3 4
159 i32x4.all_true
160 i32.eqz
161 drop
162
163 v128.const i32x4 1 2 3 4
164 i64x2.all_true
165 i32.eqz
166 drop
167
168 v128.const i64x2 1 2
169 i64x2.bitmask
170 i32.eqz
171 drop
172
173 v128.const i32x4 0 0 0 0
174 i64x2.extend_low_i32x4_s
175 i8x16.neg
176 drop
177
178 v128.const i32x4 0 0 0 0
179 i64x2.extend_high_i32x4_s
180 i8x16.neg
181 drop
182
183 v128.const i32x4 0 0 0 0
184 i64x2.extend_low_i32x4_u
185 i8x16.neg
186 drop
187
188 v128.const i32x4 0 0 0 0
189 i64x2.extend_high_i32x4_u
190 i8x16.neg
191 drop
192
193 v128.const i32x4 0 0 0 0
194 v128.const i32x4 0 0 0 0
195 i64x2.eq
196 i8x16.neg
197 drop
198
199 v128.const i32x4 0 0 0 0
200 v128.const i32x4 0 0 0 0
201 i64x2.ne
202 i8x16.neg
203 drop
204
205 v128.const i32x4 0 0 0 0
206 v128.const i32x4 0 0 0 0
207 i64x2.lt_s
208 i8x16.neg
209 drop
210
211 v128.const i32x4 0 0 0 0
212 v128.const i32x4 0 0 0 0
213 i64x2.gt_s
214 i8x16.neg
215 drop
216
217 v128.const i32x4 0 0 0 0
218 v128.const i32x4 0 0 0 0
219 i64x2.le_s
220 i8x16.neg
221 drop
222
223 v128.const i32x4 0 0 0 0
224 v128.const i32x4 0 0 0 0
225 i64x2.ge_s
226 i8x16.neg
227 drop
228
229 v128.const i32x4 0 0 0 0
230 v128.const i32x4 0 0 0 0
231 i16x8.q15mulr_sat_s
232 i8x16.neg
233 drop
234
235 v128.const i32x4 0 0 0 0
236 f32x4.demote_f64x2_zero
237 i8x16.neg
238 drop
239
240 v128.const i32x4 0 0 0 0
241 f64x2.promote_low_f32x4
242 i8x16.neg
243 drop
244
245 v128.const i32x4 0 0 0 0
246 f64x2.convert_low_i32x4_s
247 i8x16.neg
248 drop
249
250 v128.const i32x4 0 0 0 0
251 f64x2.convert_low_i32x4_u
252 i8x16.neg
253 drop
254
255 v128.const i32x4 0 0 0 0
256 i32x4.trunc_sat_f64x2_s_zero
257 i8x16.neg
258 drop
259
260 v128.const i32x4 0 0 0 0
261 i32x4.trunc_sat_f64x2_u_zero
262 i8x16.neg
263 drop
264
265 v128.const i32x4 0 0 0 0
266 i64x2.abs
267 i8x16.neg
268 drop
269
270 v128.const i32x4 0 0 0 0
271 i8x16.popcnt
272 i8x16.neg
273 drop
274
275 v128.const i32x4 0 0 0 0
276 i16x8.extadd_pairwise_i8x16_s
277 i8x16.neg
278 drop
279
280 v128.const i32x4 0 0 0 0
281 i16x8.extadd_pairwise_i8x16_u
282 i8x16.neg
283 drop
284
285 v128.const i32x4 0 0 0 0
286 i32x4.extadd_pairwise_i16x8_s
287 i8x16.neg
288 drop
289
290 v128.const i32x4 0 0 0 0
291 i32x4.extadd_pairwise_i16x8_u
292 i8x16.neg
293 drop
294
295 )
296
297 (memory (;0;) 1)
298 (export "v128_load_0" (func 0))
299 (export "v128_store_0" (func 1))
300 (export "func_f64x2_replace_lane_0" (func 2))
301 (export "func_i8x16_shuffle_0" (func 3))
302 (data (;0;) (i32.const 0) "\ff\ff\ff\ff")
303 (data (;1;) (i32.const 4) "\00\00\ceA")
304 (data (;2;) (i32.const 8) "\00\00\00\00\00\ff\8f@")
305 (data (;3;) (i32.const 16) "\ff\ff\ff\ff\ff\ff\ff\ff"))