1 # frv testcase for scutss $FRj,$FRk
4 .include "../testutils.inc"
10 set_spr_immed 0xffffffe7,iacc0h
11 set_spr_immed 0x89abcdef,iacc0l
15 test_gr_limmed 0xffff,0xffe8,gr11
19 test_gr_limmed 0xffff,0xffcf,gr11
23 test_gr_limmed 0xffff,0xff9e,gr11
27 test_gr_limmed 0xffff,0xff3c,gr11
31 test_gr_limmed 0xffff,0xfe79,gr11
35 test_gr_limmed 0xffff,0xfcf1,gr11
39 test_gr_limmed 0xffff,0xf9e2,gr11
43 test_gr_limmed 0xffff,0xf3c5,gr11
47 test_gr_limmed 0xffff,0xe78a,gr11
51 test_gr_limmed 0xffff,0xcf13,gr11
55 test_gr_limmed 0xffff,0x9e27,gr11
59 test_gr_limmed 0xffff,0x3c4d,gr11
63 test_gr_limmed 0xfffe,0x789b,gr11
67 test_gr_limmed 0xfffc,0xf135,gr11
71 test_gr_limmed 0xfff9,0xe26b,gr11
75 test_gr_limmed 0xfff3,0xc4d6,gr11
79 test_gr_limmed 0xffe7,0x89ac,gr11
83 test_gr_limmed 0xffcf,0x1358,gr11
87 test_gr_limmed 0xff9e,0x26af,gr11
91 test_gr_limmed 0xff3c,0x4d5e,gr11
95 test_gr_limmed 0xfe78,0x9abd,gr11
99 test_gr_limmed 0xfcf1,0x357a,gr11
103 test_gr_limmed 0xf9e2,0x6af3,gr11
107 test_gr_limmed 0xf3c4,0xd5e7,gr11
111 test_gr_limmed 0xe789,0xabce,gr11
115 test_gr_limmed 0xcf13,0x579c,gr11
119 test_gr_limmed 0x9e26,0xaf38,gr11
123 test_gr_limmed 0x8000,0x0000,gr11
127 test_gr_limmed 0x8000,0x0000,gr11
131 test_gr_limmed 0x8000,0x0000,gr11
135 test_gr_limmed 0x8000,0x0000,gr11
139 test_gr_limmed 0x8000,0x0000,gr11
143 test_gr_limmed 0x8000,0x0000,gr11
147 test_gr_limmed 0x8000,0x0000,gr11
151 test_gr_limmed 0x8000,0x0000,gr11
155 test_gr_limmed 0x8000,0x0000,gr11
159 test_gr_limmed 0x8000,0x0000,gr11
163 test_gr_limmed 0x8000,0x0000,gr11
167 test_gr_limmed 0x8000,0x0000,gr11
171 test_gr_limmed 0x8000,0x0000,gr11
175 test_gr_limmed 0x8000,0x0000,gr11
179 test_gr_limmed 0x8000,0x0000,gr11
183 test_gr_limmed 0x8000,0x0000,gr11
187 test_gr_limmed 0x8000,0x0000,gr11
191 test_gr_limmed 0x8000,0x0000,gr11
195 test_gr_limmed 0x8000,0x0000,gr11
199 test_gr_limmed 0x8000,0x0000,gr11
203 test_gr_limmed 0x8000,0x0000,gr11
207 test_gr_limmed 0x8000,0x0000,gr11
211 test_gr_limmed 0x8000,0x0000,gr11
215 test_gr_limmed 0x8000,0x0000,gr11
219 test_gr_limmed 0x8000,0x0000,gr11
223 test_gr_limmed 0x8000,0x0000,gr11
227 test_gr_limmed 0x8000,0x0000,gr11
231 test_gr_limmed 0x8000,0x0000,gr11
235 test_gr_limmed 0x8000,0x0000,gr11
239 test_gr_limmed 0x8000,0x0000,gr11
243 test_gr_limmed 0x8000,0x0000,gr11
247 test_gr_limmed 0x8000,0x0000,gr11
251 test_gr_limmed 0x8000,0x0000,gr11
255 test_gr_limmed 0x8000,0x0000,gr11
259 test_gr_limmed 0x8000,0x0000,gr11
263 test_gr_limmed 0x8000,0x0000,gr11
267 test_gr_limmed 0x8000,0x0000,gr11
269 set_gr_immed 64,gr10 ; same as -64
273 set_gr_immed 128,gr10 ; same as 0
275 test_gr_limmed 0xffff,0xffe8,gr11
279 set_spr_immed 0xe789abcd,iacc0h
280 set_spr_immed 0xefa5a5a5,iacc0l
282 set_gr_limmed 0xffff,0xffff,gr10 ; -1
284 test_gr_limmed 0xf3c4,0xd5e7,gr11
286 set_gr_limmed 0x0000,0x007e,gr10 ; -2 (only lower 7 bits matter)
288 test_gr_limmed 0xf9e2,0x6af3,gr11
292 test_gr_limmed 0xfcf1,0x357a,gr11
296 test_gr_limmed 0xfe78,0x9abd,gr11
300 test_gr_limmed 0xff3c,0x4d5e,gr11
304 test_gr_limmed 0xff9e,0x26af,gr11
308 test_gr_limmed 0xffcf,0x1358,gr11
312 test_gr_limmed 0xffe7,0x89ac,gr11
316 test_gr_limmed 0xfff3,0xc4d6,gr11
318 set_gr_immed -10,gr10
320 test_gr_limmed 0xfff9,0xe26b,gr11
322 set_gr_immed -11,gr10
324 test_gr_limmed 0xfffc,0xf135,gr11
326 set_gr_immed -12,gr10
328 test_gr_limmed 0xfffe,0x789b,gr11
330 set_gr_immed -13,gr10
332 test_gr_limmed 0xffff,0x3c4d,gr11
334 set_gr_immed -14,gr10
336 test_gr_limmed 0xffff,0x9e27,gr11
338 set_gr_immed -15,gr10
340 test_gr_limmed 0xffff,0xcf13,gr11
342 set_gr_immed -16,gr10
344 test_gr_limmed 0xffff,0xe78a,gr11
346 set_gr_immed -17,gr10
348 test_gr_limmed 0xffff,0xf3c5,gr11
350 set_gr_immed -18,gr10
352 test_gr_limmed 0xffff,0xf9e2,gr11
354 set_gr_immed -19,gr10
356 test_gr_limmed 0xffff,0xfcf1,gr11
358 set_gr_immed -20,gr10
360 test_gr_limmed 0xffff,0xfe79,gr11
362 set_gr_immed -21,gr10
364 test_gr_limmed 0xffff,0xff3c,gr11
366 set_gr_immed -22,gr10
368 test_gr_limmed 0xffff,0xff9e,gr11
370 set_gr_immed -23,gr10
372 test_gr_limmed 0xffff,0xffcf,gr11
374 set_gr_immed -24,gr10
376 test_gr_limmed 0xffff,0xffe8,gr11
378 set_gr_immed -25,gr10
380 test_gr_limmed 0xffff,0xfff4,gr11
382 set_gr_immed -26,gr10
384 test_gr_limmed 0xffff,0xfffa,gr11
386 set_gr_immed -27,gr10
388 test_gr_limmed 0xffff,0xfffd,gr11
390 set_gr_immed -28,gr10
392 test_gr_limmed 0xffff,0xfffe,gr11
394 set_gr_immed -29,gr10
396 test_gr_limmed 0xffff,0xffff,gr11
398 set_gr_immed -30,gr10
402 set_gr_immed -31,gr10
406 set_gr_immed -32,gr10
410 set_gr_limmed 0,64,gr10 ; same as -32
414 set_spr_immed 0x6789abcd,iacc0h
415 set_spr_immed 0xefa5a5a5,iacc0l
417 set_gr_limmed 0xffff,0xffff,gr10
419 test_gr_limmed 0x33c4,0xd5e7,gr11
421 set_gr_limmed 0x0000,0x007e,gr10 ; -2 (only lower 7 bits matter)
423 test_gr_limmed 0x19e2,0x6af3,gr11
427 test_gr_limmed 0x0cf1,0x357a,gr11
431 test_gr_limmed 0x0678,0x9abd,gr11
435 test_gr_limmed 0x033c,0x4d5e,gr11
439 test_gr_limmed 0x019e,0x26af,gr11
443 test_gr_limmed 0x00cf,0x1358,gr11
447 test_gr_limmed 0x0067,0x89ac,gr11
451 test_gr_limmed 0x0033,0xc4d6,gr11
453 set_gr_immed -10,gr10
455 test_gr_limmed 0x0019,0xe26b,gr11
457 set_gr_immed -11,gr10
459 test_gr_limmed 0x000c,0xf135,gr11
461 set_gr_immed -12,gr10
463 test_gr_limmed 0x0006,0x789b,gr11
465 set_gr_immed -13,gr10
467 test_gr_limmed 0x0003,0x3c4d,gr11
469 set_gr_immed -14,gr10
471 test_gr_limmed 0x0001,0x9e27,gr11
473 set_gr_immed -15,gr10
475 test_gr_limmed 0x0000,0xcf13,gr11
477 set_gr_immed -16,gr10
479 test_gr_limmed 0x0000,0x678a,gr11
481 set_gr_immed -17,gr10
483 test_gr_limmed 0x0000,0x33c5,gr11
485 set_gr_immed -18,gr10
487 test_gr_limmed 0x0000,0x19e2,gr11
489 set_gr_immed -19,gr10
491 test_gr_limmed 0x0000,0x0cf1,gr11
493 set_gr_immed -20,gr10
495 test_gr_limmed 0x0000,0x0679,gr11
497 set_gr_immed -21,gr10
499 test_gr_limmed 0x0000,0x033c,gr11
501 set_gr_immed -22,gr10
503 test_gr_limmed 0x0000,0x019e,gr11
505 set_gr_immed -23,gr10
507 test_gr_limmed 0x0000,0x00cf,gr11
509 set_gr_immed -24,gr10
511 test_gr_limmed 0x0000,0x0068,gr11
513 set_gr_immed -25,gr10
515 test_gr_limmed 0x0000,0x0034,gr11
517 set_gr_immed -26,gr10
519 test_gr_limmed 0x0000,0x001a,gr11
521 set_gr_immed -27,gr10
523 test_gr_limmed 0x0000,0x000d,gr11
525 set_gr_immed -28,gr10
527 test_gr_limmed 0x0000,0x0006,gr11
529 set_gr_immed -29,gr10
531 test_gr_limmed 0x0000,0x0003,gr11
533 set_gr_immed -30,gr10
535 test_gr_limmed 0x0000,0x0002,gr11
537 set_gr_immed -31,gr10
539 test_gr_limmed 0x0000,0x0001,gr11
541 set_gr_immed -32,gr10
543 test_gr_limmed 0x0000,0x0000,gr11
545 set_gr_immed 64,gr10 ; same as -32
547 test_gr_limmed 0x0000,0x0000,gr11
549 ; Examples from the customer (modified for iacc0)
550 set_spr_immed 0xffffffff,iacc0h
551 set_spr_immed 0xffe00000,iacc0l
553 set_gr_limmed 0,16,gr10
555 test_gr_limmed 0xffff,0xffe0,gr11
557 set_gr_limmed 0,17,gr10
559 test_gr_limmed 0xffff,0xffc0,gr11
561 set_gr_limmed 0,18,gr10
563 test_gr_limmed 0xffff,0xff80,gr11
565 set_spr_immed 0,iacc0h
566 set_spr_immed 0x003fffff,iacc0l
568 set_gr_limmed 0,40,gr10
570 test_gr_limmed 0x3fff,0xff00,gr11
572 set_gr_limmed 0,41,gr10
574 test_gr_limmed 0x7fff,0xfe00,gr11
576 set_spr_immed 0x7f,iacc0h
577 set_spr_immed 0xffe00000,iacc0l
579 set_gr_limmed 0,40,gr10
581 test_gr_limmed 0x7fff,0xffff,gr11 ; saturated
583 set_gr_limmed 0,41,gr10
585 test_gr_limmed 0x7fff,0xffff,gr11 ; saturated
587 set_gr_limmed 0,42,gr10
589 test_gr_limmed 0x7fff,0xffff,gr11 ; saturated
591 set_spr_immed 0x08,iacc0h
592 set_spr_immed 0x003fffff,iacc0l
594 set_gr_limmed 0,40,gr10
596 test_gr_limmed 0x7fff,0xffff,gr11 ; saturated
598 set_gr_limmed 0,41,gr10
600 test_gr_limmed 0x7fff,0xffff,gr11 ; saturated
602 set_spr_immed 0xffffffff,iacc0h
603 set_spr_immed 0xefe00000,iacc0l
605 set_gr_limmed 0,40,gr10
607 test_gr_limmed 0x8000,0x0000,gr11 ; saturated
609 set_gr_limmed 0,41,gr10
611 test_gr_limmed 0x8000,0x0000,gr11 ; saturated
613 set_gr_limmed 0,42,gr10
615 test_gr_limmed 0x8000,0x0000,gr11 ; saturated
617 set_spr_immed 0x80000000,iacc0h
618 set_spr_immed 0x003fffff,iacc0l
620 set_gr_limmed 0,16,gr10
622 test_gr_limmed 0x8000,0x0000,gr11 ; saturated
624 set_gr_limmed 0,17,gr10
626 test_gr_limmed 0x8000,0x0000,gr11 ; saturated
628 set_spr_immed 0xaf5a5a5a,iacc0h
629 set_spr_immed 0x5a5a5a5a,iacc0l
631 set_gr_limmed 0xffff,0xfffc,gr10
633 test_gr_limmed 0xfaf5,0xa5a6,gr11
635 set_spr_immed 0x2f5a5a5a,iacc0h
636 set_spr_immed 0x5a5a5a5a,iacc0l
638 set_gr_limmed 0xffff,0xfff9,gr10
640 test_gr_limmed 0x005e,0xb4b5,gr11
645 set_spr_immed 0xfffffedc,iacc0h
646 set_spr_immed 0xba987654,iacc0l
650 test_gr_limmed 0xfedc,0xba98,gr11
654 test_gr_limmed 0xffed,0xcbaa,gr11
658 test_gr_limmed 0xffff,0xffee,gr11
662 test_gr_limmed 0x8000,0x0000,gr11