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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [mips/] [mips-3d-3.c] - Blame information for rev 321

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 321 jeremybenn
/* { dg-do run } */
2
/* { dg-options "-O2 -mips3d" } */
3
 
4
/* Test MIPS-3D absolute compare builtin functions */
5
#include <stdlib.h>
6
#include <stdio.h>
7
 
8
typedef float v2sf __attribute__ ((vector_size(8)));
9
 
10
NOMIPS16 int test0 (v2sf a, v2sf b);
11
NOMIPS16 int test1 (v2sf a, v2sf b);
12
NOMIPS16 int test2 (v2sf a, v2sf b);
13
NOMIPS16 int test3 (v2sf a, v2sf b);
14
NOMIPS16 int test4 (v2sf a, v2sf b);
15
NOMIPS16 int test5 (v2sf a, v2sf b);
16
NOMIPS16 int test6 (v2sf a, v2sf b);
17
NOMIPS16 int test7 (v2sf a, v2sf b);
18
NOMIPS16 int test8 (v2sf a, v2sf b);
19
NOMIPS16 int test9 (v2sf a, v2sf b);
20
NOMIPS16 int test10 (v2sf a, v2sf b);
21
NOMIPS16 int test11 (v2sf a, v2sf b);
22
NOMIPS16 int test12 (v2sf a, v2sf b);
23
NOMIPS16 int test13 (v2sf a, v2sf b);
24
NOMIPS16 int test14 (v2sf a, v2sf b);
25
NOMIPS16 int test15 (v2sf a, v2sf b);
26
NOMIPS16 int test16 (v2sf a, v2sf b);
27
NOMIPS16 int test17 (v2sf a, v2sf b);
28
NOMIPS16 int test18 (v2sf a, v2sf b);
29
NOMIPS16 int test19 (v2sf a, v2sf b);
30
NOMIPS16 int test20 (v2sf a, v2sf b);
31
NOMIPS16 int test21 (v2sf a, v2sf b);
32
NOMIPS16 int test22 (v2sf a, v2sf b);
33
NOMIPS16 int test23 (v2sf a, v2sf b);
34
NOMIPS16 int test24 (v2sf a, v2sf b);
35
NOMIPS16 int test25 (v2sf a, v2sf b);
36
NOMIPS16 int test26 (v2sf a, v2sf b);
37
NOMIPS16 int test27 (v2sf a, v2sf b);
38
NOMIPS16 int test28 (v2sf a, v2sf b);
39
NOMIPS16 int test29 (v2sf a, v2sf b);
40
NOMIPS16 int test30 (v2sf a, v2sf b);
41
NOMIPS16 int test31 (v2sf a, v2sf b);
42
NOMIPS16 int test32 (v2sf a, v2sf b);
43
NOMIPS16 int test33 (v2sf a, v2sf b);
44
NOMIPS16 int test34 (v2sf a, v2sf b);
45
NOMIPS16 int test35 (v2sf a, v2sf b);
46
NOMIPS16 int test36 (v2sf a, v2sf b);
47
NOMIPS16 int test37 (v2sf a, v2sf b);
48
NOMIPS16 int test38 (v2sf a, v2sf b);
49
NOMIPS16 int test39 (v2sf a, v2sf b);
50
NOMIPS16 int test40 (v2sf a, v2sf b);
51
NOMIPS16 int test41 (v2sf a, v2sf b);
52
NOMIPS16 int test42 (v2sf a, v2sf b);
53
NOMIPS16 int test43 (v2sf a, v2sf b);
54
NOMIPS16 int test44 (v2sf a, v2sf b);
55
NOMIPS16 int test45 (v2sf a, v2sf b);
56
NOMIPS16 int test46 (v2sf a, v2sf b);
57
NOMIPS16 int test47 (v2sf a, v2sf b);
58
NOMIPS16 int test48 (v2sf a, v2sf b);
59
NOMIPS16 int test49 (v2sf a, v2sf b);
60
NOMIPS16 int test50 (v2sf a, v2sf b);
61
NOMIPS16 int test51 (v2sf a, v2sf b);
62
NOMIPS16 int test52 (v2sf a, v2sf b);
63
NOMIPS16 int test53 (v2sf a, v2sf b);
64
NOMIPS16 int test54 (v2sf a, v2sf b);
65
NOMIPS16 int test55 (v2sf a, v2sf b);
66
NOMIPS16 int test56 (v2sf a, v2sf b);
67
NOMIPS16 int test57 (v2sf a, v2sf b);
68
NOMIPS16 int test58 (v2sf a, v2sf b);
69
NOMIPS16 int test59 (v2sf a, v2sf b);
70
NOMIPS16 int test60 (v2sf a, v2sf b);
71
NOMIPS16 int test61 (v2sf a, v2sf b);
72
NOMIPS16 int test62 (v2sf a, v2sf b);
73
NOMIPS16 int test63 (v2sf a, v2sf b);
74
 
