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-8.c] - Blame information for rev 816

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 and conditional move builtin functions */
5
#include <stdlib.h>
6
#include <stdio.h>
7
 
8
typedef float v2sf __attribute__((vector_size(8)));
9
 
10
NOMIPS16 v2sf test0 (v2sf a, v2sf b, v2sf c, v2sf d);
11
NOMIPS16 v2sf test1 (v2sf a, v2sf b, v2sf c, v2sf d);
12
NOMIPS16 v2sf test2 (v2sf a, v2sf b, v2sf c, v2sf d);
13
NOMIPS16 v2sf test3 (v2sf a, v2sf b, v2sf c, v2sf d);
14
NOMIPS16 v2sf test4 (v2sf a, v2sf b, v2sf c, v2sf d);
15
NOMIPS16 v2sf test5 (v2sf a, v2sf b, v2sf c, v2sf d);
16
NOMIPS16 v2sf test6 (v2sf a, v2sf b, v2sf c, v2sf d);
17
NOMIPS16 v2sf test7 (v2sf a, v2sf b, v2sf c, v2sf d);
18
NOMIPS16 v2sf test8 (v2sf a, v2sf b, v2sf c, v2sf d);
19
NOMIPS16 v2sf test9 (v2sf a, v2sf b, v2sf c, v2sf d);
20
NOMIPS16 v2sf test10 (v2sf a, v2sf b, v2sf c, v2sf d);
21
NOMIPS16 v2sf test11 (v2sf a, v2sf b, v2sf c, v2sf d);
22
NOMIPS16 v2sf test12 (v2sf a, v2sf b, v2sf c, v2sf d);
23
NOMIPS16 v2sf test13 (v2sf a, v2sf b, v2sf c, v2sf d);
24
NOMIPS16 v2sf test14 (v2sf a, v2sf b, v2sf c, v2sf d);
25
NOMIPS16 v2sf test15 (v2sf a, v2sf b, v2sf c, v2sf d);
26
NOMIPS16 v2sf test16 (v2sf a, v2sf b, v2sf c, v2sf d);
27
NOMIPS16 v2sf test17 (v2sf a, v2sf b, v2sf c, v2sf d);
28
NOMIPS16 v2sf test18 (v2sf a, v2sf b, v2sf c, v2sf d);
29
NOMIPS16 v2sf test19 (v2sf a, v2sf b, v2sf c, v2sf d);
30
NOMIPS16 v2sf test20 (v2sf a, v2sf b, v2sf c, v2sf d);
31
NOMIPS16 v2sf test21 (v2sf a, v2sf b, v2sf c, v2sf d);
32
NOMIPS16 v2sf test22 (v2sf a, v2sf b, v2sf c, v2sf d);
33
NOMIPS16 v2sf test23 (v2sf a, v2sf b, v2sf c, v2sf d);
34
NOMIPS16 v2sf test24 (v2sf a, v2sf b, v2sf c, v2sf d);
35
NOMIPS16 v2sf test25 (v2sf a, v2sf b, v2sf c, v2sf d);
36
NOMIPS16 v2sf test26 (v2sf a, v2sf b, v2sf c, v2sf d);
37
NOMIPS16 v2sf test27 (v2sf a, v2sf b, v2sf c, v2sf d);
38
NOMIPS16 v2sf test28 (v2sf a, v2sf b, v2sf c, v2sf d);
39
NOMIPS16 v2sf test29 (v2sf a, v2sf b, v2sf c, v2sf d);
40
NOMIPS16 v2sf test30 (v2sf a, v2sf b, v2sf c, v2sf d);
41
NOMIPS16 v2sf test31 (v2sf a, v2sf b, v2sf c, v2sf d);
42
 
43
float qnan = 1.0f/0.0f - 1.0f/0.0f;
44
 
