1 /* { dg-do compile } */
2 /* { dg-options "-std=c99" } */
4 #include <spu_intrinsics.h>
8 vector unsigned short test_sr_1 (vector unsigned short ra, vector unsigned short count)
10 return spu_sr (ra, count);
13 vector signed short test_sr_2 (vector signed short ra, vector unsigned short count)
15 return spu_sr (ra, count);
18 vector unsigned int test_sr_3 (vector unsigned int ra, vector unsigned int count)
20 return spu_sr (ra, count);
23 vector signed int test_sr_4 (vector signed int ra, vector unsigned int count)
25 return spu_sr (ra, count);
28 vector unsigned short test_sr_5 (vector unsigned short ra)
30 return spu_sr (ra, 11);
33 vector signed short test_sr_6 (vector signed short ra)
35 return spu_sr (ra, 11);
38 vector unsigned short test_sr_7 (vector unsigned short ra, unsigned int count)
40 return spu_sr (ra, count);
43 vector signed short test_sr_8 (vector signed short ra, unsigned int count)
45 return spu_sr (ra, count);
48 vector unsigned int test_sr_9 (vector unsigned int ra)
50 return spu_sr (ra, 11);
53 vector signed int test_sr_10 (vector signed int ra)
55 return spu_sr (ra, 11);
58 vector unsigned int test_sr_11 (vector unsigned int ra, unsigned int count)
60 return spu_sr (ra, count);
63 vector signed int test_sr_12 (vector signed int ra, unsigned int count)
65 return spu_sr (ra, count);
71 vector unsigned short test_sra_1 (vector unsigned short ra, vector unsigned short count)
73 return spu_sra (ra, count);
76 vector signed short test_sra_2 (vector signed short ra, vector unsigned short count)
78 return spu_sra (ra, count);
81 vector unsigned int test_sra_3 (vector unsigned int ra, vector unsigned int count)
83 return spu_sra (ra, count);
86 vector signed int test_sra_4 (vector signed int ra, vector unsigned int count)
88 return spu_sra (ra, count);
91 vector unsigned short test_sra_5 (vector unsigned short ra)
93 return spu_sra (ra, 11);
96 vector signed short test_sra_6 (vector signed short ra)
98 return spu_sra (ra, 11);
101 vector unsigned short test_sra_7 (vector unsigned short ra, unsigned int count)
103 return spu_sra (ra, count);
106 vector signed short test_sra_8 (vector signed short ra, unsigned int count)
108 return spu_sra (ra, count);
111 vector unsigned int test_sra_9 (vector unsigned int ra)
113 return spu_sra (ra, 11);
116 vector signed int test_sra_10 (vector signed int ra)
118 return spu_sra (ra, 11);
121 vector unsigned int test_sra_11 (vector unsigned int ra, unsigned int count)
123 return spu_sra (ra, count);
126 vector signed int test_sra_12 (vector signed int ra, unsigned int count)
128 return spu_sra (ra, count);
133 vector unsigned char test_srqw_1 (vector unsigned char ra)
135 return spu_srqw (ra, 5);
138 vector signed char test_srqw_2 (vector signed char ra)
140 return spu_srqw (ra, 5);
143 vector unsigned short test_srqw_3 (vector unsigned short ra)
145 return spu_srqw (ra, 5);
148 vector signed short test_srqw_4 (vector signed short ra)
150 return spu_srqw (ra, 5);
153 vector unsigned int test_srqw_5 (vector unsigned int ra)
155 return spu_srqw (ra, 5);
158 vector signed int test_srqw_6 (vector signed int ra)
160 return spu_srqw (ra, 5);
163 vector unsigned long test_srqw_7 (vector unsigned long ra)
165 return spu_srqw (ra, 5);
168 vector signed long test_srqw_8 (vector signed long ra)
170 return spu_srqw (ra, 5);
173 vector unsigned long long test_srqw_9 (vector unsigned long long ra)
175 return spu_srqw (ra, 5);
178 vector signed long long test_srqw_10 (vector signed long long ra)
180 return spu_srqw (ra, 5);
183 vector float test_srqw_11 (vector float ra)
185 return spu_srqw (ra, 5);
188 vector double test_srqw_12 (vector double ra)
190 return spu_srqw (ra, 5);
193 vector unsigned char test_srqw_13 (vector unsigned char ra, unsigned int count)
195 return spu_srqw (ra, count);
198 vector signed char test_srqw_14 (vector signed char ra, unsigned int count)
200 return spu_srqw (ra, count);
203 vector unsigned short test_srqw_15 (vector unsigned short ra, unsigned int count)
205 return spu_srqw (ra, count);
208 vector signed short test_srqw_16 (vector signed short ra, unsigned int count)
210 return spu_srqw (ra, count);
213 vector unsigned int test_srqw_17 (vector unsigned int ra, unsigned int count)
215 return spu_srqw (ra, count);
218 vector signed int test_srqw_18 (vector signed int ra, unsigned int count)
220 return spu_srqw (ra, count);
223 vector unsigned long test_srqw_19 (vector unsigned long ra, unsigned int count)
225 return spu_srqw (ra, count);
228 vector signed long test_srqw_20 (vector signed long ra, unsigned int count)
230 return spu_srqw (ra, count);
233 vector unsigned long long test_srqw_21 (vector unsigned long long ra, unsigned int count)
235 return spu_srqw (ra, count);
238 vector signed long long test_srqw_22 (vector signed long long ra, unsigned int count)
240 return spu_srqw (ra, count);
243 vector float test_srqw_23 (vector float ra, unsigned int count)
245 return spu_srqw (ra, count);
248 vector double test_srqw_24 (vector double ra, unsigned int count)
250 return spu_srqw (ra, count);
255 vector unsigned char test_srqwbyte_1 (vector unsigned char ra)
257 return spu_srqwbyte (ra, 5);
260 vector signed char test_srqwbyte_2 (vector signed char ra)
262 return spu_srqwbyte (ra, 5);
265 vector unsigned short test_srqwbyte_3 (vector unsigned short ra)
267 return spu_srqwbyte (ra, 5);
270 vector signed short test_srqwbyte_4 (vector signed short ra)
272 return spu_srqwbyte (ra, 5);
275 vector unsigned int test_srqwbyte_5 (vector unsigned int ra)
277 return spu_srqwbyte (ra, 5);
280 vector signed int test_srqwbyte_6 (vector signed int ra)
282 return spu_srqwbyte (ra, 5);
285 vector unsigned long test_srqwbyte_7 (vector unsigned long ra)
287 return spu_srqwbyte (ra, 5);
290 vector signed long test_srqwbyte_8 (vector signed long ra)
292 return spu_srqwbyte (ra, 5);
295 vector unsigned long long test_srqwbyte_9 (vector unsigned long long ra)
297 return spu_srqwbyte (ra, 5);
300 vector signed long long test_srqwbyte_10 (vector signed long long ra)
302 return spu_srqwbyte (ra, 5);
305 vector float test_srqwbyte_11 (vector float ra)
307 return spu_srqwbyte (ra, 5);
310 vector double test_srqwbyte_12 (vector double ra)
312 return spu_srqwbyte (ra, 5);
315 vector unsigned char test_srqwbyte_13 (vector unsigned char ra, unsigned int count)
317 return spu_srqwbyte (ra, count);
320 vector signed char test_srqwbyte_14 (vector signed char ra, unsigned int count)
322 return spu_srqwbyte (ra, count);
325 vector unsigned short test_srqwbyte_15 (vector unsigned short ra, unsigned int count)
327 return spu_srqwbyte (ra, count);
330 vector signed short test_srqwbyte_16 (vector signed short ra, unsigned int count)
332 return spu_srqwbyte (ra, count);
335 vector unsigned int test_srqwbyte_17 (vector unsigned int ra, unsigned int count)
337 return spu_srqwbyte (ra, count);
340 vector signed int test_srqwbyte_18 (vector signed int ra, unsigned int count)
342 return spu_srqwbyte (ra, count);
345 vector unsigned long test_srqwbyte_19 (vector unsigned long ra, unsigned int count)
347 return spu_srqwbyte (ra, count);
350 vector signed long test_srqwbyte_20 (vector signed long ra, unsigned int count)
352 return spu_srqwbyte (ra, count);
355 vector unsigned long long test_srqwbyte_21 (vector unsigned long long ra, unsigned int count)
357 return spu_srqwbyte (ra, count);
360 vector signed long long test_srqwbyte_22 (vector signed long long ra, unsigned int count)
362 return spu_srqwbyte (ra, count);
365 vector float test_srqwbyte_23 (vector float ra, unsigned int count)
367 return spu_srqwbyte (ra, count);
370 vector double test_srqwbyte_24 (vector double ra, unsigned int count)
372 return spu_srqwbyte (ra, count);
377 vector unsigned char test_srqwbytebc_1 (vector unsigned char ra)
379 return spu_srqwbytebc (ra, 40);
382 vector signed char test_srqwbytebc_2 (vector signed char ra)
384 return spu_srqwbytebc (ra, 40);
387 vector unsigned short test_srqwbytebc_3 (vector unsigned short ra)
389 return spu_srqwbytebc (ra, 40);
392 vector signed short test_srqwbytebc_4 (vector signed short ra)
394 return spu_srqwbytebc (ra, 40);
397 vector unsigned int test_srqwbytebc_5 (vector unsigned int ra)
399 return spu_srqwbytebc (ra, 40);
402 vector signed int test_srqwbytebc_6 (vector signed int ra)
404 return spu_srqwbytebc (ra, 40);
407 vector unsigned long test_srqwbytebc_7 (vector unsigned long ra)
409 return spu_srqwbytebc (ra, 40);
412 vector signed long test_srqwbytebc_8 (vector signed long ra)
414 return spu_srqwbytebc (ra, 40);
417 vector unsigned long long test_srqwbytebc_9 (vector unsigned long long ra)
419 return spu_srqwbytebc (ra, 40);
422 vector signed long long test_srqwbytebc_10 (vector signed long long ra)
424 return spu_srqwbytebc (ra, 40);
427 vector float test_srqwbytebc_11 (vector float ra)
429 return spu_srqwbytebc (ra, 40);
432 vector double test_srqwbytebc_12 (vector double ra)
434 return spu_srqwbytebc (ra, 40);
437 vector unsigned char test_srqwbytebc_13 (vector unsigned char ra, unsigned int count)
439 return spu_srqwbytebc (ra, count);
442 vector signed char test_srqwbytebc_14 (vector signed char ra, unsigned int count)
444 return spu_srqwbytebc (ra, count);
447 vector unsigned short test_srqwbytebc_15 (vector unsigned short ra, unsigned int count)
449 return spu_srqwbytebc (ra, count);
452 vector signed short test_srqwbytebc_16 (vector signed short ra, unsigned int count)
454 return spu_srqwbytebc (ra, count);
457 vector unsigned int test_srqwbytebc_17 (vector unsigned int ra, unsigned int count)
459 return spu_srqwbytebc (ra, count);
462 vector signed int test_srqwbytebc_18 (vector signed int ra, unsigned int count)
464 return spu_srqwbytebc (ra, count);
467 vector unsigned long test_srqwbytebc_19 (vector unsigned long ra, unsigned int count)
469 return spu_srqwbytebc (ra, count);
472 vector signed long test_srqwbytebc_20 (vector signed long ra, unsigned int count)
474 return spu_srqwbytebc (ra, count);
477 vector unsigned long long test_srqwbytebc_21 (vector unsigned long long ra, unsigned int count)
479 return spu_srqwbytebc (ra, count);
482 vector signed long long test_srqwbytebc_22 (vector signed long long ra, unsigned int count)
484 return spu_srqwbytebc (ra, count);
487 vector float test_srqwbytebc_23 (vector float ra, unsigned int count)
489 return spu_srqwbytebc (ra, count);
492 vector double test_srqwbytebc_24 (vector double ra, unsigned int count)
494 return spu_srqwbytebc (ra, count);