75
float qnan = 1.0f/0.0f - 1.0f/0.0f;
76
 
77
NOMIPS16 int main ()
78
{
79
  int little_endian;
80
  v2sf a, b, c, d;
81
  int i, j, k, l;
82
 
83
  union { long long ll; int i[2]; } endianness_test;
84
  endianness_test.ll = 1;
85
  little_endian = endianness_test.i[0];
86
 
87
  /* cabs.eq.ps */
88
  a = (v2sf) {12, 34};
89
  b = (v2sf) {-56, -78};
90
  i = 0;
91
  j = 0;
92
  k = 0;
93
  l = 0;
94
  if (__builtin_mips_any_cabs_eq_ps(a, b) != i)
95
     abort ();
96
  if (__builtin_mips_upper_cabs_eq_ps(a, b) != j)
97
     abort ();
98
  if (__builtin_mips_lower_cabs_eq_ps(a, b) != k)
99
     abort ();
100
  if (__builtin_mips_all_cabs_eq_ps(a, b) != l)
101
     abort ();
102
 
103
  /* cabs.eq.ps */
104
  a = (v2sf) {12, 34};
105
  b = (v2sf) {-12, -78};
106
  i = 1;
107
  if (little_endian)
108
    {
109
      j = 0;
110
      k = 1;
111
    }
112
  else
113
    {
114
      j = 1;
115
      k = 0;
116
    }
117
  l = 0;
118
  if (__builtin_mips_any_cabs_eq_ps(a, b) != i)
119
     abort ();
120
  if (__builtin_mips_upper_cabs_eq_ps(a, b) != j)
121
     abort ();
122
  if (__builtin_mips_lower_cabs_eq_ps(a, b) != k)
123
     abort ();
124
  if (__builtin_mips_all_cabs_eq_ps(a, b) != l)
125
     abort ();
126
 
127
  /* cabs.eq.ps */
128
  a = (v2sf) {12, 34};
129
  b = (v2sf) {-56, -34};
130
  i = 1;
131
  if (little_endian)
132
    {
133
      j = 1;
134
      k = 0;
135
    }
136
  else
137
    {
138
      j = 0;
139
      k = 1;
140
    }
141
  l = 0;
142
  if (__builtin_mips_any_cabs_eq_ps(a, b) != i)
143
     abort ();
144
  if (__builtin_mips_upper_cabs_eq_ps(a, b) != j)
145
     abort ();
146
  if (__builtin_mips_lower_cabs_eq_ps(a, b) != k)
147
     abort ();
148
  if (__builtin_mips_all_cabs_eq_ps(a, b) != l)
149
     abort ();
150
 
151
  /* cabs.eq.ps */
152
  a = (v2sf) {12, 34};
153
  b = (v2sf) {-12, -34};
154
  i = 1;
155
  j = 1;
156
  k = 1;
157
  l = 1;
158
  if (__builtin_mips_any_cabs_eq_ps(a, b) != i)
159
     abort ();
160
  if (__builtin_mips_upper_cabs_eq_ps(a, b) != j)
161
     abort ();
162
  if (__builtin_mips_lower_cabs_eq_ps(a, b) != k)
163
     abort ();
164
  if (__builtin_mips_all_cabs_eq_ps(a, b) != l)
165
     abort ();
166
 
167
  /* Test all comparisons */
168
  if (little_endian)
169
    {
170
      a = (v2sf) {1984.0, 10.58};
171
      b = (v2sf) {-1984.0, -567.345};
172
    }
173
  else
174
    {
175
      a = (v2sf) {10.58, 1984.0};
176
      b = (v2sf) {-567.345, -1984.0};
177
    }
178
 
179
  i = test0 (a, b);
180
  if (i != 0)
181
    abort ();
182
  i = test1 (a, b);
183
  if (i != 0)
184
    abort ();
185
  i = test2 (a, b);
186
  if (i != 0)
187
    abort ();
188
  i = test3 (a, b);
189
  if (i != 0)
190
    abort ();
191
  i = test4 (a, b);
192
  if (i != 0)
193
    abort ();
194
  i = test5 (a, b);
195
  if (i != 0)
196
    abort ();
197
  i = test6 (a, b);
198
  if (i != 0)
199
    abort ();
200
  i = test7 (a, b);
201
  if (i != 0)
202
    abort ();
203
  i = test8 (a, b);
204
  if (i != 1)
205
    abort ();
206
  i = test9 (a, b);
207
  if (i != 0)
208
    abort ();
209
  i = test10 (a, b);
210
  if (i != 1)
211
    abort ();
212
  i = test11 (a, b);
213
  if (i != 0)
214
    abort ();
215
  i = test12 (a, b);
216
  if (i != 1)
217
    abort ();
218
  i = test13 (a, b);
219
  if (i != 0)
220
    abort ();
221
  i = test14 (a, b);
222
  if (i != 1)
223
    abort ();
224
  i = test15 (a, b);
225
  if (i != 0)
226
    abort ();
227
  i = test16 (a, b);
228
  if (i != 1)
229
    abort ();
230
  i = test17 (a, b);
231
  if (i != 1)
232
    abort ();
233
  i = test18 (a, b);
234
  if (i != 0)
235
    abort ();
236
  i = test19 (a, b);
237
  if (i != 0)
238
    abort ();
239
  i = test20 (a, b);
240
  if (i != 1)
241
    abort ();
242
  i = test21 (a, b);
243
  if (i != 1)
244
    abort ();
245
  i = test22 (a, b);
246
  if (i != 0)
247
    abort ();
248
  i = test23 (a, b);
249
  if (i != 0)
250
    abort ();
251
  i = test24 (a, b);
252
  if (i != 1)
253
    abort ();
254
  i = test25 (a, b);
255
  if (i != 1)
256
    abort ();
257
  i = test26 (a, b);
258
  if (i != 1)
259
    abort ();
260
  i = test27 (a, b);
261
  if (i != 1)
262
    abort ();
263
  i = test28 (a, b);
264
  if (i != 1)
265
    abort ();
266
  i = test29 (a, b);
267
  if (i != 1)
268
    abort ();
269
  i = test30 (a, b);
270
  if (i != 1)
271
    abort ();
272
  i = test31 (a, b);
273
  if (i != 1)
274
    abort ();
275
  i = test32 (a, b);
276
  if (i != 0)
277
    abort ();
278
  i = test33 (a, b);
279
  if (i != 0)
280
    abort ();
281
  i = test34 (a, b);
282
  if (i != 0)
283
    abort ();
284
  i = test35 (a, b);
285
  if (i != 0)
286
    abort ();
287
  i = test36 (a, b);
288
  if (i != 0)
289
    abort ();
290
  i = test37 (a, b);
291
  if (i != 0)
292
    abort ();
293
  i = test38 (a, b);
294
  if (i != 0)
295
    abort ();
296
  i = test39 (a, b);
297
  if (i != 0)
298
    abort ();
299
  i = test40 (a, b);
300
  if (i != 1)
301
    abort ();
302
  i = test41 (a, b);
303
  if (i != 0)
304
    abort ();
305
  i = test42 (a, b);
306
  if (i != 1)
307
    abort ();
308
  i = test43 (a, b);
309
  if (i != 0)
310
    abort ();
311
  i = test44 (a, b);
312
  if (i != 1)
313
    abort ();
314
  i = test45 (a, b);
315
  if (i != 0)
316
    abort ();
317
  i = test46 (a, b);
318
  if (i != 1)
319
    abort ();
320
  i = test47 (a, b);
321
  if (i != 0)
322
    abort ();
323
  i = test48 (a, b);
324
  if (i != 1)
325
    abort ();
326
  i = test49 (a, b);
327
  if (i != 1)
328
    abort ();
329
  i = test50 (a, b);
330
  if (i != 0)
331
    abort ();
332
  i = test51 (a, b);
333
  if (i != 0)
334
    abort ();
335
  i = test52 (a, b);
336
  if (i != 1)
337
    abort ();
338
  i = test53 (a, b);
339
  if (i != 1)
340
    abort ();
341
  i = test54 (a, b);
342
  if (i != 0)
343
    abort ();
344
  i = test55 (a, b);
345
  if (i != 0)
346
    abort ();
347
  i = test56 (a, b);
348
  if (i != 1)
349
    abort ();
350
  i = test57 (a, b);
351
  if (i != 1)
352
    abort ();
353
  i = test58 (a, b);
354
  if (i != 1)
355
    abort ();
356
  i = test59 (a, b);
357
  if (i != 1)
358
    abort ();
359
  i = test60 (a, b);
360
  if (i != 1)
361
    abort ();
362
  i = test61 (a, b);
363
  if (i != 1)
364
    abort ();
365
  i = test62 (a, b);
366
  if (i != 1)
367
    abort ();
368
  i = test63 (a, b);
369
  if (i != 1)
370
    abort ();
371
 
372
  /* Reverse arguments */
373
  i = test0 (b, a);
374
  if (i != 0)
375
    abort ();
376
  i = test1 (b, a);
377
  if (i != 0)
378
    abort ();
379
  i = test2 (b, a);
380
  if (i != 0)
381
    abort ();
382
  i = test3 (b, a);
383
  if (i != 0)
384
    abort ();
385
  i = test4 (b, a);
386
  if (i != 0)
387
    abort ();
388
  i = test5 (b, a);
389
  if (i != 0)
390
    abort ();
391
  i = test6 (b, a);
392
  if (i != 0)
393
    abort ();
394
  i = test7 (b, a);
395
  if (i != 0)
396
    abort ();
397
  i = test8 (b, a);
398
  if (i != 1)
399
    abort ();
400
  i = test9 (b, a);
401
  if (i != 0)
402
    abort ();
403
  i = test10 (b, a);
404
  if (i != 1)
405
    abort ();
406
  i = test11 (b, a);
407
  if (i != 0)
408
    abort ();
409
  i = test12 (b, a);
410
  if (i != 1)
411
    abort ();
412
  i = test13 (b, a);
413
  if (i != 0)
414
    abort ();
415
  i = test14 (b, a);
416
  if (i != 1)
417
    abort ();
418
  i = test15 (b, a);
419
  if (i != 0)
420
    abort ();
421
  i = test16 (b, a);
422
  if (i != 0)
423
    abort ();
424
  i = test17 (b, a);
425
  if (i != 0)
426
    abort ();
427
  i = test18 (b, a);
428
  if (i != 0)
429
    abort ();
430
  i = test19 (b, a);
431
  if (i != 0)
432
    abort ();
433
  i = test20 (b, a);
434
  if (i != 0)
435
    abort ();
436
  i = test21 (b, a);
437
  if (i != 0)
438
    abort ();
439
  i = test22 (b, a);
440
  if (i != 0)
441
    abort ();
442
  i = test23 (b, a);
443
  if (i != 0)
444
    abort ();
445
  i = test24 (b, a);
446
  if (i != 1)
447
    abort ();
448
  i = test25 (b, a);
449
  if (i != 0)
450
    abort ();
451
  i = test26 (b, a);
452
  if (i != 1)
453
    abort ();
454
  i = test27 (b, a);
455
  if (i != 0)
456
    abort ();
457
  i = test28 (b, a);
458
  if (i != 1)
459
    abort ();
460
  i = test29 (b, a);
461
  if (i != 0)
462
    abort ();
463
  i = test30 (b, a);
464
  if (i != 1)
465
    abort ();
466
  i = test31 (b, a);
467
  if (i != 0)
468
    abort ();
469
  i = test32 (b, a);
470
  if (i != 0)
471
    abort ();
472
  i = test33 (b, a);
473
  if (i != 0)
474
    abort ();
475
  i = test34 (b, a);
476
  if (i != 0)
477
    abort ();
478
  i = test35 (b, a);
479
  if (i != 0)
480
    abort ();
481
  i = test36 (b, a);
482
  if (i != 0)
483
    abort ();
484
  i = test37 (b, a);
485
  if (i != 0)
486
    abort ();
487
  i = test38 (b, a);
488
  if (i != 0)
489
    abort ();
490
  i = test39 (b, a);
491
  if (i != 0)
492
    abort ();
493
  i = test40 (b, a);
494
  if (i != 1)
495
    abort ();
496
  i = test41 (b, a);
497
  if (i != 0)
498
    abort ();
499
  i = test42 (b, a);
500
  if (i != 1)
501
    abort ();
502
  i = test43 (b, a);
503
  if (i != 0)
504
    abort ();
505
  i = test44 (b, a);
506
  if (i != 1)
507
    abort ();
508
  i = test45 (b, a);
509
  if (i != 0)
510
    abort ();
511
  i = test46 (b, a);
512
  if (i != 1)
513
    abort ();
514
  i = test47 (b, a);
515
  if (i != 0)
516
    abort ();
517
  i = test48 (b, a);
518
  if (i != 0)
519
    abort ();
520
  i = test49 (b, a);
521
  if (i != 0)
522
    abort ();
523
  i = test50 (b, a);
524
  if (i != 0)
525
    abort ();
526
  i = test51 (b, a);
527
  if (i != 0)
528
    abort ();
529
  i = test52 (b, a);
530
  if (i != 0)
531
    abort ();
532
  i = test53 (b, a);
533
  if (i != 0)
534
    abort ();
535
  i = test54 (b, a);
536
  if (i != 0)
537
    abort ();
538
  i = test55 (b, a);
539
  if (i != 0)
540
    abort ();
541
  i = test56 (b, a);
542
  if (i != 1)
543
    abort ();
544
  i = test57 (b, a);
545
  if (i != 0)
546
    abort ();
547
  i = test58 (b, a);
548
  if (i != 1)
549
    abort ();
550
  i = test59 (b, a);
551
  if (i != 0)
552
    abort ();
553
  i = test60 (b, a);
554
  if (i != 1)
555
    abort ();
556
  i = test61 (b, a);
557
  if (i != 0)
558
    abort ();
559
  i = test62 (b, a);
560
  if (i != 1)
561
    abort ();
562
  i = test63 (b, a);
563
  if (i != 0)
564
    abort ();
565
 
566
#ifndef __FAST_MATH__
567
  /* Test all comparisons */
568
  if (little_endian)
569
    {
570
      a = (v2sf) {qnan, qnan};
571
      b = (v2sf) {-1984.0, -567.345};
572
    }
573
  else
574
    {
575
      a = (v2sf) {qnan, qnan};
576
      b = (v2sf) {-567.345, -1984.0};
577
    }
578
 
579
  i = test0 (a, b);
580
  if (i != 0)
581
    abort ();
582
  i = test1 (a, b);
583
  if (i != 0)
584
    abort ();
585
  i = test2 (a, b);
586
  if (i != 0)
587
    abort ();
588
  i = test3 (a, b);
589
  if (i != 0)
590
    abort ();
591
  i = test4 (a, b);
592
  if (i != 1)
593
    abort ();
594
  i = test5 (a, b);
595
  if (i != 1)
596
    abort ();
597
  i = test6 (a, b);
598
  if (i != 1)
599
    abort ();
600
  i = test7 (a, b);
601
  if (i != 1)
602
    abort ();
603
  i = test8 (a, b);
604
  if (i != 0)
605
    abort ();
606
  i = test9 (a, b);
607
  if (i != 0)
608
    abort ();
609
  i = test10 (a, b);
610
  if (i != 0)
611
    abort ();
612
  i = test11 (a, b);
613
  if (i != 0)
614
    abort ();
615
  i = test12 (a, b);
616
  if (i != 1)
617
    abort ();
618
  i = test13 (a, b);
619
  if (i != 1)
620
    abort ();
621
  i = test14 (a, b);
622
  if (i != 1)
623
    abort ();
624
  i = test15 (a, b);
625
  if (i != 1)
626
    abort ();
627
  i = test16 (a, b);
628
  if (i != 0)
629
    abort ();
630
  i = test17 (a, b);
631
  if (i != 0)
632
    abort ();
633
  i = test18 (a, b);
634
  if (i != 0)
635
    abort ();
636
  i = test19 (a, b);
637
  if (i != 0)
638
    abort ();
639
  i = test20 (a, b);
640
  if (i != 1)
641
    abort ();
642
  i = test21 (a, b);
643
  if (i != 1)
644
    abort ();
645
  i = test22 (a, b);
646
  if (i != 1)
647
    abort ();
648
  i = test23 (a, b);
649
  if (i != 1)
650
    abort ();
651
  i = test24 (a, b);
652
  if (i != 0)
653
    abort ();
654
  i = test25 (a, b);
655
  if (i != 0)
656
    abort ();
657
  i = test26 (a, b);
658
  if (i != 0)
659
    abort ();
660
  i = test27 (a, b);
661
  if (i != 0)
662
    abort ();
663
  i = test28 (a, b);
664
  if (i != 1)
665
    abort ();
666
  i = test29 (a, b);
667
  if (i != 1)
668
    abort ();
669
  i = test30 (a, b);
670
  if (i != 1)
671
    abort ();
672
  i = test31 (a, b);
673
  if (i != 1)
674
    abort ();
675
  i = test32 (a, b);
676
  if (i != 0)
677
    abort ();
678
  i = test33 (a, b);
679
  if (i != 0)
680
    abort ();
681
  i = test34 (a, b);
682
  if (i != 0)
683
    abort ();
684
  i = test35 (a, b);
685
  if (i != 0)
686
    abort ();
687
  i = test36 (a, b);
688
  if (i != 1)
689
    abort ();
690
  i = test37 (a, b);
691
  if (i != 1)
692
    abort ();
693
  i = test38 (a, b);
694
  if (i != 1)
695
    abort ();
696
  i = test39 (a, b);
697
  if (i != 1)
698
    abort ();
699
  i = test40 (a, b);
700
  if (i != 0)
701
    abort ();
702
  i = test41 (a, b);
703
  if (i != 0)
704
    abort ();
705
  i = test42 (a, b);
706
  if (i != 0)
707
    abort ();
708
  i = test43 (a, b);
709
  if (i != 0)
710
    abort ();
711
  i = test44 (a, b);
712
  if (i != 1)
713
    abort ();
714
  i = test45 (a, b);
715
  if (i != 1)
716
    abort ();
717
  i = test46 (a, b);
718
  if (i != 1)
719
    abort ();
720
  i = test47 (a, b);
721
  if (i != 1)
722
    abort ();
723
  i = test48 (a, b);
724
  if (i != 0)
725
    abort ();
726
  i = test49 (a, b);
727
  if (i != 0)
728
    abort ();
729
  i = test50 (a, b);
730
  if (i != 0)
731
    abort ();
732
  i = test51 (a, b);
733
  if (i != 0)
734
    abort ();
735
  i = test52 (a, b);
736
  if (i != 1)
737
    abort ();
738
  i = test53 (a, b);
739
  if (i != 1)
740
    abort ();
741
  i = test54 (a, b);
742
  if (i != 1)
743
    abort ();
744
  i = test55 (a, b);
745
  if (i != 1)
746
    abort ();
747
  i = test56 (a, b);
748
  if (i != 0)
749
    abort ();
750
  i = test57 (a, b);
751
  if (i != 0)
752
    abort ();
753
  i = test58 (a, b);
754
  if (i != 0)
755
    abort ();
756
  i = test59 (a, b);
757
  if (i != 0)
758
    abort ();
759
  i = test60 (a, b);
760
  if (i != 1)
761
    abort ();
762
  i = test61 (a, b);
763
  if (i != 1)
764
    abort ();
765
  i = test62 (a, b);
766
  if (i != 1)
767
    abort ();
768
  i = test63 (a, b);
769
  if (i != 1)
770
    abort ();
771
#endif
772
 
773
  printf ("Test Passes\n");
774
  exit (0);
775
}
776
 