45
NOMIPS16 int main ()
46
{
47
  v2sf a, b, c, d, e, f;
48
 
49
  /* Case 1 {diff, diff} */
50
  /* movt.ps */
51
  a = (v2sf) {5, 12};
52
  b = (v2sf) {-7, -6};
53
  c = (v2sf) {33, 123};
54
  d = (v2sf) {8, 78};
55
  e = __builtin_mips_movt_cabs_eq_ps (a, b, c, d);
56
  f = (v2sf) {33, 123};
57
  if (!__builtin_mips_all_c_eq_ps (e, f))
58
    abort ();
59
 
60
  /* movf.ps */
61
  e = __builtin_mips_movf_cabs_eq_ps (a, b, c, d);
62
  f = (v2sf) {8, 78};
63
  if (!__builtin_mips_all_c_eq_ps (e, f))
64
    abort ();
65
 
66
  /* Case 2 {same, diff} */
67
  /* movt.ps */
68
  a = (v2sf) {5, 12};
69
  b = (v2sf) {-5, -6};
70
  c = (v2sf) {33, 123};
71
  d = (v2sf) {8, 78};
72
  e = __builtin_mips_movt_cabs_eq_ps (a, b, c, d);
73
  f = (v2sf) {8, 123};
74
  if (!__builtin_mips_all_c_eq_ps (e, f))
75
    abort ();
76
 
77
  /* movf.ps */
78
  e = __builtin_mips_movf_cabs_eq_ps (a, b, c, d);
79
  f = (v2sf) {33, 78};
80
  if (!__builtin_mips_all_c_eq_ps (e, f))
81
    abort ();
82
 
83
  /* Case 3 {diff, same} */
84
  /* movt.ps */
85
  a = (v2sf) {5, 12};
86
  b = (v2sf) {-9, -12};
87
  c = (v2sf) {33, 123};
88
  d = (v2sf) {8, 78};
89
  e = __builtin_mips_movt_cabs_eq_ps (a, b, c, d);
90
  f = (v2sf) {33, 78};
91
  if (!__builtin_mips_all_c_eq_ps (e, f))
92
    abort ();
93
 
94
  /* movf.ps */
95
  e = __builtin_mips_movf_cabs_eq_ps (a, b, c, d);
96
  f = (v2sf) {8, 123};
97
  if (!__builtin_mips_all_c_eq_ps (e, f))
98
    abort ();
99
 
100
  /* Case 4 {same, same} */
101
  /* movt.ps */
102
  a = (v2sf) {5, 12};
103
  b = (v2sf) {-5, -12};
104
  c = (v2sf) {33, 123};
105
  d = (v2sf) {8, 78};
106
  e = __builtin_mips_movt_cabs_eq_ps (a, b, c, d);
107
  f = (v2sf) {8, 78};
108
  if (!__builtin_mips_all_c_eq_ps (e, f))
109
    abort ();
110
 
111
  /* movf.ps */
112
  e = __builtin_mips_movf_cabs_eq_ps (a, b, c, d);
113
  f = (v2sf) {33, 123};
114
  if (!__builtin_mips_all_c_eq_ps (e, f))
115
    abort ();
116
 
117
  /* Test all 16 operators */
118
  a = (v2sf) {-123, 123};
119
  b = (v2sf) {1000, -1000};
120
  c = (v2sf) {-33, 123};
121
  d = (v2sf) {8, -78};
122
 
123
  e = test0 (a, b, c, d);
124
  if (!__builtin_mips_all_c_eq_ps (e, c))
125
    abort ();
126
  e = test1 (a, b, c, d);
127
  if (!__builtin_mips_all_c_eq_ps (e, d))
128
    abort ();
129
 
130
  e = test2 (a, b, c, d);
131
  if (!__builtin_mips_all_c_eq_ps (e, c))
132
    abort ();
133
  e = test3 (a, b, c, d);
134
  if (!__builtin_mips_all_c_eq_ps (e, d))
135
    abort ();
136
 
137
  e = test4 (a, b, c, d);
138
  if (!__builtin_mips_all_c_eq_ps (e, c))
139
    abort ();
140
  e = test5 (a, b, c, d);
141
  if (!__builtin_mips_all_c_eq_ps (e, d))
142
    abort ();
143
 
144
  e = test6 (a, b, c, d);
145
  if (!__builtin_mips_all_c_eq_ps (e, c))
146
    abort ();
147
  e = test7 (a, b, c, d);
148
  if (!__builtin_mips_all_c_eq_ps (e, d))
149
    abort ();
150
 
151
  e = test8 (a, b, c, d);
152
  if (!__builtin_mips_all_c_eq_ps (e, d))
153
    abort ();
154
  e = test9 (a, b, c, d);
155
  if (!__builtin_mips_all_c_eq_ps (e, c))
156
    abort ();
157
 
158
  e = test10 (a, b, c, d);
159
  if (!__builtin_mips_all_c_eq_ps (e, d))
160
    abort ();
161
  e = test11 (a, b, c, d);
162
  if (!__builtin_mips_all_c_eq_ps (e, c))
163
    abort ();
164
 
165
  e = test12 (a, b, c, d);
166
  if (!__builtin_mips_all_c_eq_ps (e, d))
167
    abort ();
168
  e = test13 (a, b, c, d);
169
  if (!__builtin_mips_all_c_eq_ps (e, c))
170
    abort ();
171
 
172
  e = test14 (a, b, c, d);
173
  if (!__builtin_mips_all_c_eq_ps (e, d))
174
    abort ();
175
  e = test15 (a, b, c, d);
176
  if (!__builtin_mips_all_c_eq_ps (e, c))
177
    abort ();
178
 
179
  e = test16 (a, b, c, d);
180
  if (!__builtin_mips_all_c_eq_ps (e, c))
181
    abort ();
182
  e = test17 (a, b, c, d);
183
  if (!__builtin_mips_all_c_eq_ps (e, d))
184
    abort ();
185
 
186
  e = test18 (a, b, c, d);
187
  if (!__builtin_mips_all_c_eq_ps (e, c))
188
    abort ();
189
  e = test19 (a, b, c, d);
190
  if (!__builtin_mips_all_c_eq_ps (e, d))
191
    abort ();
192
 
193
  e = test20 (a, b, c, d);
194
  if (!__builtin_mips_all_c_eq_ps (e, c))
195
    abort ();
196
  e = test21 (a, b, c, d);
197
  if (!__builtin_mips_all_c_eq_ps (e, d))
198
    abort ();
199
 
200
  e = test22 (a, b, c, d);
201
  if (!__builtin_mips_all_c_eq_ps (e, c))
202
    abort ();
203
  e = test23 (a, b, c, d);
204
  if (!__builtin_mips_all_c_eq_ps (e, d))
205
    abort ();
206
 
207
  e = test24 (a, b, c, d);
208
  if (!__builtin_mips_all_c_eq_ps (e, d))
209
    abort ();
210
  e = test25 (a, b, c, d);
211
  if (!__builtin_mips_all_c_eq_ps (e, c))
212
    abort ();
213
 
214
  e = test26 (a, b, c, d);
215
  if (!__builtin_mips_all_c_eq_ps (e, d))
216
    abort ();
217
  e = test27 (a, b, c, d);
218
  if (!__builtin_mips_all_c_eq_ps (e, c))
219
    abort ();
220
 
221
  e = test28 (a, b, c, d);
222
  if (!__builtin_mips_all_c_eq_ps (e, d))
223
    abort ();
224
  e = test29 (a, b, c, d);
225
  if (!__builtin_mips_all_c_eq_ps (e, c))
226
    abort ();
227
 
228
  e = test30 (a, b, c, d);
229
  if (!__builtin_mips_all_c_eq_ps (e, d))
230
    abort ();
231
  e = test31 (a, b, c, d);
232
  if (!__builtin_mips_all_c_eq_ps (e, c))
233
    abort ();
234
 
235
  /* Reversed arguments */
236
  e = test0 (b, a, c, d);
237
  if (!__builtin_mips_all_c_eq_ps (e, c))
238
    abort ();
239
  e = test1 (b, a, c, d);
240
  if (!__builtin_mips_all_c_eq_ps (e, d))
241
    abort ();
242
 
243
  e = test2 (b, a, c, d);
244
  if (!__builtin_mips_all_c_eq_ps (e, c))
245
    abort ();
246
  e = test3 (b, a, c, d);
247
  if (!__builtin_mips_all_c_eq_ps (e, d))
248
    abort ();
249
 
250
  e = test4 (b, a, c, d);
251
  if (!__builtin_mips_all_c_eq_ps (e, c))
252
    abort ();
253
  e = test5 (b, a, c, d);
254
  if (!__builtin_mips_all_c_eq_ps (e, d))
255
    abort ();
256
 
257
  e = test6 (b, a, c, d);
258
  if (!__builtin_mips_all_c_eq_ps (e, c))
259
    abort ();
260
  e = test7 (b, a, c, d);
261
  if (!__builtin_mips_all_c_eq_ps (e, d))
262
    abort ();
263
 
264
  e = test8 (b, a, c, d);
265
  if (!__builtin_mips_all_c_eq_ps (e, c))
266
    abort ();
267
  e = test9 (b, a, c, d);
268
  if (!__builtin_mips_all_c_eq_ps (e, d))
269
    abort ();
270
 
271
  e = test10 (b, a, c, d);
272
  if (!__builtin_mips_all_c_eq_ps (e, c))
273
    abort ();
274
  e = test11 (b, a, c, d);
275
  if (!__builtin_mips_all_c_eq_ps (e, d))
276
    abort ();
277
 
278
  e = test12 (b, a, c, d);
279
  if (!__builtin_mips_all_c_eq_ps (e, c))
280
    abort ();
281
  e = test13 (b, a, c, d);
282
  if (!__builtin_mips_all_c_eq_ps (e, d))
283
    abort ();
284
 
285
  e = test14 (b, a, c, d);
286
  if (!__builtin_mips_all_c_eq_ps (e, c))
287
    abort ();
288
  e = test15 (b, a, c, d);
289
  if (!__builtin_mips_all_c_eq_ps (e, d))
290
    abort ();
291
 
292
  e = test16 (b, a, c, d);
293
  if (!__builtin_mips_all_c_eq_ps (e, c))
294
    abort ();
295
  e = test17 (b, a, c, d);
296
  if (!__builtin_mips_all_c_eq_ps (e, d))
297
    abort ();
298
 
299
  e = test18 (b, a, c, d);
300
  if (!__builtin_mips_all_c_eq_ps (e, c))
301
    abort ();
302
  e = test19 (b, a, c, d);
303
  if (!__builtin_mips_all_c_eq_ps (e, d))
304
    abort ();
305
 
306
  e = test20 (b, a, c, d);
307
  if (!__builtin_mips_all_c_eq_ps (e, c))
308
    abort ();
309
  e = test21 (b, a, c, d);
310
  if (!__builtin_mips_all_c_eq_ps (e, d))
311
    abort ();
312
 
313
  e = test22 (b, a, c, d);
314
  if (!__builtin_mips_all_c_eq_ps (e, c))
315
    abort ();
316
  e = test23 (b, a, c, d);
317
  if (!__builtin_mips_all_c_eq_ps (e, d))
318
    abort ();
319
 
320
  e = test24 (b, a, c, d);
321
  if (!__builtin_mips_all_c_eq_ps (e, c))
322
    abort ();
323
  e = test25 (b, a, c, d);
324
  if (!__builtin_mips_all_c_eq_ps (e, d))
325
    abort ();
326
 
327
  e = test26 (b, a, c, d);
328
  if (!__builtin_mips_all_c_eq_ps (e, c))
329
    abort ();
330
  e = test27 (b, a, c, d);
331
  if (!__builtin_mips_all_c_eq_ps (e, d))
332
    abort ();
333
 
334
  e = test28 (b, a, c, d);
335
  if (!__builtin_mips_all_c_eq_ps (e, c))
336
    abort ();
337
  e = test29 (b, a, c, d);
338
  if (!__builtin_mips_all_c_eq_ps (e, d))
339
    abort ();
340
 
341
  e = test30 (b, a, c, d);
342
  if (!__builtin_mips_all_c_eq_ps (e, c))
343
    abort ();
344
  e = test31 (b, a, c, d);
345
  if (!__builtin_mips_all_c_eq_ps (e, d))
346
    abort ();
347
 
348
#ifndef __FAST_MATH__
349
  /* Test all 16 operators */
350
  a = (v2sf) {qnan, qnan};
351
  b = (v2sf) {1000, -1000};
352
  c = (v2sf) {8, -78};
353
  d = (v2sf) {-33, 123};
354
 
355
  e = test0 (a, b, c, d);
356
  if (!__builtin_mips_all_c_eq_ps (e, c))
357
    abort ();
358
  e = test1 (a, b, c, d);
359
  if (!__builtin_mips_all_c_eq_ps (e, d))
360
    abort ();
361
 
362
  e = test2 (a, b, c, d);
363
  if (!__builtin_mips_all_c_eq_ps (e, d))
364
    abort ();
365
  e = test3 (a, b, c, d);
366
  if (!__builtin_mips_all_c_eq_ps (e, c))
367
    abort ();
368
 
369
  e = test4 (a, b, c, d);
370
  if (!__builtin_mips_all_c_eq_ps (e, c))
371
    abort ();
372
  e = test5 (a, b, c, d);
373
  if (!__builtin_mips_all_c_eq_ps (e, d))
374
    abort ();
375
 
376
  e = test6 (a, b, c, d);
377
  if (!__builtin_mips_all_c_eq_ps (e, d))
378
    abort ();
379
  e = test7 (a, b, c, d);
380
  if (!__builtin_mips_all_c_eq_ps (e, c))
381
    abort ();
382
 
383
  e = test8 (a, b, c, d);
384
  if (!__builtin_mips_all_c_eq_ps (e, c))
385
    abort ();
386
  e = test9 (a, b, c, d);
387
  if (!__builtin_mips_all_c_eq_ps (e, d))
388
    abort ();
389
 
390
  e = test10 (a, b, c, d);
391
  if (!__builtin_mips_all_c_eq_ps (e, d))
392
    abort ();
393
  e = test11 (a, b, c, d);
394
  if (!__builtin_mips_all_c_eq_ps (e, c))
395
    abort ();
396
 
397
  e = test12 (a, b, c, d);
398
  if (!__builtin_mips_all_c_eq_ps (e, c))
399
    abort ();
400
  e = test13 (a, b, c, d);
401
  if (!__builtin_mips_all_c_eq_ps (e, d))
402
    abort ();
403
 
404
  e = test14 (a, b, c, d);
405
  if (!__builtin_mips_all_c_eq_ps (e, d))
406
    abort ();
407
  e = test15 (a, b, c, d);
408
  if (!__builtin_mips_all_c_eq_ps (e, c))
409
    abort ();
410
 
411
  e = test16 (a, b, c, d);
412
  if (!__builtin_mips_all_c_eq_ps (e, c))
413
    abort ();
414
  e = test17 (a, b, c, d);
415
  if (!__builtin_mips_all_c_eq_ps (e, d))
416
    abort ();
417
 
418
  e = test18 (a, b, c, d);
419
  if (!__builtin_mips_all_c_eq_ps (e, d))
420
    abort ();
421
  e = test19 (a, b, c, d);
422
  if (!__builtin_mips_all_c_eq_ps (e, c))
423
    abort ();
424
 
425
  e = test20 (a, b, c, d);
426
  if (!__builtin_mips_all_c_eq_ps (e, c))
427
    abort ();
428
  e = test21 (a, b, c, d);
429
  if (!__builtin_mips_all_c_eq_ps (e, d))
430
    abort ();
431
 
432
  e = test22 (a, b, c, d);
433
  if (!__builtin_mips_all_c_eq_ps (e, d))
434
    abort ();
435
  e = test23 (a, b, c, d);
436
  if (!__builtin_mips_all_c_eq_ps (e, c))
437
    abort ();
438
 
439
  e = test24 (a, b, c, d);
440
  if (!__builtin_mips_all_c_eq_ps (e, c))
441
    abort ();
442
  e = test25 (a, b, c, d);
443
  if (!__builtin_mips_all_c_eq_ps (e, d))
444
    abort ();
445
 
446
  e = test26 (a, b, c, d);
447
  if (!__builtin_mips_all_c_eq_ps (e, d))
448
    abort ();
449
  e = test27 (a, b, c, d);
450
  if (!__builtin_mips_all_c_eq_ps (e, c))
451
    abort ();
452
 
453
  e = test28 (a, b, c, d);
454
  if (!__builtin_mips_all_c_eq_ps (e, c))
455
    abort ();
456
  e = test29 (a, b, c, d);
457
  if (!__builtin_mips_all_c_eq_ps (e, d))
458
    abort ();
459
 
460
  e = test30 (a, b, c, d);
461
  if (!__builtin_mips_all_c_eq_ps (e, d))
462
    abort ();
463
  e = test31 (a, b, c, d);
464
  if (!__builtin_mips_all_c_eq_ps (e, c))
465
    abort ();
466
#endif
467
 
468
  printf ("Test Passes\n");
469
  exit (0);
470
}
471
 
