OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.target/] [spu/] [intrinsics-sr.c] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 327 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-std=c99" } */
3
 
4
#include <spu_intrinsics.h>
5
 
6
/* spu_sr */
7
 
8
vector unsigned short test_sr_1 (vector unsigned short ra, vector unsigned short count)
9
{
10
  return spu_sr (ra, count);
11
}
12
 
13
vector signed short test_sr_2 (vector signed short ra, vector unsigned short count)
14
{
15
  return spu_sr (ra, count);
16
}
17
 
18
vector unsigned int test_sr_3 (vector unsigned int ra, vector unsigned int count)
19
{
20
  return spu_sr (ra, count);
21
}
22
 
23
vector signed int test_sr_4 (vector signed int ra, vector unsigned int count)
24
{
25
  return spu_sr (ra, count);
26
}
27
 
28
vector unsigned short test_sr_5 (vector unsigned short ra)
29
{
30
  return spu_sr (ra, 11);
31
}
32
 
33
vector signed short test_sr_6 (vector signed short ra)
34
{
35
  return spu_sr (ra, 11);
36
}
37
 
38
vector unsigned short test_sr_7 (vector unsigned short ra, unsigned int count)
39
{
40
  return spu_sr (ra, count);
41
}
42
 
43
vector signed short test_sr_8 (vector signed short ra, unsigned int count)
44
{
45
  return spu_sr (ra, count);
46
}
47
 
48
vector unsigned int test_sr_9 (vector unsigned int ra)
49
{
50
  return spu_sr (ra, 11);
51
}
52
 
53
vector signed int test_sr_10 (vector signed int ra)
54
{
55
  return spu_sr (ra, 11);
56
}
57
 
58
vector unsigned int test_sr_11 (vector unsigned int ra, unsigned int count)
59
{
60
  return spu_sr (ra, count);
61
}
62
 
63
vector signed int test_sr_12 (vector signed int ra, unsigned int count)
64
{
65
  return spu_sr (ra, count);
66
}
67
 
68
 
69
/* spu_sra */
70
 
71
vector unsigned short test_sra_1 (vector unsigned short ra, vector unsigned short count)
72
{
73
  return spu_sra (ra, count);
74
}
75
 
76
vector signed short test_sra_2 (vector signed short ra, vector unsigned short count)
77
{
78
  return spu_sra (ra, count);
79
}
80
 
81
vector unsigned int test_sra_3 (vector unsigned int ra, vector unsigned int count)
82
{
83
  return spu_sra (ra, count);
84
}
85
 
86
vector signed int test_sra_4 (vector signed int ra, vector unsigned int count)
87
{
88
  return spu_sra (ra, count);
89
}
90
 
91
vector unsigned short test_sra_5 (vector unsigned short ra)
92
{
93
  return spu_sra (ra, 11);
94
}
95
 
96
vector signed short test_sra_6 (vector signed short ra)
97
{
98
  return spu_sra (ra, 11);
99
}
100
 
101
vector unsigned short test_sra_7 (vector unsigned short ra, unsigned int count)
102
{
103
  return spu_sra (ra, count);
104
}
105
 
106
vector signed short test_sra_8 (vector signed short ra, unsigned int count)
107
{
108
  return spu_sra (ra, count);
109
}
110
 
111
vector unsigned int test_sra_9 (vector unsigned int ra)
112
{
113
  return spu_sra (ra, 11);
114
}
115
 
116
vector signed int test_sra_10 (vector signed int ra)
117
{
118
  return spu_sra (ra, 11);
119
}
120
 
121
vector unsigned int test_sra_11 (vector unsigned int ra, unsigned int count)
122
{
123
  return spu_sra (ra, count);
124
}
125
 
126
vector signed int test_sra_12 (vector signed int ra, unsigned int count)
127
{
128
  return spu_sra (ra, count);
129
}
130
 
131
/* spu_srqw */
132
 