777
NOMIPS16 int test0 (v2sf a, v2sf b)
778
{
779
  return __builtin_mips_any_cabs_f_ps (a, b);
780
}
781
 
782
NOMIPS16 int test1 (v2sf a, v2sf b)
783
{
784
  return __builtin_mips_upper_cabs_f_ps (a, b);
785
}
786
 
787
NOMIPS16 int test2 (v2sf a, v2sf b)
788
{
789
  return __builtin_mips_lower_cabs_f_ps (a, b);
790
}
791
 
792
NOMIPS16 int test3 (v2sf a, v2sf b)
793
{
794
  return __builtin_mips_all_cabs_f_ps (a, b);
795
}
796
 
797
NOMIPS16 int test4 (v2sf a, v2sf b)
798
{
799
  return __builtin_mips_any_cabs_un_ps (a, b);
800
}
801
 
802
NOMIPS16 int test5 (v2sf a, v2sf b)
803
{
804
  return __builtin_mips_upper_cabs_un_ps (a, b);
805
}
806
 
807
NOMIPS16 int test6 (v2sf a, v2sf b)
808
{
809
  return __builtin_mips_lower_cabs_un_ps (a, b);
810
}
811
 
812
NOMIPS16 int test7 (v2sf a, v2sf b)
813
{
814
  return __builtin_mips_all_cabs_un_ps (a, b);
815
}
816
 