472
NOMIPS16 v2sf test0 (v2sf a, v2sf b, v2sf c, v2sf d)
473
{
474
  return  __builtin_mips_movt_cabs_f_ps (a, b, c, d);
475
}
476
 
477
NOMIPS16 v2sf test1 (v2sf a, v2sf b, v2sf c, v2sf d)
478
{
479
  return  __builtin_mips_movf_cabs_f_ps (a, b, c, d);
480
}
481
 
482
NOMIPS16 v2sf test2 (v2sf a, v2sf b, v2sf c, v2sf d)
483
{
484
  return  __builtin_mips_movt_cabs_un_ps (a, b, c, d);
485
}
486
 
487
NOMIPS16 v2sf test3 (v2sf a, v2sf b, v2sf c, v2sf d)
488
{
489
  return  __builtin_mips_movf_cabs_un_ps (a, b, c, d);
490
}
491
 
492
NOMIPS16 v2sf test4 (v2sf a, v2sf b, v2sf c, v2sf d)
493
{
494
  return  __builtin_mips_movt_cabs_eq_ps (a, b, c, d);
495
}
496
 
497
NOMIPS16 v2sf test5 (v2sf a, v2sf b, v2sf c, v2sf d)
498
{
499
  return  __builtin_mips_movf_cabs_eq_ps (a, b, c, d);
500
}
501
 
