Debian Codegraph @

gcc/testsuite/gcc.target/loongarch/vector/lsx/lsx-vftint-2.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 *((int *)&__m128_op0[3]) = 0x00000000;
19 *((int *)&__m128_op0[2]) = 0x00000000;
20 *((int *)&__m128_op0[1]) = 0x00000000;
21 *((int *)&__m128_op0[0]) = 0x00000000;
22 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
23 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
24 __m128i_out = __lsx_vftintl_l_s (__m128_op0);
25 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
26
27 *((int *)&__m128_op0[3]) = 0x00000000;
28 *((int *)&__m128_op0[2]) = 0x00d4ccb8;
29 *((int *)&__m128_op0[1]) = 0x00000000;
30 *((int *)&__m128_op0[0]) = 0x00124888;
31 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
32 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
33 __m128i_out = __lsx_vftintl_l_s (__m128_op0);
34 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
35
36 *((int *)&__m128_op0[3]) = 0x00000000;
37 *((int *)&__m128_op0[2]) = 0x00000000;
38 *((int *)&__m128_op0[1]) = 0x00000000;
39 *((int *)&__m128_op0[0]) = 0x00000000;
40 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
41 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
42 __m128i_out = __lsx_vftintl_l_s (__m128_op0);
43 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
44
45 *((int *)&__m128_op0[3]) = 0xfff00000;
46 *((int *)&__m128_op0[2]) = 0x00000000;
47 *((int *)&__m128_op0[1]) = 0xfff00000;
48 *((int *)&__m128_op0[0]) = 0x00000000;
49 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
50 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
51 __m128i_out = __lsx_vftintl_l_s (__m128_op0);
52 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
53
54 *((int *)&__m128_op0[3]) = 0x00000000;
55 *((int *)&__m128_op0[2]) = 0x00000000;
56 *((int *)&__m128_op0[1]) = 0x00000000;
57 *((int *)&__m128_op0[0]) = 0x00000000;
58 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
59 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
60 __m128i_out = __lsx_vftintl_l_s (__m128_op0);
61 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
62
63 *((int *)&__m128_op0[3]) = 0x80000000;
64 *((int *)&__m128_op0[2]) = 0xffffd860;
65 *((int *)&__m128_op0[1]) = 0x7fffffff;
66 *((int *)&__m128_op0[0]) = 0x80000000;
67 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
68 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
69 __m128i_out = __lsx_vftintl_l_s (__m128_op0);
70 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
71
72 *((int *)&__m128_op0[3]) = 0x00008000;
73 *((int *)&__m128_op0[2]) = 0x00000000;
74 *((int *)&__m128_op0[1]) = 0x00008000;
75 *((int *)&__m128_op0[0]) = 0x00000000;
76 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
77 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
78 __m128i_out = __lsx_vftintl_l_s (__m128_op0);
79 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
80
81 *((int *)&__m128_op0[3]) = 0x00000000;
82 *((int *)&__m128_op0[2]) = 0x00000000;
83 *((int *)&__m128_op0[1]) = 0x00000000;
84 *((int *)&__m128_op0[0]) = 0x00000000;
85 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
86 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
87 __m128i_out = __lsx_vftinth_l_s (__m128_op0);
88 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
89
90 *((int *)&__m128_op0[3]) = 0xff80ffff;
91 *((int *)&__m128_op0[2]) = 0xffffffff;
92 *((int *)&__m128_op0[1]) = 0x7ffffffe;
93 *((int *)&__m128_op0[0]) = 0xffffffff;
94 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
95 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
96 __m128i_out = __lsx_vftinth_l_s (__m128_op0);
97 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
98
99 *((int *)&__m128_op0[3]) = 0x00000000;
100 *((int *)&__m128_op0[2]) = 0x00000000;
101 *((int *)&__m128_op0[1]) = 0x4f804f80;
102 *((int *)&__m128_op0[0]) = 0x4f804f80;
103 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
104 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
105 __m128i_out = __lsx_vftinth_l_s (__m128_op0);
106 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
107
108 *((int *)&__m128_op0[3]) = 0x00000000;
109 *((int *)&__m128_op0[2]) = 0x0000007b;
110 *((int *)&__m128_op0[1]) = 0x00000000;
111 *((int *)&__m128_op0[0]) = 0x00000000;
112 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
113 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
114 __m128i_out = __lsx_vftinth_l_s (__m128_op0);
115 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
116
117 *((int *)&__m128_op0[3]) = 0x00000000;
118 *((int *)&__m128_op0[2]) = 0x00000000;
119 *((int *)&__m128_op0[1]) = 0x00000000;
120 *((int *)&__m128_op0[0]) = 0x00000000;
121 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
122 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
123 __m128i_out = __lsx_vftinth_l_s (__m128_op0);
124 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
125
126 *((int *)&__m128_op0[3]) = 0x00000000;
127 *((int *)&__m128_op0[2]) = 0x00000000;
128 *((int *)&__m128_op0[1]) = 0x00000000;
129 *((int *)&__m128_op0[0]) = 0x00000000;
130 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
131 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
132 __m128i_out = __lsx_vftinth_l_s (__m128_op0);
133 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
134
135 *((int *)&__m128_op0[3]) = 0x00000600;
136 *((int *)&__m128_op0[2]) = 0x00000000;
137 *((int *)&__m128_op0[1]) = 0x00000000;
138 *((int *)&__m128_op0[0]) = 0x00000000;
139 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
140 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
141 __m128i_out = __lsx_vftinth_l_s (__m128_op0);
142 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_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 *)&__m128i_result[1]) = 0x0000000000000000;
149 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
150 __m128i_out = __lsx_vftinth_l_s (__m128_op0);
151 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
152
153 *((int *)&__m128_op0[3]) = 0x00000000;
154 *((int *)&__m128_op0[2]) = 0x3f800000;
155 *((int *)&__m128_op0[1]) = 0x00000000;
156 *((int *)&__m128_op0[0]) = 0x00000000;
157 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
158 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000001;
159 __m128i_out = __lsx_vftinth_l_s (__m128_op0);
160 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
161
162 *((int *)&__m128_op0[3]) = 0x00000000;
163 *((int *)&__m128_op0[2]) = 0x00000000;
164 *((int *)&__m128_op0[1]) = 0x00000000;
165 *((int *)&__m128_op0[0]) = 0x04870ba0;
166 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
167 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
168 __m128i_out = __lsx_vftinth_l_s (__m128_op0);
169 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
170
171 *((int *)&__m128_op0[3]) = 0x00000000;
172 *((int *)&__m128_op0[2]) = 0x00000000;
173 *((int *)&__m128_op0[1]) = 0x00009c7c;
174 *((int *)&__m128_op0[0]) = 0x00007176;
175 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
176 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
177 __m128i_out = __lsx_vftinth_l_s (__m128_op0);
178 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
179
180 *((int *)&__m128_op0[3]) = 0xffffffff;
181 *((int *)&__m128_op0[2]) = 0xffffffff;
182 *((int *)&__m128_op0[1]) = 0xffffffff;
183 *((int *)&__m128_op0[0]) = 0xffffffff;
184 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
185 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
186 __m128i_out = __lsx_vftinth_l_s (__m128_op0);
187 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_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 *)&__m128i_result[1]) = 0x0000000000000000;
194 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
195 __m128i_out = __lsx_vftinth_l_s (__m128_op0);
196 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
197
198 *((int *)&__m128_op0[3]) = 0x00000000;
199 *((int *)&__m128_op0[2]) = 0x0667ae56;
200 *((int *)&__m128_op0[1]) = 0x00000000;
201 *((int *)&__m128_op0[0]) = 0x00000020;
202 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
203 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
204 __m128i_out = __lsx_vftinth_l_s (__m128_op0);
205 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
206
207 *((int *)&__m128_op0[3]) = 0x00000000;
208 *((int *)&__m128_op0[2]) = 0x00000000;
209 *((int *)&__m128_op0[1]) = 0x00000000;
210 *((int *)&__m128_op0[0]) = 0x00000000;
211 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
212 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
213 __m128i_out = __lsx_vftintrnel_l_s (__m128_op0);
214 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
215
216 *((int *)&__m128_op0[3]) = 0xffffffff;
217 *((int *)&__m128_op0[2]) = 0xffffffff;
218 *((int *)&__m128_op0[1]) = 0x00000000;
219 *((int *)&__m128_op0[0]) = 0x00000000;
220 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
221 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
222 __m128i_out = __lsx_vftintrnel_l_s (__m128_op0);
223 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
224
225 *((int *)&__m128_op0[3]) = 0x887c8beb;
226 *((int *)&__m128_op0[2]) = 0x969e00f2;
227 *((int *)&__m128_op0[1]) = 0x101f8b68;
228 *((int *)&__m128_op0[0]) = 0x0b6f8095;
229 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
230 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
231 __m128i_out = __lsx_vftintrnel_l_s (__m128_op0);
232 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
233
234 *((int *)&__m128_op0[3]) = 0x00020000;
235 *((int *)&__m128_op0[2]) = 0x00020000;
236 *((int *)&__m128_op0[1]) = 0x000001fc;
237 *((int *)&__m128_op0[0]) = 0x00000000;
238 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
239 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
240 __m128i_out = __lsx_vftintrnel_l_s (__m128_op0);
241 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
242
243 *((int *)&__m128_op0[3]) = 0x00000000;
244 *((int *)&__m128_op0[2]) = 0x00000000;
245 *((int *)&__m128_op0[1]) = 0x00000000;
246 *((int *)&__m128_op0[0]) = 0x00000000;
247 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
248 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
249 __m128i_out = __lsx_vftintrnel_l_s (__m128_op0);
250 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_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 *)&__m128i_result[1]) = 0x0000000000000000;
257 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
258 __m128i_out = __lsx_vftintrnel_l_s (__m128_op0);
259 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
260
261 *((int *)&__m128_op0[3]) = 0x00000000;
262 *((int *)&__m128_op0[2]) = 0x00000000;
263 *((int *)&__m128_op0[1]) = 0x00000000;
264 *((int *)&__m128_op0[0]) = 0x00000000;
265 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
266 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
267 __m128i_out = __lsx_vftintrnel_l_s (__m128_op0);
268 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
269
270 *((int *)&__m128_op0[3]) = 0x00000000;
271 *((int *)&__m128_op0[2]) = 0x00000000;
272 *((int *)&__m128_op0[1]) = 0x00020000;
273 *((int *)&__m128_op0[0]) = 0xffff0001;
274 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
275 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
276 __m128i_out = __lsx_vftintrnel_l_s (__m128_op0);
277 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
278
279 *((int *)&__m128_op0[3]) = 0x00000000;
280 *((int *)&__m128_op0[2]) = 0x0a752a55;
281 *((int *)&__m128_op0[1]) = 0x0a753500;
282 *((int *)&__m128_op0[0]) = 0xa9fa0d06;
283 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
284 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
285 __m128i_out = __lsx_vftintrnel_l_s (__m128_op0);
286 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
287
288 *((int *)&__m128_op0[3]) = 0x00000000;
289 *((int *)&__m128_op0[2]) = 0xffffffff;
290 *((int *)&__m128_op0[1]) = 0x00000000;
291 *((int *)&__m128_op0[0]) = 0x00000000;
292 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
293 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
294 __m128i_out = __lsx_vftintrpl_l_s (__m128_op0);
295 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
296
297 *((int *)&__m128_op0[3]) = 0x7fffffff;
298 *((int *)&__m128_op0[2]) = 0x7fffffff;
299 *((int *)&__m128_op0[1]) = 0x7fffffff;
300 *((int *)&__m128_op0[0]) = 0x00000000;
301 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
302 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
303 __m128i_out = __lsx_vftintrpl_l_s (__m128_op0);
304 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
305
306 *((int *)&__m128_op0[3]) = 0x000d0254;
307 *((int *)&__m128_op0[2]) = 0x0000007e;
308 *((int *)&__m128_op0[1]) = 0x00000014;
309 *((int *)&__m128_op0[0]) = 0x00140014;
310 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000001;
311 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000001;
312 __m128i_out = __lsx_vftintrpl_l_s (__m128_op0);
313 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
314
315 *((int *)&__m128_op0[3]) = 0x00000000;
316 *((int *)&__m128_op0[2]) = 0x00000000;
317 *((int *)&__m128_op0[1]) = 0x00000000;
318 *((int *)&__m128_op0[0]) = 0x00000000;
319 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
320 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
321 __m128i_out = __lsx_vftintrpl_l_s (__m128_op0);
322 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
323
324 *((int *)&__m128_op0[3]) = 0x00000000;
325 *((int *)&__m128_op0[2]) = 0x00000000;
326 *((int *)&__m128_op0[1]) = 0x39412488;
327 *((int *)&__m128_op0[0]) = 0x80000000;
328 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000001;
329 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
330 __m128i_out = __lsx_vftintrpl_l_s (__m128_op0);
331 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
332
333 *((int *)&__m128_op0[3]) = 0x00000000;
334 *((int *)&__m128_op0[2]) = 0x00000000;
335 *((int *)&__m128_op0[1]) = 0x00000000;
336 *((int *)&__m128_op0[0]) = 0x00000000;
337 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
338 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
339 __m128i_out = __lsx_vftintrpl_l_s (__m128_op0);
340 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
341
342 *((int *)&__m128_op0[3]) = 0x00000000;
343 *((int *)&__m128_op0[2]) = 0x00000014;
344 *((int *)&__m128_op0[1]) = 0x00000000;
345 *((int *)&__m128_op0[0]) = 0x00000014;
346 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
347 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000001;
348 __m128i_out = __lsx_vftintrpl_l_s (__m128_op0);
349 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
350
351 *((int *)&__m128_op0[3]) = 0x00010001;
352 *((int *)&__m128_op0[2]) = 0x00010001;
353 *((int *)&__m128_op0[1]) = 0x00010001;
354 *((int *)&__m128_op0[0]) = 0x00010001;
355 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000001;
356 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000001;
357 __m128i_out = __lsx_vftintrpl_l_s (__m128_op0);
358 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
359
360 *((int *)&__m128_op0[3]) = 0x00000000;
361 *((int *)&__m128_op0[2]) = 0x00000000;
362 *((int *)&__m128_op0[1]) = 0x00000000;
363 *((int *)&__m128_op0[0]) = 0x00000000;
364 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
365 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
366 __m128i_out = __lsx_vftintrpl_l_s (__m128_op0);
367 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_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 *)&__m128i_result[1]) = 0x0000000000000000;
374 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
375 __m128i_out = __lsx_vftintrpl_l_s (__m128_op0);
376 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
377
378 *((int *)&__m128_op0[3]) = 0x00000000;
379 *((int *)&__m128_op0[2]) = 0x00000000;
380 *((int *)&__m128_op0[1]) = 0x2e34594c;
381 *((int *)&__m128_op0[0]) = 0x3b000000;
382 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000001;
383 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000001;
384 __m128i_out = __lsx_vftintrpl_l_s (__m128_op0);
385 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_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]) = 0x00000000;
391 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
392 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
393 __m128i_out = __lsx_vftintrml_l_s (__m128_op0);
394 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
395
396 *((int *)&__m128_op0[3]) = 0x00000000;
397 *((int *)&__m128_op0[2]) = 0x00000000;
398 *((int *)&__m128_op0[1]) = 0x00000000;
399 *((int *)&__m128_op0[0]) = 0x00000000;
400 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
401 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
402 __m128i_out = __lsx_vftintrml_l_s (__m128_op0);
403 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
404
405 *((int *)&__m128_op0[3]) = 0xffffffff;
406 *((int *)&__m128_op0[2]) = 0xffffffff;
407 *((int *)&__m128_op0[1]) = 0x7ffffffe;
408 *((int *)&__m128_op0[0]) = 0xffffffff;
409 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
410 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
411 __m128i_out = __lsx_vftintrml_l_s (__m128_op0);
412 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
413
414 *((int *)&__m128_op0[3]) = 0x00010001;
415 *((int *)&__m128_op0[2]) = 0x00010001;
416 *((int *)&__m128_op0[1]) = 0x00010001;
417 *((int *)&__m128_op0[0]) = 0x00010001;
418 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
419 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
420 __m128i_out = __lsx_vftintrml_l_s (__m128_op0);
421 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
422
423 *((int *)&__m128_op0[3]) = 0x00000000;
424 *((int *)&__m128_op0[2]) = 0x7ff000ff;
425 *((int *)&__m128_op0[1]) = 0x00000000;
426 *((int *)&__m128_op0[0]) = 0x00000000;
427 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
428 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
429 __m128i_out = __lsx_vftintrml_l_s (__m128_op0);
430 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
431
432 *((int *)&__m128_op0[3]) = 0x00000000;
433 *((int *)&__m128_op0[2]) = 0x00000000;
434 *((int *)&__m128_op0[1]) = 0x00000000;
435 *((int *)&__m128_op0[0]) = 0x00000000;
436 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
437 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
438 __m128i_out = __lsx_vftintrml_l_s (__m128_op0);
439 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
440
441 *((int *)&__m128_op0[3]) = 0x00000000;
442 *((int *)&__m128_op0[2]) = 0x00ff00ff;
443 *((int *)&__m128_op0[1]) = 0x00000000;
444 *((int *)&__m128_op0[0]) = 0x00000000;
445 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
446 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
447 __m128i_out = __lsx_vftintrzl_l_s (__m128_op0);
448 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
449
450 *((int *)&__m128_op0[3]) = 0x00000000;
451 *((int *)&__m128_op0[2]) = 0x00000000;
452 *((int *)&__m128_op0[1]) = 0x00000000;
453 *((int *)&__m128_op0[0]) = 0x00000000;
454 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
455 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
456 __m128i_out = __lsx_vftintrzl_l_s (__m128_op0);
457 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
458
459 *((int *)&__m128_op0[3]) = 0x00000000;
460 *((int *)&__m128_op0[2]) = 0x00000000;
461 *((int *)&__m128_op0[1]) = 0x00000000;
462 *((int *)&__m128_op0[0]) = 0x00000000;
463 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
464 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
465 __m128i_out = __lsx_vftintrzl_l_s (__m128_op0);
466 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
467
468 *((int *)&__m128_op0[3]) = 0x00000000;
469 *((int *)&__m128_op0[2]) = 0x00000000;
470 *((int *)&__m128_op0[1]) = 0x00000000;
471 *((int *)&__m128_op0[0]) = 0x00000000;
472 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
473 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
474 __m128i_out = __lsx_vftintrzl_l_s (__m128_op0);
475 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
476
477 *((int *)&__m128_op0[3]) = 0xfffefffe;
478 *((int *)&__m128_op0[2]) = 0xfffeffff;
479 *((int *)&__m128_op0[1]) = 0xfffefffe;
480 *((int *)&__m128_op0[0]) = 0xfffeffff;
481 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
482 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
483 __m128i_out = __lsx_vftintrzl_l_s (__m128_op0);
484 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
485
486 *((int *)&__m128_op0[3]) = 0x00000000;
487 *((int *)&__m128_op0[2]) = 0x00000000;
488 *((int *)&__m128_op0[1]) = 0x00000000;
489 *((int *)&__m128_op0[0]) = 0x00000000;
490 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
491 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
492 __m128i_out = __lsx_vftintrzl_l_s (__m128_op0);
493 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
494
495 *((int *)&__m128_op0[3]) = 0x0000033a;
496 *((int *)&__m128_op0[2]) = 0x0bde0853;
497 *((int *)&__m128_op0[1]) = 0x0a960e6b;
498 *((int *)&__m128_op0[0]) = 0x0a4f0000;
499 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
500 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
501 __m128i_out = __lsx_vftintrzl_l_s (__m128_op0);
502 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
503
504 *((int *)&__m128_op0[3]) = 0xffffffff;
505 *((int *)&__m128_op0[2]) = 0xffffffff;
506 *((int *)&__m128_op0[1]) = 0x7ffffffe;
507 *((int *)&__m128_op0[0]) = 0xffffffff;
508 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
509 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
510 __m128i_out = __lsx_vftintrneh_l_s (__m128_op0);
511 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
512
513 *((int *)&__m128_op0[3]) = 0x00000000;
514 *((int *)&__m128_op0[2]) = 0x00000000;
515 *((int *)&__m128_op0[1]) = 0xfffffffe;
516 *((int *)&__m128_op0[0]) = 0x00000001;
517 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
518 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
519 __m128i_out = __lsx_vftintrneh_l_s (__m128_op0);
520 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
521
522 *((int *)&__m128_op0[3]) = 0xffffffff;
523 *((int *)&__m128_op0[2]) = 0xffffffff;
524 *((int *)&__m128_op0[1]) = 0xffffffff;
525 *((int *)&__m128_op0[0]) = 0xffffffff;
526 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
527 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
528 __m128i_out = __lsx_vftintrneh_l_s (__m128_op0);
529 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
530
531 *((int *)&__m128_op0[3]) = 0x00000001;
532 *((int *)&__m128_op0[2]) = 0x7ffeffff;
533 *((int *)&__m128_op0[1]) = 0x00000001;
534 *((int *)&__m128_op0[0]) = 0x7ffeffff;
535 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
536 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
537 __m128i_out = __lsx_vftintrneh_l_s (__m128_op0);
538 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
539
540 *((int *)&__m128_op0[3]) = 0x00000000;
541 *((int *)&__m128_op0[2]) = 0x00000000;
542 *((int *)&__m128_op0[1]) = 0x00000000;
543 *((int *)&__m128_op0[0]) = 0x00000000;
544 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
545 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
546 __m128i_out = __lsx_vftintrneh_l_s (__m128_op0);
547 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
548
549 *((int *)&__m128_op0[3]) = 0xffffffff;
550 *((int *)&__m128_op0[2]) = 0xffffffff;
551 *((int *)&__m128_op0[1]) = 0xffffffff;
552 *((int *)&__m128_op0[0]) = 0xffffffff;
553 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
554 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
555 __m128i_out = __lsx_vftintrneh_l_s (__m128_op0);
556 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
557
558 *((int *)&__m128_op0[3]) = 0x00000000;
559 *((int *)&__m128_op0[2]) = 0x00000000;
560 *((int *)&__m128_op0[1]) = 0x80808080;
561 *((int *)&__m128_op0[0]) = 0x80638063;
562 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
563 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
564 __m128i_out = __lsx_vftintrph_l_s (__m128_op0);
565 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
566
567 *((int *)&__m128_op0[3]) = 0x00000000;
568 *((int *)&__m128_op0[2]) = 0x00000000;
569 *((int *)&__m128_op0[1]) = 0x00000000;
570 *((int *)&__m128_op0[0]) = 0x00000000;
571 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
572 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
573 __m128i_out = __lsx_vftintrph_l_s (__m128_op0);
574 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
575
576 *((int *)&__m128_op0[3]) = 0x00000000;
577 *((int *)&__m128_op0[2]) = 0x00000080;
578 *((int *)&__m128_op0[1]) = 0x00000000;
579 *((int *)&__m128_op0[0]) = 0x00000000;
580 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
581 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000001;
582 __m128i_out = __lsx_vftintrph_l_s (__m128_op0);
583 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
584
585 *((int *)&__m128_op0[3]) = 0x00000000;
586 *((int *)&__m128_op0[2]) = 0x00000000;
587 *((int *)&__m128_op0[1]) = 0x00000000;
588 *((int *)&__m128_op0[0]) = 0x00000000;
589 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
590 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
591 __m128i_out = __lsx_vftintrph_l_s (__m128_op0);
592 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
593
594 *((int *)&__m128_op0[3]) = 0x80000000;
595 *((int *)&__m128_op0[2]) = 0x00000000;
596 *((int *)&__m128_op0[1]) = 0x00000000;
597 *((int *)&__m128_op0[0]) = 0x00000000;
598 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
599 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
600 __m128i_out = __lsx_vftintrmh_l_s (__m128_op0);
601 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
602
603 *((int *)&__m128_op0[3]) = 0x00000000;
604 *((int *)&__m128_op0[2]) = 0x00000000;
605 *((int *)&__m128_op0[1]) = 0x00000000;
606 *((int *)&__m128_op0[0]) = 0x00000000;
607 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
608 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
609 __m128i_out = __lsx_vftintrmh_l_s (__m128_op0);
610 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
611
612 *((int *)&__m128_op0[3]) = 0x00ff00ff;
613 *((int *)&__m128_op0[2]) = 0x00ff00ff;
614 *((int *)&__m128_op0[1]) = 0x62cbf96e;
615 *((int *)&__m128_op0[0]) = 0x4acfaf40;
616 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
617 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
618 __m128i_out = __lsx_vftintrmh_l_s (__m128_op0);
619 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
620
621 *((int *)&__m128_op0[3]) = 0xffffffff;
622 *((int *)&__m128_op0[2]) = 0x0000ac26;
623 *((int *)&__m128_op0[1]) = 0x00ff0000;
624 *((int *)&__m128_op0[0]) = 0x00000001;
625 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
626 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
627 __m128i_out = __lsx_vftintrmh_l_s (__m128_op0);
628 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
629
630 *((int *)&__m128_op0[3]) = 0x6420e020;
631 *((int *)&__m128_op0[2]) = 0x8400c4e3;
632 *((int *)&__m128_op0[1]) = 0x20c4e0c4;
633 *((int *)&__m128_op0[0]) = 0xe0da6499;
634 *((unsigned long *)&__m128i_result[1]) = 0x7fffffffffffffff;
635 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
636 __m128i_out = __lsx_vftintrzh_l_s (__m128_op0);
637 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
638
639 *((int *)&__m128_op0[3]) = 0xfbffffff;
640 *((int *)&__m128_op0[2]) = 0xffffffff;
641 *((int *)&__m128_op0[1]) = 0x7bffffff;
642 *((int *)&__m128_op0[0]) = 0xffffffff;
643 *((unsigned long *)&__m128i_result[1]) = 0x8000000000000000;
644 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
645 __m128i_out = __lsx_vftintrzh_l_s (__m128_op0);
646 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
647
648 *((int *)&__m128_op0[3]) = 0x18171615;
649 *((int *)&__m128_op0[2]) = 0x17161514;
650 *((int *)&__m128_op0[1]) = 0x16151413;
651 *((int *)&__m128_op0[0]) = 0x15141312;
652 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
653 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
654 __m128i_out = __lsx_vftintrzh_l_s (__m128_op0);
655 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
656
657 *((int *)&__m128_op0[3]) = 0x00000000;
658 *((int *)&__m128_op0[2]) = 0x00000000;
659 *((int *)&__m128_op0[1]) = 0xffffffff;
660 *((int *)&__m128_op0[0]) = 0xffffffff;
661 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
662 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
663 __m128i_out = __lsx_vftintrzh_l_s (__m128_op0);
664 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
665
666 *((int *)&__m128_op0[3]) = 0x00000000;
667 *((int *)&__m128_op0[2]) = 0x00000000;
668 *((int *)&__m128_op0[1]) = 0x046a09ec;
669 *((int *)&__m128_op0[0]) = 0x009c0000;
670 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
671 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
672 __m128i_out = __lsx_vftintrzh_l_s (__m128_op0);
673 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
674
675 *((int *)&__m128_op0[3]) = 0xffffffff;
676 *((int *)&__m128_op0[2]) = 0xffffffff;
677 *((int *)&__m128_op0[1]) = 0xffffffff;
678 *((int *)&__m128_op0[0]) = 0xffffffff;
679 *((unsigned long *)&__m128i_result[1]) = 0x0000000000000000;
680 *((unsigned long *)&__m128i_result[0]) = 0x0000000000000000;
681 __m128i_out = __lsx_vftintrzh_l_s (__m128_op0);
682 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
683
684 *((int *)&__m128_op0[3]) = 0x4f4f4f4f;
685 *((int *)&__m128_op0[2]) = 0x4f4f4f4f;
686 *((int *)&__m128_op0[1]) = 0x4f4f4f4f;
687 *((int *)&__m128_op0[0]) = 0x4f4f4f4f;
688 *((unsigned long *)&__m128i_result[1]) = 0x00000000cf4f4f00;
689 *((unsigned long *)&__m128i_result[0]) = 0x00000000cf4f4f00;
690 __m128i_out = __lsx_vftintrzh_l_s (__m128_op0);
691 ASSERTEQ_64 (__LINE__, __m128i_result, __m128i_out);
692
693 return 0;
694 }