817
NOMIPS16 int test8 (v2sf a, v2sf b)
818
{
819
  return __builtin_mips_any_cabs_eq_ps (a, b);
820
}
821
 
822
NOMIPS16 int test9 (v2sf a, v2sf b)
823
{
824
  return __builtin_mips_upper_cabs_eq_ps (a, b);
825
}
826
 
827
NOMIPS16 int test10 (v2sf a, v2sf b)
828
{
829
  return __builtin_mips_lower_cabs_eq_ps (a, b);
830
}
831
 
832
NOMIPS16 int test11 (v2sf a, v2sf b)
833
{
834
  return __builtin_mips_all_cabs_eq_ps (a, b);
835
}
836
 
837
NOMIPS16 int test12 (v2sf a, v2sf b)
838
{
839
  return __builtin_mips_any_cabs_ueq_ps (a, b);
840
}
841
 
842
NOMIPS16 int test13 (v2sf a, v2sf b)
843
{
844
  return __builtin_mips_upper_cabs_ueq_ps (a, b);
845
}
846
 
847
NOMIPS16 int test14 (v2sf a, v2sf b)
848
{
849
  return __builtin_mips_lower_cabs_ueq_ps (a, b);
850
}
851
 
852
NOMIPS16 int test15 (v2sf a, v2sf b)
853
{
854
  return __builtin_mips_all_cabs_ueq_ps (a, b);
855
}
856
 