502
NOMIPS16 v2sf test6 (v2sf a, v2sf b, v2sf c, v2sf d)
503
{
504
  return  __builtin_mips_movt_cabs_ueq_ps (a, b, c, d);
505
}
506
 
507
NOMIPS16 v2sf test7 (v2sf a, v2sf b, v2sf c, v2sf d)
508
{
509
  return  __builtin_mips_movf_cabs_ueq_ps (a, b, c, d);
510
}
511
 
512
NOMIPS16 v2sf test8 (v2sf a, v2sf b, v2sf c, v2sf d)
513
{
514
  return  __builtin_mips_movt_cabs_olt_ps (a, b, c, d);
515
}
516
 
517
NOMIPS16 v2sf test9 (v2sf a, v2sf b, v2sf c, v2sf d)
518
{
519
  return  __builtin_mips_movf_cabs_olt_ps (a, b, c, d);
520
}
521
 
522
NOMIPS16 v2sf test10 (v2sf a, v2sf b, v2sf c, v2sf d)
523
{
524
  return  __builtin_mips_movt_cabs_ult_ps (a, b, c, d);
525
}
526
 
527
NOMIPS16 v2sf test11 (v2sf a, v2sf b, v2sf c, v2sf d)
528
{
529
  return  __builtin_mips_movf_cabs_ult_ps (a, b, c, d);
530
}
531
 
