Debian Codegraph @

gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvfcvth.c

raw
1 /* { dg-options "-mlasx -w -fno-strict-aliasing" } */
2 #include "../simd_correctness_check.h"
3 #include <lasxintrin.h>
4
5 int
6 main ()
7 {
8 __m256i __m256i_op0, __m256i_op1, __m256i_op2, __m256i_out, __m256i_result;
9 __m256 __m256_op0, __m256_op1, __m256_op2, __m256_out, __m256_result;
10 __m256d __m256d_op0, __m256d_op1, __m256d_op2, __m256d_out, __m256d_result;
11
12 int int_op0, int_op1, int_op2, int_out, int_result, i = 1, fail;
13 long int long_op0, long_op1, long_op2, lont_out, lont_result;
14 long int long_int_out, long_int_result;
15 unsigned int unsigned_int_out, unsigned_int_result;
16 unsigned long int unsigned_long_int_out, unsigned_long_int_result;
17
18 *((int *)&__m256_op0[7]) = 0x00000000;
19 *((int *)&__m256_op0[6]) = 0x00000000;
20 *((int *)&__m256_op0[5]) = 0x00000000;
21 *((int *)&__m256_op0[4]) = 0x00000000;
22 *((int *)&__m256_op0[3]) = 0x00000000;
23 *((int *)&__m256_op0[2]) = 0x00000000;
24 *((int *)&__m256_op0[1]) = 0x00000000;
25 *((int *)&__m256_op0[0]) = 0x00000000;
26 *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000;
27 *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000;
28 *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000;
29 *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000;
30 __m256d_out = __lasx_xvfcvth_d_s (__m256_op0);
31 ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out);
32
33 *((int *)&__m256_op0[7]) = 0x00000000;
34 *((int *)&__m256_op0[6]) = 0x00000000;
35 *((int *)&__m256_op0[5]) = 0x00000000;
36 *((int *)&__m256_op0[4]) = 0x00000000;
37 *((int *)&__m256_op0[3]) = 0x00000000;
38 *((int *)&__m256_op0[2]) = 0x00000000;
39 *((int *)&__m256_op0[1]) = 0x00000000;
40 *((int *)&__m256_op0[0]) = 0x00000000;
41 *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000;
42 *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000;
43 *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000;
44 *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000;
45 __m256d_out = __lasx_xvfcvth_d_s (__m256_op0);
46 ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out);
47
48 *((int *)&__m256_op0[7]) = 0x0000aaaa;
49 *((int *)&__m256_op0[6]) = 0x00008bfe;
50 *((int *)&__m256_op0[5]) = 0x0000aaaa;
51 *((int *)&__m256_op0[4]) = 0x0000aaaa;
52 *((int *)&__m256_op0[3]) = 0x0000aaaa;
53 *((int *)&__m256_op0[2]) = 0x00008bfe;
54 *((int *)&__m256_op0[1]) = 0x0000aaaa;
55 *((int *)&__m256_op0[0]) = 0x0000aaaa;
56 *((unsigned long *)&__m256d_result[3]) = 0x3795554000000000;
57 *((unsigned long *)&__m256d_result[2]) = 0x37917fc000000000;
58 *((unsigned long *)&__m256d_result[1]) = 0x3795554000000000;
59 *((unsigned long *)&__m256d_result[0]) = 0x37917fc000000000;
60 __m256d_out = __lasx_xvfcvth_d_s (__m256_op0);
61 ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out);
62
63 *((unsigned long *)&__m256i_op0[3]) = 0x0404010008080808;
64 *((unsigned long *)&__m256i_op0[2]) = 0x0408010008080808;
65 *((unsigned long *)&__m256i_op0[1]) = 0x0404010008080808;
66 *((unsigned long *)&__m256i_op0[0]) = 0x0408010008080808;
67 *((int *)&__m256_result[7]) = 0x38808000;
68 *((int *)&__m256_result[6]) = 0x37800000;
69 *((int *)&__m256_result[5]) = 0x39010000;
70 *((int *)&__m256_result[4]) = 0x39010000;
71 *((int *)&__m256_result[3]) = 0x38808000;
72 *((int *)&__m256_result[2]) = 0x37800000;
73 *((int *)&__m256_result[1]) = 0x39010000;
74 *((int *)&__m256_result[0]) = 0x39010000;
75 __m256_out = __lasx_xvfcvth_s_h (__m256i_op0);
76 ASSERTEQ_32 (__LINE__, __m256_result, __m256_out);
77
78 *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000;
79 *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000;
80 *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000;
81 *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000;
82 *((int *)&__m256_result[7]) = 0x00000000;
83 *((int *)&__m256_result[6]) = 0x00000000;
84 *((int *)&__m256_result[5]) = 0x00000000;
85 *((int *)&__m256_result[4]) = 0x00000000;
86 *((int *)&__m256_result[3]) = 0x00000000;
87 *((int *)&__m256_result[2]) = 0x00000000;
88 *((int *)&__m256_result[1]) = 0x00000000;
89 *((int *)&__m256_result[0]) = 0x00000000;
90 __m256_out = __lasx_xvfcvth_s_h (__m256i_op0);
91 ASSERTEQ_32 (__LINE__, __m256_result, __m256_out);
92
93 *((int *)&__m256_op0[7]) = 0x00000000;
94 *((int *)&__m256_op0[6]) = 0x00000000;
95 *((int *)&__m256_op0[5]) = 0x00000000;
96 *((int *)&__m256_op0[4]) = 0x00000000;
97 *((int *)&__m256_op0[3]) = 0x00000000;
98 *((int *)&__m256_op0[2]) = 0x00000000;
99 *((int *)&__m256_op0[1]) = 0x00000000;
100 *((int *)&__m256_op0[0]) = 0x00000000;
101 *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000;
102 *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000;
103 *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000;
104 *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000;
105 __m256d_out = __lasx_xvfcvth_d_s (__m256_op0);
106 ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out);
107
108 *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000;
109 *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000080;
110 *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000;
111 *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000;
112 *((int *)&__m256_result[7]) = 0x00000000;
113 *((int *)&__m256_result[6]) = 0x00000000;
114 *((int *)&__m256_result[5]) = 0x00000000;
115 *((int *)&__m256_result[4]) = 0x00000000;
116 *((int *)&__m256_result[3]) = 0x00000000;
117 *((int *)&__m256_result[2]) = 0x00000000;
118 *((int *)&__m256_result[1]) = 0x00000000;
119 *((int *)&__m256_result[0]) = 0x00000000;
120 __m256_out = __lasx_xvfcvth_s_h (__m256i_op0);
121 ASSERTEQ_32 (__LINE__, __m256_result, __m256_out);
122
123 *((int *)&__m256_op0[7]) = 0x00000000;
124 *((int *)&__m256_op0[6]) = 0x00000000;
125 *((int *)&__m256_op0[5]) = 0x00000000;
126 *((int *)&__m256_op0[4]) = 0x00000000;
127 *((int *)&__m256_op0[3]) = 0x00000000;
128 *((int *)&__m256_op0[2]) = 0x00000000;
129 *((int *)&__m256_op0[1]) = 0x00000000;
130 *((int *)&__m256_op0[0]) = 0x00000000;
131 *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000;
132 *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000;
133 *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000;
134 *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000;
135 __m256d_out = __lasx_xvfcvth_d_s (__m256_op0);
136 ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out);
137
138 *((int *)&__m256_op0[7]) = 0xffffffff;
139 *((int *)&__m256_op0[6]) = 0xffffffff;
140 *((int *)&__m256_op0[5]) = 0x00000000;
141 *((int *)&__m256_op0[4]) = 0x00000000;
142 *((int *)&__m256_op0[3]) = 0xffffffff;
143 *((int *)&__m256_op0[2]) = 0xffffffff;
144 *((int *)&__m256_op0[1]) = 0x00000000;
145 *((int *)&__m256_op0[0]) = 0x00000000;
146 *((unsigned long *)&__m256d_result[3]) = 0xffffffffe0000000;
147 *((unsigned long *)&__m256d_result[2]) = 0xffffffffe0000000;
148 *((unsigned long *)&__m256d_result[1]) = 0xffffffffe0000000;
149 *((unsigned long *)&__m256d_result[0]) = 0xffffffffe0000000;
150 __m256d_out = __lasx_xvfcvth_d_s (__m256_op0);
151 ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out);
152
153 *((unsigned long *)&__m256i_op0[3]) = 0x8000800080008000;
154 *((unsigned long *)&__m256i_op0[2]) = 0x000100010001fffe;
155 *((unsigned long *)&__m256i_op0[1]) = 0x8000800080008000;
156 *((unsigned long *)&__m256i_op0[0]) = 0x000100010001fffe;
157 *((int *)&__m256_result[7]) = 0x80000000;
158 *((int *)&__m256_result[6]) = 0x80000000;
159 *((int *)&__m256_result[5]) = 0x80000000;
160 *((int *)&__m256_result[4]) = 0x80000000;
161 *((int *)&__m256_result[3]) = 0x80000000;
162 *((int *)&__m256_result[2]) = 0x80000000;
163 *((int *)&__m256_result[1]) = 0x80000000;
164 *((int *)&__m256_result[0]) = 0x80000000;
165 __m256_out = __lasx_xvfcvth_s_h (__m256i_op0);
166 ASSERTEQ_32 (__LINE__, __m256_result, __m256_out);
167
168 *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000;
169 *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000;
170 *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000;
171 *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000100;
172 *((int *)&__m256_result[7]) = 0x00000000;
173 *((int *)&__m256_result[6]) = 0x00000000;
174 *((int *)&__m256_result[5]) = 0x00000000;
175 *((int *)&__m256_result[4]) = 0x00000000;
176 *((int *)&__m256_result[3]) = 0x00000000;
177 *((int *)&__m256_result[2]) = 0x00000000;
178 *((int *)&__m256_result[1]) = 0x00000000;
179 *((int *)&__m256_result[0]) = 0x00000000;
180 __m256_out = __lasx_xvfcvth_s_h (__m256i_op0);
181 ASSERTEQ_32 (__LINE__, __m256_result, __m256_out);
182
183 *((int *)&__m256_op0[7]) = 0x00000000;
184 *((int *)&__m256_op0[6]) = 0x00020006;
185 *((int *)&__m256_op0[5]) = 0x00000000;
186 *((int *)&__m256_op0[4]) = 0x00020006;
187 *((int *)&__m256_op0[3]) = 0x00000000;
188 *((int *)&__m256_op0[2]) = 0x00020006;
189 *((int *)&__m256_op0[1]) = 0x00000000;
190 *((int *)&__m256_op0[0]) = 0x00020006;
191 *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000;
192 *((unsigned long *)&__m256d_result[2]) = 0x37b0003000000000;
193 *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000;
194 *((unsigned long *)&__m256d_result[0]) = 0x37b0003000000000;
195 __m256d_out = __lasx_xvfcvth_d_s (__m256_op0);
196 ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out);
197
198 *((int *)&__m256_op0[7]) = 0xfffffff0;
199 *((int *)&__m256_op0[6]) = 0xfffffff0;
200 *((int *)&__m256_op0[5]) = 0xfffffff0;
201 *((int *)&__m256_op0[4]) = 0xfffffff0;
202 *((int *)&__m256_op0[3]) = 0xfffffff0;
203 *((int *)&__m256_op0[2]) = 0xfffffff0;
204 *((int *)&__m256_op0[1]) = 0xfffffff0;
205 *((int *)&__m256_op0[0]) = 0xfffffff0;
206 *((unsigned long *)&__m256d_result[3]) = 0xfffffffe00000000;
207 *((unsigned long *)&__m256d_result[2]) = 0xfffffffe00000000;
208 *((unsigned long *)&__m256d_result[1]) = 0xfffffffe00000000;
209 *((unsigned long *)&__m256d_result[0]) = 0xfffffffe00000000;
210 __m256d_out = __lasx_xvfcvth_d_s (__m256_op0);
211 ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out);
212
213 *((int *)&__m256_op0[7]) = 0x00000000;
214 *((int *)&__m256_op0[6]) = 0x00000000;
215 *((int *)&__m256_op0[5]) = 0x00000000;
216 *((int *)&__m256_op0[4]) = 0x00000000;
217 *((int *)&__m256_op0[3]) = 0x00000000;
218 *((int *)&__m256_op0[2]) = 0x00000000;
219 *((int *)&__m256_op0[1]) = 0x00000000;
220 *((int *)&__m256_op0[0]) = 0x00000000;
221 *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000;
222 *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000;
223 *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000;
224 *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000;
225 __m256d_out = __lasx_xvfcvtl_d_s (__m256_op0);
226 ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out);
227
228 *((int *)&__m256_op0[7]) = 0xffffffff;
229 *((int *)&__m256_op0[6]) = 0xffffffff;
230 *((int *)&__m256_op0[5]) = 0xffffffff;
231 *((int *)&__m256_op0[4]) = 0xffffffff;
232 *((int *)&__m256_op0[3]) = 0xffffffff;
233 *((int *)&__m256_op0[2]) = 0xffffffff;
234 *((int *)&__m256_op0[1]) = 0xffffffff;
235 *((int *)&__m256_op0[0]) = 0xffffffff;
236 *((unsigned long *)&__m256d_result[3]) = 0xffffffffe0000000;
237 *((unsigned long *)&__m256d_result[2]) = 0xffffffffe0000000;
238 *((unsigned long *)&__m256d_result[1]) = 0xffffffffe0000000;
239 *((unsigned long *)&__m256d_result[0]) = 0xffffffffe0000000;
240 __m256d_out = __lasx_xvfcvtl_d_s (__m256_op0);
241 ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out);
242
243 *((int *)&__m256_op0[7]) = 0x00000000;
244 *((int *)&__m256_op0[6]) = 0x00000000;
245 *((int *)&__m256_op0[5]) = 0x00000000;
246 *((int *)&__m256_op0[4]) = 0x00000000;
247 *((int *)&__m256_op0[3]) = 0x00000000;
248 *((int *)&__m256_op0[2]) = 0x00000000;
249 *((int *)&__m256_op0[1]) = 0x00000000;
250 *((int *)&__m256_op0[0]) = 0x00000000;
251 *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000;
252 *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000;
253 *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000;
254 *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000;
255 __m256d_out = __lasx_xvfcvtl_d_s (__m256_op0);
256 ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out);
257
258 *((int *)&__m256_op0[7]) = 0x00000000;
259 *((int *)&__m256_op0[6]) = 0x00000000;
260 *((int *)&__m256_op0[5]) = 0x00000000;
261 *((int *)&__m256_op0[4]) = 0x00000000;
262 *((int *)&__m256_op0[3]) = 0x00000000;
263 *((int *)&__m256_op0[2]) = 0x00000000;
264 *((int *)&__m256_op0[1]) = 0x00000000;
265 *((int *)&__m256_op0[0]) = 0x00000000;
266 *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000;
267 *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000;
268 *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000;
269 *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000;
270 __m256d_out = __lasx_xvfcvtl_d_s (__m256_op0);
271 ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out);
272
273 *((unsigned long *)&__m256i_op0[3]) = 0xf001000100010001;
274 *((unsigned long *)&__m256i_op0[2]) = 0xf000000000000000;
275 *((unsigned long *)&__m256i_op0[1]) = 0xf001000100010001;
276 *((unsigned long *)&__m256i_op0[0]) = 0xf000000000000000;
277 *((int *)&__m256_result[7]) = 0xc6000000;
278 *((int *)&__m256_result[6]) = 0x00000000;
279 *((int *)&__m256_result[5]) = 0x00000000;
280 *((int *)&__m256_result[4]) = 0x00000000;
281 *((int *)&__m256_result[3]) = 0xc6000000;
282 *((int *)&__m256_result[2]) = 0x00000000;
283 *((int *)&__m256_result[1]) = 0x00000000;
284 *((int *)&__m256_result[0]) = 0x00000000;
285 __m256_out = __lasx_xvfcvtl_s_h (__m256i_op0);
286 ASSERTEQ_32 (__LINE__, __m256_result, __m256_out);
287
288 *((unsigned long *)&__m256i_op0[3]) = 0xc080ffff0049ffd2;
289 *((unsigned long *)&__m256i_op0[2]) = 0x0002ff80ffb70000;
290 *((unsigned long *)&__m256i_op0[1]) = 0x0000fffeffb9ff9d;
291 *((unsigned long *)&__m256i_op0[0]) = 0x00010000002fff9e;
292 *((int *)&__m256_result[7]) = 0x34000000;
293 *((int *)&__m256_result[6]) = 0xfff00000;
294 *((int *)&__m256_result[5]) = 0xfff6e000;
295 *((int *)&__m256_result[4]) = 0x00000000;
296 *((int *)&__m256_result[3]) = 0x33800000;
297 *((int *)&__m256_result[2]) = 0x00000000;
298 *((int *)&__m256_result[1]) = 0x363c0000;
299 *((int *)&__m256_result[0]) = 0xfff3c000;
300 __m256_out = __lasx_xvfcvtl_s_h (__m256i_op0);
301 ASSERTEQ_32 (__LINE__, __m256_result, __m256_out);
302
303 *((int *)&__m256_op0[7]) = 0x00000000;
304 *((int *)&__m256_op0[6]) = 0x00000000;
305 *((int *)&__m256_op0[5]) = 0x00000000;
306 *((int *)&__m256_op0[4]) = 0x00000000;
307 *((int *)&__m256_op0[3]) = 0x00000000;
308 *((int *)&__m256_op0[2]) = 0x00000000;
309 *((int *)&__m256_op0[1]) = 0x00000000;
310 *((int *)&__m256_op0[0]) = 0x00000000;
311 *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000;
312 *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000;
313 *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000;
314 *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000;
315 __m256d_out = __lasx_xvfcvtl_d_s (__m256_op0);
316 ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out);
317
318 *((int *)&__m256_op0[7]) = 0x00000000;
319 *((int *)&__m256_op0[6]) = 0x00000000;
320 *((int *)&__m256_op0[5]) = 0x00000000;
321 *((int *)&__m256_op0[4]) = 0x00000000;
322 *((int *)&__m256_op0[3]) = 0x00000000;
323 *((int *)&__m256_op0[2]) = 0x00000000;
324 *((int *)&__m256_op0[1]) = 0x00000000;
325 *((int *)&__m256_op0[0]) = 0x00000000;
326 *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000;
327 *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000;
328 *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000;
329 *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000;
330 __m256d_out = __lasx_xvfcvtl_d_s (__m256_op0);
331 ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out);
332
333 *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000;
334 *((unsigned long *)&__m256i_op0[2]) = 0x0000000000000000;
335 *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000;
336 *((unsigned long *)&__m256i_op0[0]) = 0x0000000000000000;
337 *((int *)&__m256_result[7]) = 0x00000000;
338 *((int *)&__m256_result[6]) = 0x00000000;
339 *((int *)&__m256_result[5]) = 0x00000000;
340 *((int *)&__m256_result[4]) = 0x00000000;
341 *((int *)&__m256_result[3]) = 0x00000000;
342 *((int *)&__m256_result[2]) = 0x00000000;
343 *((int *)&__m256_result[1]) = 0x00000000;
344 *((int *)&__m256_result[0]) = 0x00000000;
345 __m256_out = __lasx_xvfcvtl_s_h (__m256i_op0);
346 ASSERTEQ_32 (__LINE__, __m256_result, __m256_out);
347
348 *((int *)&__m256_op0[7]) = 0x00000000;
349 *((int *)&__m256_op0[6]) = 0x00000000;
350 *((int *)&__m256_op0[5]) = 0x00000000;
351 *((int *)&__m256_op0[4]) = 0x00000000;
352 *((int *)&__m256_op0[3]) = 0x00000000;
353 *((int *)&__m256_op0[2]) = 0x00000000;
354 *((int *)&__m256_op0[1]) = 0x00000000;
355 *((int *)&__m256_op0[0]) = 0x00000000;
356 *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000;
357 *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000;
358 *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000;
359 *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000;
360 __m256d_out = __lasx_xvfcvtl_d_s (__m256_op0);
361 ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out);
362
363 *((int *)&__m256_op0[7]) = 0x80000000;
364 *((int *)&__m256_op0[6]) = 0x80000000;
365 *((int *)&__m256_op0[5]) = 0x80000000;
366 *((int *)&__m256_op0[4]) = 0xff800000;
367 *((int *)&__m256_op0[3]) = 0x80000000;
368 *((int *)&__m256_op0[2]) = 0x80000000;
369 *((int *)&__m256_op0[1]) = 0x80000000;
370 *((int *)&__m256_op0[0]) = 0xff800000;
371 *((unsigned long *)&__m256d_result[3]) = 0x8000000000000000;
372 *((unsigned long *)&__m256d_result[2]) = 0xfff0000000000000;
373 *((unsigned long *)&__m256d_result[1]) = 0x8000000000000000;
374 *((unsigned long *)&__m256d_result[0]) = 0xfff0000000000000;
375 __m256d_out = __lasx_xvfcvtl_d_s (__m256_op0);
376 ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out);
377
378 *((int *)&__m256_op0[7]) = 0x00000000;
379 *((int *)&__m256_op0[6]) = 0x00000000;
380 *((int *)&__m256_op0[5]) = 0x00000000;
381 *((int *)&__m256_op0[4]) = 0x00000000;
382 *((int *)&__m256_op0[3]) = 0x00000000;
383 *((int *)&__m256_op0[2]) = 0x00000000;
384 *((int *)&__m256_op0[1]) = 0x00000000;
385 *((int *)&__m256_op0[0]) = 0x00000000;
386 *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000;
387 *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000;
388 *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000;
389 *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000;
390 __m256d_out = __lasx_xvfcvtl_d_s (__m256_op0);
391 ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out);
392
393 *((unsigned long *)&__m256i_op0[3]) = 0x41dfffffffc00000;
394 *((unsigned long *)&__m256i_op0[2]) = 0xc1d75053f0000000;
395 *((unsigned long *)&__m256i_op0[1]) = 0x41dfffffffc00000;
396 *((unsigned long *)&__m256i_op0[0]) = 0xc1d75053f0000000;
397 *((int *)&__m256_result[7]) = 0xc03ae000;
398 *((int *)&__m256_result[6]) = 0x420a6000;
399 *((int *)&__m256_result[5]) = 0xc6000000;
400 *((int *)&__m256_result[4]) = 0x00000000;
401 *((int *)&__m256_result[3]) = 0xc03ae000;
402 *((int *)&__m256_result[2]) = 0x420a6000;
403 *((int *)&__m256_result[1]) = 0xc6000000;
404 *((int *)&__m256_result[0]) = 0x00000000;
405 __m256_out = __lasx_xvfcvtl_s_h (__m256i_op0);
406 ASSERTEQ_32 (__LINE__, __m256_result, __m256_out);
407
408 *((unsigned long *)&__m256i_op0[3]) = 0x0000000000000000;
409 *((unsigned long *)&__m256i_op0[2]) = 0x03802fc000000000;
410 *((unsigned long *)&__m256i_op0[1]) = 0x0000000000000000;
411 *((unsigned long *)&__m256i_op0[0]) = 0x03802fc000000000;
412 *((int *)&__m256_result[7]) = 0x38600000;
413 *((int *)&__m256_result[6]) = 0x3df80000;
414 *((int *)&__m256_result[5]) = 0x00000000;
415 *((int *)&__m256_result[4]) = 0x00000000;
416 *((int *)&__m256_result[3]) = 0x38600000;
417 *((int *)&__m256_result[2]) = 0x3df80000;
418 *((int *)&__m256_result[1]) = 0x00000000;
419 *((int *)&__m256_result[0]) = 0x00000000;
420 __m256_out = __lasx_xvfcvtl_s_h (__m256i_op0);
421 ASSERTEQ_32 (__LINE__, __m256_result, __m256_out);
422
423 *((int *)&__m256_op0[7]) = 0x00000000;
424 *((int *)&__m256_op0[6]) = 0x00000000;
425 *((int *)&__m256_op0[5]) = 0x00000000;
426 *((int *)&__m256_op0[4]) = 0x00000000;
427 *((int *)&__m256_op0[3]) = 0x00000000;
428 *((int *)&__m256_op0[2]) = 0x00000000;
429 *((int *)&__m256_op0[1]) = 0x00000000;
430 *((int *)&__m256_op0[0]) = 0x00000000;
431 *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000;
432 *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000;
433 *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000;
434 *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000;
435 __m256d_out = __lasx_xvfcvtl_d_s (__m256_op0);
436 ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out);
437
438 *((int *)&__m256_op0[7]) = 0x00000000;
439 *((int *)&__m256_op0[6]) = 0x00000000;
440 *((int *)&__m256_op0[5]) = 0x00000000;
441 *((int *)&__m256_op0[4]) = 0x00000000;
442 *((int *)&__m256_op0[3]) = 0x00000000;
443 *((int *)&__m256_op0[2]) = 0x00000000;
444 *((int *)&__m256_op0[1]) = 0x00000000;
445 *((int *)&__m256_op0[0]) = 0x00000000;
446 *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000;
447 *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000;
448 *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000;
449 *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000;
450 __m256d_out = __lasx_xvfcvtl_d_s (__m256_op0);
451 ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out);
452
453 *((int *)&__m256_op0[7]) = 0x00000000;
454 *((int *)&__m256_op0[6]) = 0x00000000;
455 *((int *)&__m256_op0[5]) = 0xffffffff;
456 *((int *)&__m256_op0[4]) = 0xffffffff;
457 *((int *)&__m256_op0[3]) = 0x00000000;
458 *((int *)&__m256_op0[2]) = 0x00000000;
459 *((int *)&__m256_op0[1]) = 0xffffffff;
460 *((int *)&__m256_op0[0]) = 0xffffffff;
461 *((unsigned long *)&__m256d_result[3]) = 0xffffffffe0000000;
462 *((unsigned long *)&__m256d_result[2]) = 0xffffffffe0000000;
463 *((unsigned long *)&__m256d_result[1]) = 0xffffffffe0000000;
464 *((unsigned long *)&__m256d_result[0]) = 0xffffffffe0000000;
465 __m256d_out = __lasx_xvfcvtl_d_s (__m256_op0);
466 ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out);
467
468 *((int *)&__m256_op0[7]) = 0x00000000;
469 *((int *)&__m256_op0[6]) = 0x00000000;
470 *((int *)&__m256_op0[5]) = 0x00000000;
471 *((int *)&__m256_op0[4]) = 0x00000000;
472 *((int *)&__m256_op0[3]) = 0x00000000;
473 *((int *)&__m256_op0[2]) = 0x00000000;
474 *((int *)&__m256_op0[1]) = 0x00000000;
475 *((int *)&__m256_op0[0]) = 0x00000000;
476 *((unsigned long *)&__m256d_result[3]) = 0x0000000000000000;
477 *((unsigned long *)&__m256d_result[2]) = 0x0000000000000000;
478 *((unsigned long *)&__m256d_result[1]) = 0x0000000000000000;
479 *((unsigned long *)&__m256d_result[0]) = 0x0000000000000000;
480 __m256d_out = __lasx_xvfcvtl_d_s (__m256_op0);
481 ASSERTEQ_64 (__LINE__, __m256d_result, __m256d_out);
482
483 return 0;
484 }