857
NOMIPS16 int test16 (v2sf a, v2sf b)
858
{
859
  return __builtin_mips_any_cabs_olt_ps (a, b);
860
}
861
 
862
NOMIPS16 int test17 (v2sf a, v2sf b)
863
{
864
  return __builtin_mips_upper_cabs_olt_ps (a, b);
865
}
866
 
867
NOMIPS16 int test18 (v2sf a, v2sf b)
868
{
869
  return __builtin_mips_lower_cabs_olt_ps (a, b);
870
}
871
 
872
NOMIPS16 int test19 (v2sf a, v2sf b)
873
{
874
  return __builtin_mips_all_cabs_olt_ps (a, b);
875
}
876
 
877
NOMIPS16 int test20 (v2sf a, v2sf b)
878
{
879
  return __builtin_mips_any_cabs_ult_ps (a, b);
880
}
881
 
882
NOMIPS16 int test21 (v2sf a, v2sf b)
883
{
884
  return __builtin_mips_upper_cabs_ult_ps (a, b);
885
}
886
 
887
NOMIPS16 int test22 (v2sf a, v2sf b)
888
{
889
  return __builtin_mips_lower_cabs_ult_ps (a, b);
890
}
891
 
892
NOMIPS16 int test23 (v2sf a, v2sf b)
893
{
894
  return __builtin_mips_all_cabs_ult_ps (a, b);
895
}
896
 
