1 # frv testcase for mcut $ACC40i,$FRj,$FRk
4 .include "testutils.inc"
10 set_accg_immed 0xffffffe7,accg0
11 set_acc_immed 0x89abcdef,acc0
13 set_fr_iimmed 0,0,fr10
15 test_fr_iimmed 0xe789abcd,fr11
17 set_fr_iimmed 0,1,fr10
19 test_fr_iimmed 0xcf13579b,fr11
21 set_fr_iimmed 0,2,fr10
23 test_fr_iimmed 0x9e26af37,fr11
25 set_fr_iimmed 0,3,fr10
27 test_fr_iimmed 0x3c4d5e6f,fr11
29 set_fr_iimmed 0,4,fr10
31 test_fr_iimmed 0x789abcde,fr11
33 set_fr_iimmed 0,5,fr10
35 test_fr_iimmed 0xf13579bd,fr11
37 set_fr_iimmed 0,6,fr10
39 test_fr_iimmed 0xe26af37b,fr11
41 set_fr_iimmed 0,7,fr10
43 test_fr_iimmed 0xc4d5e6f7,fr11
45 set_fr_iimmed 0,8,fr10
47 test_fr_iimmed 0x89abcdef,fr11
49 set_fr_iimmed 0,9,fr10
51 test_fr_iimmed 0x13579bde,fr11
53 set_fr_iimmed 0,10,fr10
55 test_fr_iimmed 0x26af37bc,fr11
57 set_fr_iimmed 0,11,fr10
59 test_fr_iimmed 0x4d5e6f78,fr11
61 set_fr_iimmed 0,12,fr10
63 test_fr_iimmed 0x9abcdef0,fr11
65 set_fr_iimmed 0,13,fr10
67 test_fr_iimmed 0x3579bde0,fr11
69 set_fr_iimmed 0,14,fr10
71 test_fr_iimmed 0x6af37bc0,fr11
73 set_fr_iimmed 0,15,fr10
75 test_fr_iimmed 0xd5e6f780,fr11
77 set_fr_iimmed 0,16,fr10
79 test_fr_iimmed 0xabcdef00,fr11
81 set_fr_iimmed 0,17,fr10
83 test_fr_iimmed 0x579bde00,fr11
85 set_fr_iimmed 0,18,fr10
87 test_fr_iimmed 0xaf37bc00,fr11
89 set_fr_iimmed 0,19,fr10
91 test_fr_iimmed 0x5e6f7800,fr11
93 set_fr_iimmed 0,20,fr10
95 test_fr_iimmed 0xbcdef000,fr11
97 set_fr_iimmed 0,21,fr10
99 test_fr_iimmed 0x79bde000,fr11
101 set_fr_iimmed 0,22,fr10
103 test_fr_iimmed 0xf37bc000,fr11
105 set_fr_iimmed 0,23,fr10
107 test_fr_iimmed 0xe6f78000,fr11
109 set_fr_iimmed 0,24,fr10
111 test_fr_iimmed 0xcdef0000,fr11
113 set_fr_iimmed 0,25,fr10
115 test_fr_iimmed 0x9bde0000,fr11
117 set_fr_iimmed 0,26,fr10
119 test_fr_iimmed 0x37bc0000,fr11
121 set_fr_iimmed 0,27,fr10
123 test_fr_iimmed 0x6f780000,fr11
125 set_fr_iimmed 0,28,fr10
127 test_fr_iimmed 0xdef00000,fr11
129 set_fr_iimmed 0,29,fr10
131 test_fr_iimmed 0xbde00000,fr11
133 set_fr_iimmed 0,30,fr10
135 test_fr_iimmed 0x7bc00000,fr11
137 set_fr_iimmed 0,31,fr10
139 test_fr_iimmed 0xf7800000,fr11
141 set_fr_iimmed 0,31,fr10
143 test_fr_iimmed 0xf7800000,fr11
145 set_fr_iimmed 0,64,fr10 ; same as 0
147 test_fr_iimmed 0xe789abcd,fr11
149 set_fr_iimmed 0xffff,0xffff,fr10
151 test_fr_iimmed 0xf3c4d5e6,fr11
153 set_fr_iimmed 0x0000,0x003e,fr10 ; only lower 6 bits matter
155 test_fr_iimmed 0xf9e26af3,fr11
157 set_fr_iimmed 0xffff,0xfffd,fr10
159 test_fr_iimmed 0xfcf13579,fr11
161 set_fr_iimmed 0xffff,0xfffc,fr10
163 test_fr_iimmed 0xfe789abc,fr11
165 set_fr_iimmed 0xffff,0xfffb,fr10
167 test_fr_iimmed 0xff3c4d5e,fr11
169 set_fr_iimmed 0xffff,0xfffa,fr10
171 test_fr_iimmed 0xff9e26af,fr11
173 set_fr_iimmed 0xffff,0xfff9,fr10
175 test_fr_iimmed 0xffcf1357,fr11
177 set_fr_iimmed 0xffff,0xfff8,fr10
179 test_fr_iimmed 0xffe789ab,fr11
181 set_fr_iimmed 0xffff,0xfff7,fr10
183 test_fr_iimmed 0xfff3c4d5,fr11
185 set_fr_iimmed 0xffff,0xfff6,fr10
187 test_fr_iimmed 0xfff9e26a,fr11
189 set_fr_iimmed 0xffff,0xfff5,fr10
191 test_fr_iimmed 0xfffcf135,fr11
193 set_fr_iimmed 0xffff,0xfff4,fr10
195 test_fr_iimmed 0xfffe789a,fr11
197 set_fr_iimmed 0xffff,0xfff3,fr10
199 test_fr_iimmed 0xffff3c4d,fr11
201 set_fr_iimmed 0xffff,0xfff2,fr10
203 test_fr_iimmed 0xffff9e26,fr11
205 set_fr_iimmed 0xffff,0xfff1,fr10
207 test_fr_iimmed 0xffffcf13,fr11
209 set_fr_iimmed 0xffff,0xfff0,fr10
211 test_fr_iimmed 0xffffe789,fr11
213 set_fr_iimmed 0xffff,0xffef,fr10
215 test_fr_iimmed 0xfffff3c4,fr11
217 set_fr_iimmed 0xffff,0xffee,fr10
219 test_fr_iimmed 0xfffff9e2,fr11
221 set_fr_iimmed 0xffff,0xffed,fr10
223 test_fr_iimmed 0xfffffcf1,fr11
225 set_fr_iimmed 0xffff,0xffec,fr10
227 test_fr_iimmed 0xfffffe78,fr11
229 set_fr_iimmed 0xffff,0xffeb,fr10
231 test_fr_iimmed 0xffffff3c,fr11
233 set_fr_iimmed 0xffff,0xffea,fr10
235 test_fr_iimmed 0xffffff9e,fr11
237 set_fr_iimmed 0xffff,0xffe9,fr10
239 test_fr_iimmed 0xffffffcf,fr11
241 set_fr_iimmed 0xffff,0xffe8,fr10
243 test_fr_iimmed 0xffffffe7,fr11
245 set_fr_iimmed 0xffff,0xffe7,fr10
247 test_fr_iimmed 0xfffffff3,fr11
249 set_fr_iimmed 0xffff,0xffe6,fr10
251 test_fr_iimmed 0xfffffff9,fr11
253 set_fr_iimmed 0xffff,0xffe5,fr10
255 test_fr_iimmed 0xfffffffc,fr11
257 set_fr_iimmed 0xffff,0xffe4,fr10
259 test_fr_iimmed 0xfffffffe,fr11
261 set_fr_iimmed 0xffff,0xffe3,fr10
263 test_fr_iimmed 0xffffffff,fr11
265 set_fr_iimmed 0xffff,0xffe2,fr10
267 test_fr_iimmed 0xffffffff,fr11
269 set_fr_iimmed 0xffff,0xffe1,fr10
271 test_fr_iimmed 0xffffffff,fr11
273 set_fr_iimmed 0xffff,0xffe0,fr10
275 test_fr_iimmed 0xffffffff,fr11
277 set_fr_iimmed 0,32,fr10 ; same as -32
279 test_fr_iimmed 0xffffffff,fr11
281 set_accg_immed 0xffffff67,accg0
282 set_acc_immed 0x89abcdef,acc0
284 set_fr_iimmed 0xffff,0xffff,fr10
286 test_fr_iimmed 0x33c4d5e6,fr11
288 set_fr_iimmed 0x0000,0x003e,fr10 ; only lower 6 bits matter
290 test_fr_iimmed 0x19e26af3,fr11
292 set_fr_iimmed 0xffff,0xfffd,fr10
294 test_fr_iimmed 0x0cf13579,fr11
296 set_fr_iimmed 0xffff,0xfffc,fr10
298 test_fr_iimmed 0x06789abc,fr11
300 set_fr_iimmed 0xffff,0xfffb,fr10
302 test_fr_iimmed 0x033c4d5e,fr11
304 set_fr_iimmed 0xffff,0xfffa,fr10
306 test_fr_iimmed 0x019e26af,fr11
308 set_fr_iimmed 0xffff,0xfff9,fr10
310 test_fr_iimmed 0x00cf1357,fr11
312 set_fr_iimmed 0xffff,0xfff8,fr10
314 test_fr_iimmed 0x006789ab,fr11
316 set_fr_iimmed 0xffff,0xfff7,fr10
318 test_fr_iimmed 0x0033c4d5,fr11
320 set_fr_iimmed 0xffff,0xfff6,fr10
322 test_fr_iimmed 0x0019e26a,fr11
324 set_fr_iimmed 0xffff,0xfff5,fr10
326 test_fr_iimmed 0x000cf135,fr11
328 set_fr_iimmed 0xffff,0xfff4,fr10
330 test_fr_iimmed 0x0006789a,fr11
332 set_fr_iimmed 0xffff,0xfff3,fr10
334 test_fr_iimmed 0x00033c4d,fr11
336 set_fr_iimmed 0xffff,0xfff2,fr10
338 test_fr_iimmed 0x00019e26,fr11
340 set_fr_iimmed 0xffff,0xfff1,fr10
342 test_fr_iimmed 0x0000cf13,fr11
344 set_fr_iimmed 0xffff,0xfff0,fr10
346 test_fr_iimmed 0x00006789,fr11
348 set_fr_iimmed 0xffff,0xffef,fr10
350 test_fr_iimmed 0x000033c4,fr11
352 set_fr_iimmed 0xffff,0xffee,fr10
354 test_fr_iimmed 0x000019e2,fr11
356 set_fr_iimmed 0xffff,0xffed,fr10
358 test_fr_iimmed 0x00000cf1,fr11
360 set_fr_iimmed 0xffff,0xffec,fr10
362 test_fr_iimmed 0x00000678,fr11
364 set_fr_iimmed 0xffff,0xffeb,fr10
366 test_fr_iimmed 0x0000033c,fr11
368 set_fr_iimmed 0xffff,0xffea,fr10
370 test_fr_iimmed 0x0000019e,fr11
372 set_fr_iimmed 0xffff,0xffe9,fr10
374 test_fr_iimmed 0x000000cf,fr11
376 set_fr_iimmed 0xffff,0xffe8,fr10
378 test_fr_iimmed 0x00000067,fr11
380 set_fr_iimmed 0xffff,0xffe7,fr10
382 test_fr_iimmed 0x00000033,fr11
384 set_fr_iimmed 0xffff,0xffe6,fr10
386 test_fr_iimmed 0x00000019,fr11
388 set_fr_iimmed 0xffff,0xffe5,fr10
390 test_fr_iimmed 0x0000000c,fr11
392 set_fr_iimmed 0xffff,0xffe4,fr10
394 test_fr_iimmed 0x00000006,fr11
396 set_fr_iimmed 0xffff,0xffe3,fr10
398 test_fr_iimmed 0x00000003,fr11
400 set_fr_iimmed 0xffff,0xffe2,fr10
402 test_fr_iimmed 0x00000001,fr11
404 set_fr_iimmed 0xffff,0xffe1,fr10
406 test_fr_iimmed 0x00000000,fr11
408 set_fr_iimmed 0xffff,0xffe0,fr10
410 test_fr_iimmed 0x00000000,fr11
412 set_fr_iimmed 0,32,fr10 ; same as -32
414 test_fr_iimmed 0x00000000,fr11
416 ; Examples from the customer
417 set_accg_immed 0xffffffff,accg0
418 set_acc_immed 0xffe00000,acc0
420 set_fr_iimmed 0,16,fr10
422 test_fr_iimmed 0xe0000000,fr11
424 set_fr_iimmed 0,17,fr10
426 test_fr_iimmed 0xc0000000,fr11
428 set_fr_iimmed 0,18,fr10
430 test_fr_iimmed 0x80000000,fr11
432 set_accg_immed 0,accg0
433 set_acc_immed 0x003fffff,acc0
435 set_fr_iimmed 0,16,fr10
437 test_fr_iimmed 0x3fffff00,fr11
439 set_fr_iimmed 0,17,fr10
441 test_fr_iimmed 0x7ffffe00,fr11
443 set_accg_immed 0x7f,accg0
444 set_acc_immed 0xffe00000,acc0
446 set_fr_iimmed 0,16,fr10
448 test_fr_iimmed 0xe0000000,fr11
450 set_fr_iimmed 0,17,fr10
452 test_fr_iimmed 0xc0000000,fr11
454 set_fr_iimmed 0,18,fr10
456 test_fr_iimmed 0x80000000,fr11
458 set_accg_immed 0x08,accg0
459 set_acc_immed 0x003fffff,acc0
461 set_fr_iimmed 0,16,fr10
463 test_fr_iimmed 0x3fffff00,fr11
465 set_fr_iimmed 0,17,fr10
467 test_fr_iimmed 0x7ffffe00,fr11
469 set_accg_immed 0xff,accg0
470 set_acc_immed 0xefe00000,acc0
472 set_fr_iimmed 0,16,fr10
474 test_fr_iimmed 0xe0000000,fr11
476 set_fr_iimmed 0,17,fr10
478 test_fr_iimmed 0xc0000000,fr11
480 set_fr_iimmed 0,18,fr10
482 test_fr_iimmed 0x80000000,fr11
484 set_accg_immed 0x80,accg0
485 set_acc_immed 0x003fffff,acc0
487 set_fr_iimmed 0,16,fr10
489 test_fr_iimmed 0x3fffff00,fr11
491 set_fr_iimmed 0,17,fr10
493 test_fr_iimmed 0x7ffffe00,fr11
495 set_accg_immed 0xffffffaf,accg0
496 set_acc_immed 0x5a5a5a5a,acc0
498 set_fr_iimmed 0xffff,0xfffc,fr10
500 test_fr_iimmed 0xfaf5a5a5,fr11
502 set_accg_immed 0x0000002f,accg0
503 set_acc_immed 0x5a5a5a5a,acc0
505 set_fr_iimmed 0xffff,0xfff9,fr10
507 test_fr_iimmed 0x005eb4b4,fr11