133
vector unsigned char test_srqw_1 (vector unsigned char ra)
134
{
135
  return spu_srqw (ra, 5);
136
}
137
 
138
vector signed char test_srqw_2 (vector signed char ra)
139
{
140
  return spu_srqw (ra, 5);
141
}
142
 
143
vector unsigned short test_srqw_3 (vector unsigned short ra)
144
{
145
  return spu_srqw (ra, 5);
146
}
147
 
148
vector signed short test_srqw_4 (vector signed short ra)
149
{
150
  return spu_srqw (ra, 5);
151
}
152
 
153
vector unsigned int test_srqw_5 (vector unsigned int ra)
154
{
155
  return spu_srqw (ra, 5);
156
}
157
 
158
vector signed int test_srqw_6 (vector signed int ra)
159
{
160
  return spu_srqw (ra, 5);
161
}
162
 
163
vector unsigned long test_srqw_7 (vector unsigned long ra)
164
{
165
  return spu_srqw (ra, 5);
166
}
167
 
168
vector signed long test_srqw_8 (vector signed long ra)
169
{
170
  return spu_srqw (ra, 5);
171
}
172
 
173
vector unsigned long long test_srqw_9 (vector unsigned long long ra)
174
{
175
  return spu_srqw (ra, 5);
176
}
177
 
178
vector signed long long test_srqw_10 (vector signed long long ra)
179
{
180
  return spu_srqw (ra, 5);
181
}
182
 
183
vector float test_srqw_11 (vector float ra)
184
{
185
  return spu_srqw (ra, 5);
186
}
187
 
188
vector double test_srqw_12 (vector double ra)
189
{
190
  return spu_srqw (ra, 5);
191
}
192
 
193
vector unsigned char test_srqw_13 (vector unsigned char ra, unsigned int count)
194
{
195
  return spu_srqw (ra, count);
196
}
197
 
198
vector signed char test_srqw_14 (vector signed char ra, unsigned int count)
199
{
200
  return spu_srqw (ra, count);
201
}
202
 
203
vector unsigned short test_srqw_15 (vector unsigned short ra, unsigned int count)
204
{
205
  return spu_srqw (ra, count);
206
}
207
 
208
vector signed short test_srqw_16 (vector signed short ra, unsigned int count)
209
{
210
  return spu_srqw (ra, count);
211
}
212
 
213
vector unsigned int test_srqw_17 (vector unsigned int ra, unsigned int count)
214
{
215
  return spu_srqw (ra, count);
216
}
217
 
218
vector signed int test_srqw_18 (vector signed int ra, unsigned int count)
219
{
220
  return spu_srqw (ra, count);
221
}
222
 
223
vector unsigned long test_srqw_19 (vector unsigned long ra, unsigned int count)
224
{
225
  return spu_srqw (ra, count);
226
}
227
 
228
vector signed long test_srqw_20 (vector signed long ra, unsigned int count)
229
{
230
  return spu_srqw (ra, count);
231
}
232
 
233
vector unsigned long long test_srqw_21 (vector unsigned long long ra, unsigned int count)
234
{
235
  return spu_srqw (ra, count);
236
}
237
 
238
vector signed long long test_srqw_22 (vector signed long long ra, unsigned int count)
239
{
240
  return spu_srqw (ra, count);
241
}
242
 
243
vector float test_srqw_23 (vector float ra, unsigned int count)
244
{
245
  return spu_srqw (ra, count);
246
}
247
 
248
vector double test_srqw_24 (vector double ra, unsigned int count)
249
{
250
  return spu_srqw (ra, count);
251
}
252
 
253
/* spu_srqwbyte */
254
 
255
vector unsigned char test_srqwbyte_1 (vector unsigned char ra)
256
{
257
  return spu_srqwbyte (ra, 5);
258
}
259
 
260
vector signed char test_srqwbyte_2 (vector signed char ra)
261
{
262
  return spu_srqwbyte (ra, 5);
263
}
264
 