897
NOMIPS16 int test24 (v2sf a, v2sf b)
898
{
899
  return __builtin_mips_any_cabs_ole_ps (a, b);
900
}
901
 
902
NOMIPS16 int test25 (v2sf a, v2sf b)
903
{
904
  return __builtin_mips_upper_cabs_ole_ps (a, b);
905
}
906
 
907
NOMIPS16 int test26 (v2sf a, v2sf b)
908
{
909
  return __builtin_mips_lower_cabs_ole_ps (a, b);
910
}
911
 
912
NOMIPS16 int test27 (v2sf a, v2sf b)
913
{
914
  return __builtin_mips_all_cabs_ole_ps (a, b);
915
}
916
 
917
NOMIPS16 int test28 (v2sf a, v2sf b)
918
{
919
  return __builtin_mips_any_cabs_ule_ps (a, b);
920
}
921
 
922
NOMIPS16 int test29 (v2sf a, v2sf b)
923
{
924
  return __builtin_mips_upper_cabs_ule_ps (a, b);
925
}
926
 
927
NOMIPS16 int test30 (v2sf a, v2sf b)
928
{
929
  return __builtin_mips_lower_cabs_ule_ps (a, b);
930
}
931
 
932
NOMIPS16 int test31 (v2sf a, v2sf b)
933
{
934
  return __builtin_mips_all_cabs_ule_ps (a, b);
935
}
936
 