532
NOMIPS16 v2sf test12 (v2sf a, v2sf b, v2sf c, v2sf d)
533
{
534
  return  __builtin_mips_movt_cabs_ole_ps (a, b, c, d);
535
}
536
 
537
NOMIPS16 v2sf test13 (v2sf a, v2sf b, v2sf c, v2sf d)
538
{
539
  return  __builtin_mips_movf_cabs_ole_ps (a, b, c, d);
540
}
541
 
542
NOMIPS16 v2sf test14 (v2sf a, v2sf b, v2sf c, v2sf d)
543
{
544
  return  __builtin_mips_movt_cabs_ule_ps (a, b, c, d);
545
}
546
 
547
NOMIPS16 v2sf test15 (v2sf a, v2sf b, v2sf c, v2sf d)
548
{
549
  return  __builtin_mips_movf_cabs_ule_ps (a, b, c, d);
550
}
551
 
552
NOMIPS16 v2sf test16 (v2sf a, v2sf b, v2sf c, v2sf d)
553
{
554
  return  __builtin_mips_movt_cabs_sf_ps (a, b, c, d);
555
}
556
 
557
NOMIPS16 v2sf test17 (v2sf a, v2sf b, v2sf c, v2sf d)
558
{
559
  return  __builtin_mips_movf_cabs_sf_ps (a, b, c, d);
560
}
561
 
