Debian Codegraph @

gcc/testsuite/gcc.target/loongarch/vector/lsx/lsx-vfcvt-1.c

raw
1 /* { dg-options "-mlsx -w -fno-strict-aliasing" } */
2 #include "../simd_correctness_check.h"
3 #include <lsxintrin.h>
4
5 int
6 main ()
7 {
8 __m128i __m128i_op0, __m128i_op1, __m128i_op2, __m128i_out, __m128i_result;
9 __m128 __m128_op0, __m128_op1, __m128_op2, __m128_out, __m128_result;
10 __m128d __m128d_op0, __m128d_op1, __m128d_op2, __m128d_out, __m128d_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 *((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000;
19 *((unsigned long *)&__m128i_op0[0]) = 0x00e0000000e00000;
20 *((int *)&__m128_result[3]) = 0x00000000;
21 *((int *)&__m128_result[2]) = 0x00000000;
22 *((int *)&__m128_result[1]) = 0x00000000;
23 *((int *)&__m128_result[0]) = 0x00000000;
24 __m128_out = __lsx_vfcvth_s_h (__m128i_op0);
25 ASSERTEQ_32 (__LINE__, __m128_result, __m128_out);
26
27 *((unsigned long *)&__m128i_op0[1]) = 0x0000002a55005501;
28 *((unsigned long *)&__m128i_op0[0]) = 0x0000002a55000001;
29 *((int *)&__m128_result[3]) = 0x00000000;
30 *((int *)&__m128_result[2]) = 0x36280000;
31 *((int *)&__m128_result[1]) = 0x42a00000;
32 *((int *)&__m128_result[0]) = 0x42a02000;
33 __m128_out = __lsx_vfcvth_s_h (__m128i_op0);
34 ASSERTEQ_32 (__LINE__, __m128_result, __m128_out);
35
36 *((int *)&__m128_op0[3]) = 0x00000000;
37 *((int *)&__m128_op0[2]) = 0x00000000;
38 *((int *)&__m128_op0[1]) = 0xf436f3f5;
39 *((int *)&__m128_op0[0]) = 0x2f4ef4a8;
40 *((unsigned long *)&__m128d_result[1]) = 0x0000000000000000;
41 *((unsigned long *)&__m128d_result[0]) = 0x0000000000000000;
42 __m128d_out = __lsx_vfcvth_d_s (__m128_op0);
43 ASSERTEQ_64 (__LINE__, __m128d_result, __m128d_out);
44
45 *((unsigned long *)&__m128i_op0[1]) = 0xffffffffcfb799f1;
46 *((unsigned long *)&__m128i_op0[0]) = 0x0282800002828282;
47 *((int *)&__m128_result[3]) = 0xffffe000;
48 *((int *)&__m128_result[2]) = 0xffffe000;
49 *((int *)&__m128_result[1]) = 0xc1f6e000;
50 *((int *)&__m128_result[0]) = 0xbb3e2000;
51 __m128_out = __lsx_vfcvth_s_h (__m128i_op0);
52 ASSERTEQ_32 (__LINE__, __m128_result, __m128_out);
53
54 *((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000;
55 *((unsigned long *)&__m128i_op0[0]) = 0x0000040004000100;
56 *((int *)&__m128_result[3]) = 0x00000000;
57 *((int *)&__m128_result[2]) = 0x00000000;
58 *((int *)&__m128_result[1]) = 0x00000000;
59 *((int *)&__m128_result[0]) = 0x00000000;
60 __m128_out = __lsx_vfcvth_s_h (__m128i_op0);
61 ASSERTEQ_32 (__LINE__, __m128_result, __m128_out);
62
63 *((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000;
64 *((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000;
65 *((int *)&__m128_result[3]) = 0x00000000;
66 *((int *)&__m128_result[2]) = 0x00000000;
67 *((int *)&__m128_result[1]) = 0x00000000;
68 *((int *)&__m128_result[0]) = 0x00000000;
69 __m128_out = __lsx_vfcvth_s_h (__m128i_op0);
70 ASSERTEQ_32 (__LINE__, __m128_result, __m128_out);
71
72 *((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000;
73 *((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000;
74 *((int *)&__m128_result[3]) = 0x00000000;
75 *((int *)&__m128_result[2]) = 0x00000000;
76 *((int *)&__m128_result[1]) = 0x00000000;
77 *((int *)&__m128_result[0]) = 0x00000000;
78 __m128_out = __lsx_vfcvth_s_h (__m128i_op0);
79 ASSERTEQ_32 (__LINE__, __m128_result, __m128_out);
80
81 *((unsigned long *)&__m128i_op0[1]) = 0x0000006f00001f0a;
82 *((unsigned long *)&__m128i_op0[0]) = 0x0000958affff995d;
83 *((int *)&__m128_result[3]) = 0x00000000;
84 *((int *)&__m128_result[2]) = 0x36de0000;
85 *((int *)&__m128_result[1]) = 0x00000000;
86 *((int *)&__m128_result[0]) = 0x3be14000;
87 __m128_out = __lsx_vfcvth_s_h (__m128i_op0);
88 ASSERTEQ_32 (__LINE__, __m128_result, __m128_out);
89
90 *((unsigned long *)&__m128i_op0[1]) = 0x41dfffff00000000;
91 *((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000;
92 *((int *)&__m128_result[3]) = 0x403be000;
93 *((int *)&__m128_result[2]) = 0xffffe000;
94 *((int *)&__m128_result[1]) = 0x00000000;
95 *((int *)&__m128_result[0]) = 0x00000000;
96 __m128_out = __lsx_vfcvth_s_h (__m128i_op0);
97 ASSERTEQ_32 (__LINE__, __m128_result, __m128_out);
98
99 *((int *)&__m128_op0[3]) = 0x63637687;
100 *((int *)&__m128_op0[2]) = 0x636316bb;
101 *((int *)&__m128_op0[1]) = 0x63636363;
102 *((int *)&__m128_op0[0]) = 0x63636363;
103 *((unsigned long *)&__m128d_result[1]) = 0x446c6ed0e0000000;
104 *((unsigned long *)&__m128d_result[0]) = 0x446c62d760000000;
105 __m128d_out = __lsx_vfcvth_d_s (__m128_op0);
106 ASSERTEQ_64 (__LINE__, __m128d_result, __m128d_out);
107
108 *((int *)&__m128_op0[3]) = 0x00000000;
109 *((int *)&__m128_op0[2]) = 0x00000000;
110 *((int *)&__m128_op0[1]) = 0x00000000;
111 *((int *)&__m128_op0[0]) = 0x00000000;
112 *((unsigned long *)&__m128d_result[1]) = 0x0000000000000000;
113 *((unsigned long *)&__m128d_result[0]) = 0x0000000000000000;
114 __m128d_out = __lsx_vfcvth_d_s (__m128_op0);
115 ASSERTEQ_64 (__LINE__, __m128d_result, __m128d_out);
116
117 *((int *)&__m128_op0[3]) = 0x000000ff;
118 *((int *)&__m128_op0[2]) = 0x000000ff;
119 *((int *)&__m128_op0[1]) = 0x00000000;
120 *((int *)&__m128_op0[0]) = 0x00000000;
121 *((unsigned long *)&__m128d_result[1]) = 0x371fe00000000000;
122 *((unsigned long *)&__m128d_result[0]) = 0x371fe00000000000;
123 __m128d_out = __lsx_vfcvth_d_s (__m128_op0);
124 ASSERTEQ_64 (__LINE__, __m128d_result, __m128d_out);
125
126 *((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000;
127 *((unsigned long *)&__m128i_op0[0]) = 0x6363636363636363;
128 *((int *)&__m128_result[3]) = 0x00000000;
129 *((int *)&__m128_result[2]) = 0x00000000;
130 *((int *)&__m128_result[1]) = 0x00000000;
131 *((int *)&__m128_result[0]) = 0x00000000;
132 __m128_out = __lsx_vfcvth_s_h (__m128i_op0);
133 ASSERTEQ_32 (__LINE__, __m128_result, __m128_out);
134
135 *((unsigned long *)&__m128i_op0[1]) = 0xfffffffff7fff7ef;
136 *((unsigned long *)&__m128i_op0[0]) = 0x80808080ffffffff;
137 *((int *)&__m128_result[3]) = 0xffffe000;
138 *((int *)&__m128_result[2]) = 0xffffe000;
139 *((int *)&__m128_result[1]) = 0xc6ffe000;
140 *((int *)&__m128_result[0]) = 0xc6fde000;
141 __m128_out = __lsx_vfcvth_s_h (__m128i_op0);
142 ASSERTEQ_32 (__LINE__, __m128_result, __m128_out);
143
144 *((int *)&__m128_op0[3]) = 0xffffffff;
145 *((int *)&__m128_op0[2]) = 0xffffffff;
146 *((int *)&__m128_op0[1]) = 0xffffffff;
147 *((int *)&__m128_op0[0]) = 0xffffffff;
148 *((unsigned long *)&__m128d_result[1]) = 0xffffffffe0000000;
149 *((unsigned long *)&__m128d_result[0]) = 0xffffffffe0000000;
150 __m128d_out = __lsx_vfcvth_d_s (__m128_op0);
151 ASSERTEQ_64 (__LINE__, __m128d_result, __m128d_out);
152
153 *((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000;
154 *((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000;
155 *((int *)&__m128_result[3]) = 0x00000000;
156 *((int *)&__m128_result[2]) = 0x00000000;
157 *((int *)&__m128_result[1]) = 0x00000000;
158 *((int *)&__m128_result[0]) = 0x00000000;
159 __m128_out = __lsx_vfcvth_s_h (__m128i_op0);
160 ASSERTEQ_32 (__LINE__, __m128_result, __m128_out);
161
162 *((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000;
163 *((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000;
164 *((int *)&__m128_result[3]) = 0x00000000;
165 *((int *)&__m128_result[2]) = 0x00000000;
166 *((int *)&__m128_result[1]) = 0x00000000;
167 *((int *)&__m128_result[0]) = 0x00000000;
168 __m128_out = __lsx_vfcvth_s_h (__m128i_op0);
169 ASSERTEQ_32 (__LINE__, __m128_result, __m128_out);
170
171 *((unsigned long *)&__m128i_op0[1]) = 0xffe1ffc100000000;
172 *((unsigned long *)&__m128i_op0[0]) = 0x0000000000400000;
173 *((int *)&__m128_result[3]) = 0xfffc2000;
174 *((int *)&__m128_result[2]) = 0xfff82000;
175 *((int *)&__m128_result[1]) = 0x00000000;
176 *((int *)&__m128_result[0]) = 0x00000000;
177 __m128_out = __lsx_vfcvth_s_h (__m128i_op0);
178 ASSERTEQ_32 (__LINE__, __m128_result, __m128_out);
179
180 *((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000;
181 *((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000;
182 *((int *)&__m128_result[3]) = 0x00000000;
183 *((int *)&__m128_result[2]) = 0x00000000;
184 *((int *)&__m128_result[1]) = 0x00000000;
185 *((int *)&__m128_result[0]) = 0x00000000;
186 __m128_out = __lsx_vfcvth_s_h (__m128i_op0);
187 ASSERTEQ_32 (__LINE__, __m128_result, __m128_out);
188
189 *((int *)&__m128_op0[3]) = 0x00000000;
190 *((int *)&__m128_op0[2]) = 0x00000000;
191 *((int *)&__m128_op0[1]) = 0x00000000;
192 *((int *)&__m128_op0[0]) = 0x00000000;
193 *((unsigned long *)&__m128d_result[1]) = 0x0000000000000000;
194 *((unsigned long *)&__m128d_result[0]) = 0x0000000000000000;
195 __m128d_out = __lsx_vfcvth_d_s (__m128_op0);
196 ASSERTEQ_64 (__LINE__, __m128d_result, __m128d_out);
197
198 *((int *)&__m128_op0[3]) = 0x0000b3a6;
199 *((int *)&__m128_op0[2]) = 0x000067da;
200 *((int *)&__m128_op0[1]) = 0x00004e42;
201 *((int *)&__m128_op0[0]) = 0x0000c26a;
202 *((unsigned long *)&__m128d_result[1]) = 0x379674c000000000;
203 *((unsigned long *)&__m128d_result[0]) = 0x3789f68000000000;
204 __m128d_out = __lsx_vfcvth_d_s (__m128_op0);
205 ASSERTEQ_64 (__LINE__, __m128d_result, __m128d_out);
206
207 *((int *)&__m128_op0[3]) = 0x00000000;
208 *((int *)&__m128_op0[2]) = 0xffffffff;
209 *((int *)&__m128_op0[1]) = 0x00000000;
210 *((int *)&__m128_op0[0]) = 0xffff0000;
211 *((unsigned long *)&__m128d_result[1]) = 0x0000000000000000;
212 *((unsigned long *)&__m128d_result[0]) = 0xffffffffe0000000;
213 __m128d_out = __lsx_vfcvth_d_s (__m128_op0);
214 ASSERTEQ_64 (__LINE__, __m128d_result, __m128d_out);
215
216 *((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000;
217 *((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000;
218 *((int *)&__m128_result[3]) = 0x00000000;
219 *((int *)&__m128_result[2]) = 0x00000000;
220 *((int *)&__m128_result[1]) = 0x00000000;
221 *((int *)&__m128_result[0]) = 0x00000000;
222 __m128_out = __lsx_vfcvth_s_h (__m128i_op0);
223 ASSERTEQ_32 (__LINE__, __m128_result, __m128_out);
224
225 *((unsigned long *)&__m128i_op0[1]) = 0x0001001001000080;
226 *((unsigned long *)&__m128i_op0[0]) = 0x4195d926d8018000;
227 *((int *)&__m128_result[3]) = 0x33800000;
228 *((int *)&__m128_result[2]) = 0x35800000;
229 *((int *)&__m128_result[1]) = 0x37800000;
230 *((int *)&__m128_result[0]) = 0x37000000;
231 __m128_out = __lsx_vfcvth_s_h (__m128i_op0);
232 ASSERTEQ_32 (__LINE__, __m128_result, __m128_out);
233
234 *((int *)&__m128_op0[3]) = 0x00000000;
235 *((int *)&__m128_op0[2]) = 0x00000000;
236 *((int *)&__m128_op0[1]) = 0xffffffff;
237 *((int *)&__m128_op0[0]) = 0xffffffff;
238 *((unsigned long *)&__m128d_result[1]) = 0x0000000000000000;
239 *((unsigned long *)&__m128d_result[0]) = 0x0000000000000000;
240 __m128d_out = __lsx_vfcvth_d_s (__m128_op0);
241 ASSERTEQ_64 (__LINE__, __m128d_result, __m128d_out);
242
243 *((unsigned long *)&__m128i_op0[1]) = 0xffffffffffffffff;
244 *((unsigned long *)&__m128i_op0[0]) = 0xffffffffffffffff;
245 *((int *)&__m128_result[3]) = 0xffffe000;
246 *((int *)&__m128_result[2]) = 0xffffe000;
247 *((int *)&__m128_result[1]) = 0xffffe000;
248 *((int *)&__m128_result[0]) = 0xffffe000;
249 __m128_out = __lsx_vfcvtl_s_h (__m128i_op0);
250 ASSERTEQ_32 (__LINE__, __m128_result, __m128_out);
251
252 *((int *)&__m128_op0[3]) = 0x00000000;
253 *((int *)&__m128_op0[2]) = 0x00000000;
254 *((int *)&__m128_op0[1]) = 0x00000000;
255 *((int *)&__m128_op0[0]) = 0x00000000;
256 *((unsigned long *)&__m128d_result[1]) = 0x0000000000000000;
257 *((unsigned long *)&__m128d_result[0]) = 0x0000000000000000;
258 __m128d_out = __lsx_vfcvtl_d_s (__m128_op0);
259 ASSERTEQ_64 (__LINE__, __m128d_result, __m128d_out);
260
261 *((unsigned long *)&__m128i_op0[1]) = 0x000a000a000a000a;
262 *((unsigned long *)&__m128i_op0[0]) = 0x000a000a000a000a;
263 *((int *)&__m128_result[3]) = 0x35200000;
264 *((int *)&__m128_result[2]) = 0x35200000;
265 *((int *)&__m128_result[1]) = 0x35200000;
266 *((int *)&__m128_result[0]) = 0x35200000;
267 __m128_out = __lsx_vfcvtl_s_h (__m128i_op0);
268 ASSERTEQ_32 (__LINE__, __m128_result, __m128_out);
269
270 *((int *)&__m128_op0[3]) = 0x00000000;
271 *((int *)&__m128_op0[2]) = 0x00000000;
272 *((int *)&__m128_op0[1]) = 0x00000000;
273 *((int *)&__m128_op0[0]) = 0x00000000;
274 *((unsigned long *)&__m128d_result[1]) = 0x0000000000000000;
275 *((unsigned long *)&__m128d_result[0]) = 0x0000000000000000;
276 __m128d_out = __lsx_vfcvtl_d_s (__m128_op0);
277 ASSERTEQ_64 (__LINE__, __m128d_result, __m128d_out);
278
279 *((int *)&__m128_op0[3]) = 0x00000100;
280 *((int *)&__m128_op0[2]) = 0x0f00fe00;
281 *((int *)&__m128_op0[1]) = 0x0000017f;
282 *((int *)&__m128_op0[0]) = 0xff00fe7f;
283 *((unsigned long *)&__m128d_result[1]) = 0x3727f00000000000;
284 *((unsigned long *)&__m128d_result[0]) = 0xc7e01fcfe0000000;
285 __m128d_out = __lsx_vfcvtl_d_s (__m128_op0);
286 ASSERTEQ_64 (__LINE__, __m128d_result, __m128d_out);
287
288 *((int *)&__m128_op0[3]) = 0x00000000;
289 *((int *)&__m128_op0[2]) = 0x00000000;
290 *((int *)&__m128_op0[1]) = 0x00000000;
291 *((int *)&__m128_op0[0]) = 0x00000000;
292 *((unsigned long *)&__m128d_result[1]) = 0x0000000000000000;
293 *((unsigned long *)&__m128d_result[0]) = 0x0000000000000000;
294 __m128d_out = __lsx_vfcvtl_d_s (__m128_op0);
295 ASSERTEQ_64 (__LINE__, __m128d_result, __m128d_out);
296
297 *((int *)&__m128_op0[3]) = 0x00000000;
298 *((int *)&__m128_op0[2]) = 0x00000000;
299 *((int *)&__m128_op0[1]) = 0x00000020;
300 *((int *)&__m128_op0[0]) = 0x00000020;
301 *((unsigned long *)&__m128d_result[1]) = 0x36f0000000000000;
302 *((unsigned long *)&__m128d_result[0]) = 0x36f0000000000000;
303 __m128d_out = __lsx_vfcvtl_d_s (__m128_op0);
304 ASSERTEQ_64 (__LINE__, __m128d_result, __m128d_out);
305
306 *((int *)&__m128_op0[3]) = 0xffffffff;
307 *((int *)&__m128_op0[2]) = 0xbd994889;
308 *((int *)&__m128_op0[1]) = 0x00000000;
309 *((int *)&__m128_op0[0]) = 0x0a092444;
310 *((unsigned long *)&__m128d_result[1]) = 0x0000000000000000;
311 *((unsigned long *)&__m128d_result[0]) = 0x3941248880000000;
312 __m128d_out = __lsx_vfcvtl_d_s (__m128_op0);
313 ASSERTEQ_64 (__LINE__, __m128d_result, __m128d_out);
314
315 *((unsigned long *)&__m128i_op0[1]) = 0x62cbf96e4acfaf40;
316 *((unsigned long *)&__m128i_op0[0]) = 0xf0bc9a5278285a4a;
317 *((int *)&__m128_result[3]) = 0xc6178000;
318 *((int *)&__m128_result[2]) = 0xbb4a4000;
319 *((int *)&__m128_result[1]) = 0x47050000;
320 *((int *)&__m128_result[0]) = 0x43494000;
321 __m128_out = __lsx_vfcvtl_s_h (__m128i_op0);
322 ASSERTEQ_32 (__LINE__, __m128_result, __m128_out);
323
324 *((int *)&__m128_op0[3]) = 0x00040004;
325 *((int *)&__m128_op0[2]) = 0x00040004;
326 *((int *)&__m128_op0[1]) = 0x00040004;
327 *((int *)&__m128_op0[0]) = 0x00040004;
328 *((unsigned long *)&__m128d_result[1]) = 0x37c0001000000000;
329 *((unsigned long *)&__m128d_result[0]) = 0x37c0001000000000;
330 __m128d_out = __lsx_vfcvtl_d_s (__m128_op0);
331 ASSERTEQ_64 (__LINE__, __m128d_result, __m128d_out);
332
333 *((unsigned long *)&__m128i_op0[1]) = 0xff00ff00ff00ff00;
334 *((unsigned long *)&__m128i_op0[0]) = 0xff00ff00ff00ff00;
335 *((int *)&__m128_result[3]) = 0xffe00000;
336 *((int *)&__m128_result[2]) = 0xffe00000;
337 *((int *)&__m128_result[1]) = 0xffe00000;
338 *((int *)&__m128_result[0]) = 0xffe00000;
339 __m128_out = __lsx_vfcvtl_s_h (__m128i_op0);
340 ASSERTEQ_32 (__LINE__, __m128_result, __m128_out);
341
342 *((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000;
343 *((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000;
344 *((int *)&__m128_result[3]) = 0x00000000;
345 *((int *)&__m128_result[2]) = 0x00000000;
346 *((int *)&__m128_result[1]) = 0x00000000;
347 *((int *)&__m128_result[0]) = 0x00000000;
348 __m128_out = __lsx_vfcvtl_s_h (__m128i_op0);
349 ASSERTEQ_32 (__LINE__, __m128_result, __m128_out);
350
351 *((unsigned long *)&__m128i_op0[1]) = 0x0000000000000000;
352 *((unsigned long *)&__m128i_op0[0]) = 0x0000000000000000;
353 *((int *)&__m128_result[3]) = 0x00000000;
354 *((int *)&__m128_result[2]) = 0x00000000;
355 *((int *)&__m128_result[1]) = 0x00000000;
356 *((int *)&__m128_result[0]) = 0x00000000;
357 __m128_out = __lsx_vfcvtl_s_h (__m128i_op0);
358 ASSERTEQ_32 (__LINE__, __m128_result, __m128_out);
359
360 *((unsigned long *)&__m128i_op0[1]) = 0x00000000ffffffff;
361 *((unsigned long *)&__m128i_op0[0]) = 0x00000000ffffffff;
362 *((int *)&__m128_result[3]) = 0x00000000;
363 *((int *)&__m128_result[2]) = 0x00000000;
364 *((int *)&__m128_result[1]) = 0xffffe000;
365 *((int *)&__m128_result[0]) = 0xffffe000;
366 __m128_out = __lsx_vfcvtl_s_h (__m128i_op0);
367 ASSERTEQ_32 (__LINE__, __m128_result, __m128_out);
368
369 *((int *)&__m128_op0[3]) = 0x00000000;
370 *((int *)&__m128_op0[2]) = 0x00000000;
371 *((int *)&__m128_op0[1]) = 0x00000000;
372 *((int *)&__m128_op0[0]) = 0x00000000;
373 *((unsigned long *)&__m128d_result[1]) = 0x0000000000000000;
374 *((unsigned long *)&__m128d_result[0]) = 0x0000000000000000;
375 __m128d_out = __lsx_vfcvtl_d_s (__m128_op0);
376 ASSERTEQ_64 (__LINE__, __m128d_result, __m128d_out);
377
378 *((int *)&__m128_op0[3]) = 0x00000000;
379 *((int *)&__m128_op0[2]) = 0x00000000;
380 *((int *)&__m128_op0[1]) = 0x00000000;
381 *((int *)&__m128_op0[0]) = 0x00000000;
382 *((unsigned long *)&__m128d_result[1]) = 0x0000000000000000;
383 *((unsigned long *)&__m128d_result[0]) = 0x0000000000000000;
384 __m128d_out = __lsx_vfcvtl_d_s (__m128_op0);
385 ASSERTEQ_64 (__LINE__, __m128d_result, __m128d_out);
386
387 *((int *)&__m128_op0[3]) = 0x00000000;
388 *((int *)&__m128_op0[2]) = 0x00000000;
389 *((int *)&__m128_op0[1]) = 0x00000000;
390 *((int *)&__m128_op0[0]) = 0x007f7f7f;
391 *((unsigned long *)&__m128d_result[1]) = 0x0000000000000000;
392 *((unsigned long *)&__m128d_result[0]) = 0x380fdfdfc0000000;
393 __m128d_out = __lsx_vfcvtl_d_s (__m128_op0);
394 ASSERTEQ_64 (__LINE__, __m128d_result, __m128d_out);
395
396 return 0;
397 }