937
NOMIPS16 int test32 (v2sf a, v2sf b)
938
{
939
  return __builtin_mips_any_cabs_sf_ps (a, b);
940
}
941
 
942
NOMIPS16 int test33 (v2sf a, v2sf b)
943
{
944
  return __builtin_mips_upper_cabs_sf_ps (a, b);
945
}
946
 
947
NOMIPS16 int test34 (v2sf a, v2sf b)
948
{
949
  return __builtin_mips_lower_cabs_sf_ps (a, b);
950
}
951
 
952
NOMIPS16 int test35 (v2sf a, v2sf b)
953
{
954
  return __builtin_mips_all_cabs_sf_ps (a, b);
955
}
956
 
957
NOMIPS16 int test36 (v2sf a, v2sf b)
958
{
959
  return __builtin_mips_any_cabs_ngle_ps (a, b);
960
}
961
 
962
NOMIPS16 int test37 (v2sf a, v2sf b)
963
{
964
  return __builtin_mips_upper_cabs_ngle_ps (a, b);
965
}
966
 
967
NOMIPS16 int test38 (v2sf a, v2sf b)
968
{
969
  return __builtin_mips_lower_cabs_ngle_ps (a, b);
970
}
971
 
972
NOMIPS16 int test39 (v2sf a, v2sf b)
973
{
974
  return __builtin_mips_all_cabs_ngle_ps (a, b);
975
}
976
 