265
vector unsigned short test_srqwbyte_3 (vector unsigned short ra)
266
{
267
  return spu_srqwbyte (ra, 5);
268
}
269
 
270
vector signed short test_srqwbyte_4 (vector signed short ra)
271
{
272
  return spu_srqwbyte (ra, 5);
273
}
274
 
275
vector unsigned int test_srqwbyte_5 (vector unsigned int ra)
276
{
277
  return spu_srqwbyte (ra, 5);
278
}
279
 
280
vector signed int test_srqwbyte_6 (vector signed int ra)
281
{
282
  return spu_srqwbyte (ra, 5);
283
}
284
 
285
vector unsigned long test_srqwbyte_7 (vector unsigned long ra)
286
{
287
  return spu_srqwbyte (ra, 5);
288
}
289
 
290
vector signed long test_srqwbyte_8 (vector signed long ra)
291
{
292
  return spu_srqwbyte (ra, 5);
293
}
294
 
295
vector unsigned long long test_srqwbyte_9 (vector unsigned long long ra)
296
{
297
  return spu_srqwbyte (ra, 5);
298
}
299
 
300
vector signed long long test_srqwbyte_10 (vector signed long long ra)
301
{
302
  return spu_srqwbyte (ra, 5);
303
}
304
 
305
vector float test_srqwbyte_11 (vector float ra)
306
{
307
  return spu_srqwbyte (ra, 5);
308
}
309
 
310
vector double test_srqwbyte_12 (vector double ra)
311
{
312
  return spu_srqwbyte (ra, 5);
313
}
314
 
315
vector unsigned char test_srqwbyte_13 (vector unsigned char ra, unsigned int count)
316
{
317
  return spu_srqwbyte (ra, count);
318
}
319
 
320
vector signed char test_srqwbyte_14 (vector signed char ra, unsigned int count)
321
{
322
  return spu_srqwbyte (ra, count);
323
}
324
 
325
vector unsigned short test_srqwbyte_15 (vector unsigned short ra, unsigned int count)
326
{
327
  return spu_srqwbyte (ra, count);
328
}
329
 
330
vector signed short test_srqwbyte_16 (vector signed short ra, unsigned int count)
331
{
332
  return spu_srqwbyte (ra, count);
333
}
334
 
335
vector unsigned int test_srqwbyte_17 (vector unsigned int ra, unsigned int count)
336
{
337
  return spu_srqwbyte (ra, count);
338
}
339
 
340
vector signed int test_srqwbyte_18 (vector signed int ra, unsigned int count)
341
{
342
  return spu_srqwbyte (ra, count);
343
}
344
 
345
vector unsigned long test_srqwbyte_19 (vector unsigned long ra, unsigned int count)
346
{
347
  return spu_srqwbyte (ra, count);
348
}
349
 
350
vector signed long test_srqwbyte_20 (vector signed long ra, unsigned int count)
351
{
352
  return spu_srqwbyte (ra, count);
353
}
354
 
355
vector unsigned long long test_srqwbyte_21 (vector unsigned long long ra, unsigned int count)
356
{
357
  return spu_srqwbyte (ra, count);
358
}
359
 
360
vector signed long long test_srqwbyte_22 (vector signed long long ra, unsigned int count)
361
{
362
  return spu_srqwbyte (ra, count);
363
}
364
 
365
vector float test_srqwbyte_23 (vector float ra, unsigned int count)
366
{
367
  return spu_srqwbyte (ra, count);
368
}
369
 
370
vector double test_srqwbyte_24 (vector double ra, unsigned int count)
371
{
372
  return spu_srqwbyte (ra, count);
373
}
374
 
375
/* spu_srqwbytebc */
376
 
377
vector unsigned char test_srqwbytebc_1 (vector unsigned char ra)
378
{
379
  return spu_srqwbytebc (ra, 40);
380
}
381
 