562
NOMIPS16 v2sf test18 (v2sf a, v2sf b, v2sf c, v2sf d)
563
{
564
  return  __builtin_mips_movt_cabs_ngle_ps (a, b, c, d);
565
}
566
 
567
NOMIPS16 v2sf test19 (v2sf a, v2sf b, v2sf c, v2sf d)
568
{
569
  return  __builtin_mips_movf_cabs_ngle_ps (a, b, c, d);
570
}
571
 
572
NOMIPS16 v2sf test20 (v2sf a, v2sf b, v2sf c, v2sf d)
573
{
574
  return  __builtin_mips_movt_cabs_seq_ps (a, b, c, d);
575
}
576
 
577
NOMIPS16 v2sf test21 (v2sf a, v2sf b, v2sf c, v2sf d)
578
{
579
  return  __builtin_mips_movf_cabs_seq_ps (a, b, c, d);
580
}
581
 
582
NOMIPS16 v2sf test22 (v2sf a, v2sf b, v2sf c, v2sf d)
583
{
584
  return  __builtin_mips_movt_cabs_ngl_ps (a, b, c, d);
585
}
586
 
587
NOMIPS16 v2sf test23 (v2sf a, v2sf b, v2sf c, v2sf d)
588
{
589
  return  __builtin_mips_movf_cabs_ngl_ps (a, b, c, d);
590
}
591
 