977
NOMIPS16 int test40 (v2sf a, v2sf b)
978
{
979
  return __builtin_mips_any_cabs_seq_ps (a, b);
980
}
981
 
982
NOMIPS16 int test41 (v2sf a, v2sf b)
983
{
984
  return __builtin_mips_upper_cabs_seq_ps (a, b);
985
}
986
 
987
NOMIPS16 int test42 (v2sf a, v2sf b)
988
{
989
  return __builtin_mips_lower_cabs_seq_ps (a, b);
990
}
991
 
992
NOMIPS16 int test43 (v2sf a, v2sf b)
993
{
994
  return __builtin_mips_all_cabs_seq_ps (a, b);
995
}
996
 
997
NOMIPS16 int test44 (v2sf a, v2sf b)
998
{
999
  return __builtin_mips_any_cabs_ngl_ps (a, b);
1000
}
1001
 
1002
NOMIPS16 int test45 (v2sf a, v2sf b)
1003
{
1004
  return __builtin_mips_upper_cabs_ngl_ps (a, b);
1005
}
1006
 
1007
NOMIPS16 int test46 (v2sf a, v2sf b)
1008
{
1009
  return __builtin_mips_lower_cabs_ngl_ps (a, b);
1010
}
1011
 
1012
NOMIPS16 int test47 (v2sf a, v2sf b)
1013
{
1014
  return __builtin_mips_all_cabs_ngl_ps (a, b);
1015
}
1016
 
1017
NOMIPS16 int test48 (v2sf a, v2sf b)
1018
{
1019
  return __builtin_mips_any_cabs_lt_ps (a, b);
1020
}
1021
 
1022
NOMIPS16 int test49 (v2sf a, v2sf b)
1023
{
1024
  return __builtin_mips_upper_cabs_lt_ps (a, b);
1025
}
1026
 
1027
NOMIPS16 int test50 (v2sf a, v2sf b)
1028
{
1029
  return __builtin_mips_lower_cabs_lt_ps (a, b);
1030
}
1031
 
1032
NOMIPS16 int test51 (v2sf a, v2sf b)
1033
{
1034
  return __builtin_mips_all_cabs_lt_ps (a, b);
1035
}
1036
 
1037
NOMIPS16 int test52 (v2sf a, v2sf b)
1038
{
1039
  return __builtin_mips_any_cabs_nge_ps (a, b);
1040
}
1041
 
1042
NOMIPS16 int test53 (v2sf a, v2sf b)
1043
{
1044
  return __builtin_mips_upper_cabs_nge_ps (a, b);
1045
}
1046
 
1047
NOMIPS16 int test54 (v2sf a, v2sf b)
1048
{
1049
  return __builtin_mips_lower_cabs_nge_ps (a, b);
1050
}
1051
 
1052
NOMIPS16 int test55 (v2sf a, v2sf b)
1053
{
1054
  return __builtin_mips_all_cabs_nge_ps (a, b);
1055
}
1056
 
1057
NOMIPS16 int test56 (v2sf a, v2sf b)
1058
{
1059
  return __builtin_mips_any_cabs_le_ps (a, b);
1060
}
1061
 
1062
NOMIPS16 int test57 (v2sf a, v2sf b)
1063
{
1064
  return __builtin_mips_upper_cabs_le_ps (a, b);
1065
}
1066
 
1067
NOMIPS16 int test58 (v2sf a, v2sf b)
1068
{
1069
  return __builtin_mips_lower_cabs_le_ps (a, b);
1070
}
1071
 
1072
NOMIPS16 int test59 (v2sf a, v2sf b)
1073
{
1074
  return __builtin_mips_all_cabs_le_ps (a, b);
1075
}
1076
 
1077
NOMIPS16 int test60 (v2sf a, v2sf b)
1078
{
1079
  return __builtin_mips_any_cabs_ngt_ps (a, b);
1080
}
1081
 
1082
NOMIPS16 int test61 (v2sf a, v2sf b)
1083
{
1084
  return __builtin_mips_upper_cabs_ngt_ps (a, b);
1085
}
1086
 
1087
NOMIPS16 int test62 (v2sf a, v2sf b)
1088
{
1089
  return __builtin_mips_lower_cabs_ngt_ps (a, b);
1090
}
1091
 
1092
NOMIPS16 int test63 (v2sf a, v2sf b)
1093
{
1094
  return __builtin_mips_all_cabs_ngt_ps (a, b);
1095
}

powered by: WebSVN 2.1.0

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