382
vector signed char test_srqwbytebc_2 (vector signed char ra)
383
{
384
  return spu_srqwbytebc (ra, 40);
385
}
386
 
387
vector unsigned short test_srqwbytebc_3 (vector unsigned short ra)
388
{
389
  return spu_srqwbytebc (ra, 40);
390
}
391
 
392
vector signed short test_srqwbytebc_4 (vector signed short ra)
393
{
394
  return spu_srqwbytebc (ra, 40);
395
}
396
 
397
vector unsigned int test_srqwbytebc_5 (vector unsigned int ra)
398
{
399
  return spu_srqwbytebc (ra, 40);
400
}
401
 
402
vector signed int test_srqwbytebc_6 (vector signed int ra)
403
{
404
  return spu_srqwbytebc (ra, 40);
405
}
406
 
407
vector unsigned long test_srqwbytebc_7 (vector unsigned long ra)
408
{
409
  return spu_srqwbytebc (ra, 40);
410
}
411
 
412
vector signed long test_srqwbytebc_8 (vector signed long ra)
413
{
414
  return spu_srqwbytebc (ra, 40);
415
}
416
 
417
vector unsigned long long test_srqwbytebc_9 (vector unsigned long long ra)
418
{
419
  return spu_srqwbytebc (ra, 40);
420
}
421
 
422
vector signed long long test_srqwbytebc_10 (vector signed long long ra)
423
{
424
  return spu_srqwbytebc (ra, 40);
425
}
426
 
427
vector float test_srqwbytebc_11 (vector float ra)
428
{
429
  return spu_srqwbytebc (ra, 40);
430
}
431
 
432
vector double test_srqwbytebc_12 (vector double ra)
433
{
434
  return spu_srqwbytebc (ra, 40);
435
}
436
 
437
vector unsigned char test_srqwbytebc_13 (vector unsigned char ra, unsigned int count)
438
{
439
  return spu_srqwbytebc (ra, count);
440
}
441
 
442
vector signed char test_srqwbytebc_14 (vector signed char ra, unsigned int count)
443
{
444
  return spu_srqwbytebc (ra, count);
445
}
446
 
447
vector unsigned short test_srqwbytebc_15 (vector unsigned short ra, unsigned int count)
448
{
449
  return spu_srqwbytebc (ra, count);
450
}
451
 
452
vector signed short test_srqwbytebc_16 (vector signed short ra, unsigned int count)
453
{
454
  return spu_srqwbytebc (ra, count);
455
}
456
 
457
vector unsigned int test_srqwbytebc_17 (vector unsigned int ra, unsigned int count)
458
{
459
  return spu_srqwbytebc (ra, count);
460
}
461
 
462
vector signed int test_srqwbytebc_18 (vector signed int ra, unsigned int count)
463
{
464
  return spu_srqwbytebc (ra, count);
465
}
466
 
467
vector unsigned long test_srqwbytebc_19 (vector unsigned long ra, unsigned int count)
468
{
469
  return spu_srqwbytebc (ra, count);
470
}
471
 
472
vector signed long test_srqwbytebc_20 (vector signed long ra, unsigned int count)
473
{
474
  return spu_srqwbytebc (ra, count);
475
}
476
 
477
vector unsigned long long test_srqwbytebc_21 (vector unsigned long long ra, unsigned int count)
478
{
479
  return spu_srqwbytebc (ra, count);
480
}
481
 
482
vector signed long long test_srqwbytebc_22 (vector signed long long ra, unsigned int count)
483
{
484
  return spu_srqwbytebc (ra, count);
485
}
486
 
487
vector float test_srqwbytebc_23 (vector float ra, unsigned int count)
488
{
489
  return spu_srqwbytebc (ra, count);
490
}
491
 
492
vector double test_srqwbytebc_24 (vector double ra, unsigned int count)
493
{
494
  return spu_srqwbytebc (ra, count);
495
}
496
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.