592
NOMIPS16 v2sf test24 (v2sf a, v2sf b, v2sf c, v2sf d)
593
{
594
  return  __builtin_mips_movt_cabs_lt_ps (a, b, c, d);
595
}
596
 
597
NOMIPS16 v2sf test25 (v2sf a, v2sf b, v2sf c, v2sf d)
598
{
599
  return  __builtin_mips_movf_cabs_lt_ps (a, b, c, d);
600
}
601
 
602
NOMIPS16 v2sf test26 (v2sf a, v2sf b, v2sf c, v2sf d)
603
{
604
  return  __builtin_mips_movt_cabs_nge_ps (a, b, c, d);
605
}
606
 
607
NOMIPS16 v2sf test27 (v2sf a, v2sf b, v2sf c, v2sf d)
608
{
609
  return  __builtin_mips_movf_cabs_nge_ps (a, b, c, d);
610
}
611
 
612
NOMIPS16 v2sf test28 (v2sf a, v2sf b, v2sf c, v2sf d)
613
{
614
  return  __builtin_mips_movt_cabs_le_ps (a, b, c, d);
615
}
616
 
617
NOMIPS16 v2sf test29 (v2sf a, v2sf b, v2sf c, v2sf d)
618
{
619
  return  __builtin_mips_movf_cabs_le_ps (a, b, c, d);
620
}
621
 
622
NOMIPS16 v2sf test30 (v2sf a, v2sf b, v2sf c, v2sf d)
623
{
624
  return  __builtin_mips_movt_cabs_ngt_ps (a, b, c, d);
625
}
626
 
627
NOMIPS16 v2sf test31 (v2sf a, v2sf b, v2sf c, v2sf d)
628
{
629
  return  __builtin_mips_movf_cabs_ngt_ps (a, b, c, d);
630
}

powered by: WebSVN 2.1.0

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