2 # Copyright
1997-2019 Free Software Foundation
, Inc.
4 # This
program is free software
; you can redistribute it and
/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation
; either version
3 of the License
, or
7 #
(at your option
) any later version.
9 # This
program is distributed in the hope that it will be useful
,
10 # but WITHOUT
ANY WARRANTY
; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License
for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this
program.
If not
, see
<http
://www.gnu.org
/licenses
/>.
17 # This file was written by Jeff Law.
(law@cygnus.com
)
19 if ![istarget
"mn10300*-*-*"] {
20 verbose
"Tests ignored for all but mn10300 based targets."
27 set srcfile $
{srcdir
}/$
{subdir
}/$
{testfile
}.s
28 set binfile $
{objdir
}/$
{subdir
}/$
{testfile
}
29 if { [gdb_compile
"${srcfile}" "${binfile}" object ""] != "" } {
30 untested
"failed to compile"
39 send_gdb
"x/8i call_tests\n"
42 .
*call .
*,.a2
,a3
,exreg0.
,9.
*
43 .
*call .
*,.a2
,a3
,exreg1.
,9.
*
44 .
*call .
*,.a2
,a3
,exother.
,9.
*
45 .
*call .
*,.d2
,d3
,a2
,a3
,other
,exreg0
,exreg1
,exother.
,9.
*
46 .
*call .
*,.a2
,a3
,exreg0.
,9.
*
47 .
*call .
*,.a2
,a3
,exreg1.
,9.
*
48 .
*call .
*,.a2
,a3
,exother.
,9.
*
49 .
*call .
*,.d2
,d3
,a2
,a3
,other
,exreg0
,exreg1
,exother.
,9.
*
50 .
*$gdb_prompt $
" { pass "call tests" }
51 -re
"$gdb_prompt $" { fail "call tests" }
52 timeout
{ fail
"(timeout) call tests" }
61 send_gdb
"x/16i movm_tests\n"
64 .
*movm
\\(sp
\\),.a2
,a3
,exreg0.
*
65 .
*movm
\\(sp
\\),.a2
,a3
,exreg1.
*
66 .
*movm
\\(sp
\\),.a2
,a3
,exother.
*
67 .
*movm
\\(sp
\\),.d2
,d3
,a2
,a3
,other
,exreg0
,exreg1
,exother.
*
68 .
*movm .a2
,a3
,exreg0.
,\\(sp
\\).
*
69 .
*movm .a2
,a3
,exreg1.
,\\(sp
\\).
*
70 .
*movm .a2
,a3
,exother.
,\\(sp
\\).
*
71 .
*movm .d2
,d3
,a2
,a3
,other
,exreg0
,exreg1
,exother.
,\\(sp
\\).
*
72 .
*movm
\\(usp
\\),.a2
,a3
,exreg0.
*
73 .
*movm
\\(usp
\\),.a2
,a3
,exreg1.
*
74 .
*movm
\\(usp
\\),.a2
,a3
,exother.
*
75 .
*movm
\\(usp
\\),.d2
,d3
,a2
,a3
,other
,exreg0
,exreg1
,exother.
*
76 .
*movm .a2
,a3
,exreg0.
,\\(usp
\\).
*
77 .
*movm .a2
,a3
,exreg1.
,\\(usp
\\).
*
78 .
*movm .a2
,a3
,exother.
,\\(usp
\\).
*
79 .
*movm .d2
,d3
,a2
,a3
,other
,exreg0
,exreg1
,exother.
,\\(usp
\\).
*
80 .
*$gdb_prompt $
" { pass "movm tests" }
81 -re
"$gdb_prompt $" { fail "movm tests" }
82 timeout
{ fail
"(timeout) movm tests" }
91 send_gdb
"x/11i misc_tests\n"
105 .
*$gdb_prompt $
" { pass "misc tests" }
106 -re
"$gdb_prompt $" { fail "misc tests" }
107 timeout
{ fail
"(timeout) misc tests" }
116 send_gdb
"x/45i mov_tests\n"
128 .
*mov
\\(16,r1
\\),r2.
*
129 .
*mov r2
,\\(16,r1
\\).
*
130 .
*mov
\\(16,sp
\\),r2.
*
131 .
*mov r2
,\\(16,sp
\\).
*
134 .
*mov
\\(2096895,r1
\\),r2.
*
135 .
*mov r2
,\\(2096895,r1
\\).
*
136 .
*mov
\\(2096895,sp
\\),r2.
*
137 .
*mov r2
,\\(2096895,sp
\\).
*
138 .
*mov
\\(0x1ffeff\\),r2.
*
139 .
*mov r2
,\\(0x1ffeff\\).
*
140 .
*mov
2147417596,r2.
*
141 .
*mov
2147417596,xr2.
*
142 .
*mov
\\(2147417596,r1
\\),r2.
*
143 .
*mov r2
,\\(2147417596,r1
\\).
*
144 .
*mov
\\(2147417596,sp
\\),r2.
*
145 .
*mov r2
,\\(2147417596,sp
\\).
*
146 .
*mov
\\(0x7ffefdfc\\),r2.
*
147 .
*mov r2
,\\(0x7ffefdfc\\).
*
150 .
*movu
2147417596,r2.
*
164 .
*$gdb_prompt $
" { pass "mov tests" }
165 -re
"$gdb_prompt $" { fail "mov tests" }
166 timeout
{ fail
"(timeout) mov tests" }
175 send_gdb
"x/5i ext_tests\n"
183 .
*$gdb_prompt $
" { pass "ext tests" }
184 -re
"$gdb_prompt $" { fail "ext tests" }
185 timeout
{ fail
"(timeout) ext tests" }
194 send_gdb
"x/11i add_tests\n"
200 .
*add
2147417596,r2.
*
205 .
*addc
2147417596,r2.
*
208 .
*$gdb_prompt $
" { pass "add tests" }
209 -re
"$gdb_prompt $" { fail "add tests" }
210 timeout
{ fail
"(timeout) add tests" }
219 send_gdb
"x/8i sub_tests\n"
225 .
*sub
2147417596,r2.
*
229 .
*subc
2147417596,r2.
*
230 .
*$gdb_prompt $
" { pass "sub tests" }
231 -re
"$gdb_prompt $" { fail "sub tests" }
232 timeout
{ fail
"(timeout) sub tests" }
241 send_gdb
"x/4i cmp_tests\n"
247 .
*cmp
2147417596,r2.
*
248 .
*$gdb_prompt $
" { pass "cmp tests" }
249 -re
"$gdb_prompt $" { fail "cmp tests" }
250 timeout
{ fail
"(timeout) cmp tests" }
254 proc logical_tests
{ } {
259 send_gdb
"x/15i logical_tests\n"
272 .
*and
2147417596,r2.
*
274 .
*xor
2147417596,r2.
*
277 .
*$gdb_prompt $
" { pass "logical tests" }
278 -re
"$gdb_prompt $" { fail "logical tests" }
279 timeout
{ fail
"(timeout) logical tests" }
283 proc shift_tests
{ } {
288 send_gdb
"x/15i shift_tests\n"
303 .
*asr
2147417596,r2.
*
304 .
*lsr
2147417596,r2.
*
305 .
*asl
2147417596,r2.
*
306 .
*$gdb_prompt $
" { pass "shift tests" }
307 -re
"$gdb_prompt $" { fail "shift tests" }
308 timeout
{ fail
"(timeout) shift tests" }
312 proc muldiv_tests
{ } {
317 send_gdb
"x/16i muldiv_tests\n"
326 .
*mul
2147417596,r2.
*
327 .
*mulu
2147417596,r2.
*
332 .
*dmulh
2147417596,r2.
*
333 .
*dmulhu
2147417596,r2.
*
336 .
*$gdb_prompt $
" { pass "muldiv tests" }
337 -re
"$gdb_prompt $" { fail "muldiv tests" }
338 timeout
{ fail
"(timeout) muldiv tests" }
342 proc movbu_tests
{ } {
347 send_gdb
"x/20i movbu_tests\n"
350 .
*movbu
\\(r5
\\),r6.
*
351 .
*movbu r7
,\\(a0
\\).
*
352 .
*movbu
\\(sp
\\),r7.
*
353 .
*movbu a0
,\\(sp
\\).
*
354 .
*movbu
\\(16,r1
\\),r2.
*
355 .
*movbu r2
,\\(16,r1
\\).
*
356 .
*movbu
\\(16,sp
\\),r2.
*
357 .
*movbu r2
,\\(16,sp
\\).
*
358 .
*movbu
\\(2096895,r1
\\),r2.
*
359 .
*movbu r2
,\\(2096895,r1
\\).
*
360 .
*movbu
\\(2096895,sp
\\),r2.
*
361 .
*movbu r2
,\\(2096895,sp
\\).
*
362 .
*movbu
\\(0x1ffeff\\),r2.
*
363 .
*movbu r2
,\\(0x1ffeff\\).
*
364 .
*movbu
\\(2147417596,r1
\\),r2.
*
365 .
*movbu r2
,\\(2147417596,r1
\\).
*
366 .
*movbu
\\(2147417596,sp
\\),r2.
*
367 .
*movbu r2
,\\(2147417596,sp
\\).
*
368 .
*movbu
\\(0x7ffefdfc\\),r2.
*
369 .
*movbu r2
,\\(0x7ffefdfc\\).
*
370 .
*$gdb_prompt $
" { pass "movbu tests" }
371 -re
"$gdb_prompt $" { fail "movbu tests" }
372 timeout
{ fail
"(timeout) movbu tests" }
376 proc movhu_tests
{ } {
381 send_gdb
"x/20i movhu_tests\n"
384 .
*movhu
\\(a1
\\),a2.
*
385 .
*movhu a3
,\\(d0
\\).
*
386 .
*movhu
\\(sp
\\),a1.
*
387 .
*movhu a2
,\\(sp
\\).
*
388 .
*movhu
\\(16,r1
\\),r2.
*
389 .
*movhu r2
,\\(16,r1
\\).
*
390 .
*movhu
\\(16,sp
\\),r2.
*
391 .
*movhu r2
,\\(16,sp
\\).
*
392 .
*movhu
\\(2096895,r1
\\),r2.
*
393 .
*movhu r2
,\\(2096895,r1
\\).
*
394 .
*movhu
\\(2096895,sp
\\),r2.
*
395 .
*movhu r2
,\\(2096895,sp
\\).
*
396 .
*movhu
\\(0x1ffeff\\),r2.
*
397 .
*movhu r2
,\\(0x1ffeff\\).
*
398 .
*movhu
\\(2147417596,r1
\\),r2.
*
399 .
*movhu r2
,\\(2147417596,r1
\\).
*
400 .
*movhu
\\(2147417596,sp
\\),r2.
*
401 .
*movhu r2
,\\(2147417596,sp
\\).
*
402 .
*movhu
\\(0x7ffefdfc\\),r2.
*
403 .
*movhu r2
,\\(0x7ffefdfc\\).
*
404 .
*$gdb_prompt $
" { pass "movhu tests" }
405 -re
"$gdb_prompt $" { fail "movhu tests" }
406 timeout
{ fail
"(timeout) movhu tests" }
415 send_gdb
"x/28i mac_tests\n"
438 .
*mac
2147417596,r2.
*
439 .
*macu
2147417596,r2.
*
440 .
*macb
2147417596,r2.
*
441 .
*macbu
2147417596,r2.
*
442 .
*mach
2147417596,r2.
*
443 .
*machu
2147417596,r2.
*
444 .
*dmach
2147417596,r2.
*
445 .
*dmachu
2147417596,r2.
*
446 .
*$gdb_prompt $
" { pass "mac tests" }
447 -re
"$gdb_prompt $" { fail "mac tests" }
448 timeout
{ fail
"(timeout) mac tests" }
457 send_gdb
"x/4i bit_tests\n"
463 .
*btst
2147417596,r2.
*
464 .
*$gdb_prompt $
" { pass "bit tests" }
465 -re
"$gdb_prompt $" { fail "bit tests" }
466 timeout
{ fail
"(timeout) bit tests" }
470 proc dsp_add_tests
{ } {
475 send_gdb
"x/28i dsp_add_tests\n"
478 .
*add_add r4
,r1
,r2
,r3.
*
479 .
*add_add r4
,r1
,2,r3.
*
480 .
*add_sub r4
,r1
,r2
,r3.
*
481 .
*add_sub r4
,r1
,2,r3.
*
482 .
*add_cmp r4
,r1
,r2
,r3.
*
483 .
*add_cmp r4
,r1
,2,r3.
*
484 .
*add_mov r4
,r1
,r2
,r3.
*
485 .
*add_mov r4
,r1
,2,r3.
*
486 .
*add_asr r4
,r1
,r2
,r3.
*
487 .
*add_asr r4
,r1
,2,r3.
*
488 .
*add_lsr r4
,r1
,r2
,r3.
*
489 .
*add_lsr r4
,r1
,2,r3.
*
490 .
*add_asl r4
,r1
,r2
,r3.
*
491 .
*add_asl r4
,r1
,2,r3.
*
492 .
*add_add
4,r1
,r2
,r3.
*
493 .
*add_add
4,r1
,2,r3.
*
494 .
*add_sub
4,r1
,r2
,r3.
*
495 .
*add_sub
4,r1
,2,r3.
*
496 .
*add_cmp
4,r1
,r2
,r3.
*
497 .
*add_cmp
4,r1
,2,r3.
*
498 .
*add_mov
4,r1
,r2
,r3.
*
499 .
*add_mov
4,r1
,2,r3.
*
500 .
*add_asr
4,r1
,r2
,r3.
*
501 .
*add_asr
4,r1
,2,r3.
*
502 .
*add_lsr
4,r1
,r2
,r3.
*
503 .
*add_lsr
4,r1
,2,r3.
*
504 .
*add_asl
4,r1
,r2
,r3.
*
505 .
*add_asl
4,r1
,2,r3.
*
506 .
*$gdb_prompt $
" { pass "dsp_add tests" }
507 -re
"$gdb_prompt $" { fail "dsp_add tests" }
508 timeout
{ fail
"(timeout) dsp_add tests" }
512 proc dsp_cmp_tests
{ } {
517 send_gdb
"x/24i dsp_cmp_tests\n"
520 .
*cmp_add r4
,r1
,r2
,r3.
*
521 .
*cmp_add r4
,r1
,2,r3.
*
522 .
*cmp_sub r4
,r1
,r2
,r3.
*
523 .
*cmp_sub r4
,r1
,2,r3.
*
524 .
*cmp_mov r4
,r1
,r2
,r3.
*
525 .
*cmp_mov r4
,r1
,2,r3.
*
526 .
*cmp_asr r4
,r1
,r2
,r3.
*
527 .
*cmp_asr r4
,r1
,2,r3.
*
528 .
*cmp_lsr r4
,r1
,r2
,r3.
*
529 .
*cmp_lsr r4
,r1
,2,r3.
*
530 .
*cmp_asl r4
,r1
,r2
,r3.
*
531 .
*cmp_asl r4
,r1
,2,r3.
*
532 .
*cmp_add
4,r1
,r2
,r3.
*
533 .
*cmp_add
4,r1
,2,r3.
*
534 .
*cmp_sub
4,r1
,r2
,r3.
*
535 .
*cmp_sub
4,r1
,2,r3.
*
536 .
*cmp_mov
4,r1
,r2
,r3.
*
537 .
*cmp_mov
4,r1
,2,r3.
*
538 .
*cmp_asr
4,r1
,r2
,r3.
*
539 .
*cmp_asr
4,r1
,2,r3.
*
540 .
*cmp_lsr
4,r1
,r2
,r3.
*
541 .
*cmp_lsr
4,r1
,2,r3.
*
542 .
*cmp_asl
4,r1
,r2
,r3.
*
543 .
*cmp_asl
4,r1
,2,r3.
*
544 .
*$gdb_prompt $
" { pass "dsp_cmp tests" }
545 -re
"$gdb_prompt $" { fail "dsp_cmp tests" }
546 timeout
{ fail
"(timeout) dsp_cmp tests" }
550 proc dsp_sub_tests
{ } {
555 send_gdb
"x/28i dsp_sub_tests\n"
558 .
*sub_add r4
,r1
,r2
,r3.
*
559 .
*sub_add r4
,r1
,2,r3.
*
560 .
*sub_sub r4
,r1
,r2
,r3.
*
561 .
*sub_sub r4
,r1
,2,r3.
*
562 .
*sub_cmp r4
,r1
,r2
,r3.
*
563 .
*sub_cmp r4
,r1
,2,r3.
*
564 .
*sub_mov r4
,r1
,r2
,r3.
*
565 .
*sub_mov r4
,r1
,2,r3.
*
566 .
*sub_asr r4
,r1
,r2
,r3.
*
567 .
*sub_asr r4
,r1
,2,r3.
*
568 .
*sub_lsr r4
,r1
,r2
,r3.
*
569 .
*sub_lsr r4
,r1
,2,r3.
*
570 .
*sub_asl r4
,r1
,r2
,r3.
*
571 .
*sub_asl r4
,r1
,2,r3.
*
572 .
*sub_add
4,r1
,r2
,r3.
*
573 .
*sub_add
4,r1
,2,r3.
*
574 .
*sub_sub
4,r1
,r2
,r3.
*
575 .
*sub_sub
4,r1
,2,r3.
*
576 .
*sub_cmp
4,r1
,r2
,r3.
*
577 .
*sub_cmp
4,r1
,2,r3.
*
578 .
*sub_mov
4,r1
,r2
,r3.
*
579 .
*sub_mov
4,r1
,2,r3.
*
580 .
*sub_asr
4,r1
,r2
,r3.
*
581 .
*sub_asr
4,r1
,2,r3.
*
582 .
*sub_lsr
4,r1
,r2
,r3.
*
583 .
*sub_lsr
4,r1
,2,r3.
*
584 .
*sub_asl
4,r1
,r2
,r3.
*
585 .
*sub_asl
4,r1
,2,r3.
*
586 .
*$gdb_prompt $
" { pass "dsp_sub tests" }
587 -re
"$gdb_prompt $" { fail "dsp_sub tests" }
588 timeout
{ fail
"(timeout) dsp_sub tests" }
592 proc dsp_mov_tests
{ } {
597 send_gdb
"x/28i dsp_mov_tests\n"
600 .
*mov_add r4
,r1
,r2
,r3.
*
601 .
*mov_add r4
,r1
,2,r3.
*
602 .
*mov_sub r4
,r1
,r2
,r3.
*
603 .
*mov_sub r4
,r1
,2,r3.
*
604 .
*mov_cmp r4
,r1
,r2
,r3.
*
605 .
*mov_cmp r4
,r1
,2,r3.
*
606 .
*mov_mov r4
,r1
,r2
,r3.
*
607 .
*mov_mov r4
,r1
,2,r3.
*
608 .
*mov_asr r4
,r1
,r2
,r3.
*
609 .
*mov_asr r4
,r1
,2,r3.
*
610 .
*mov_lsr r4
,r1
,r2
,r3.
*
611 .
*mov_lsr r4
,r1
,2,r3.
*
612 .
*mov_asl r4
,r1
,r2
,r3.
*
613 .
*mov_asl r4
,r1
,2,r3.
*
614 .
*mov_add
4,r1
,r2
,r3.
*
615 .
*mov_add
4,r1
,2,r3.
*
616 .
*mov_sub
4,r1
,r2
,r3.
*
617 .
*mov_sub
4,r1
,2,r3.
*
618 .
*mov_cmp
4,r1
,r2
,r3.
*
619 .
*mov_cmp
4,r1
,2,r3.
*
620 .
*mov_mov
4,r1
,r2
,r3.
*
621 .
*mov_mov
4,r1
,2,r3.
*
622 .
*mov_asr
4,r1
,r2
,r3.
*
623 .
*mov_asr
4,r1
,2,r3.
*
624 .
*mov_lsr
4,r1
,r2
,r3.
*
625 .
*mov_lsr
4,r1
,2,r3.
*
626 .
*mov_asl
4,r1
,r2
,r3.
*
627 .
*mov_asl
4,r1
,2,r3.
*
628 .
*$gdb_prompt $
" { pass "dsp_mov tests" }
629 -re
"$gdb_prompt $" { fail "dsp_mov tests" }
630 timeout
{ fail
"(timeout) dsp_mov tests" }
634 proc dsp_logical_tests
{ } {
639 send_gdb
"x/42i dsp_logical_tests\n"
642 .
*and_add r4
,r1
,r2
,r3.
*
643 .
*and_add r4
,r1
,2,r3.
*
644 .
*and_sub r4
,r1
,r2
,r3.
*
645 .
*and_sub r4
,r1
,2,r3.
*
646 .
*and_cmp r4
,r1
,r2
,r3.
*
647 .
*and_cmp r4
,r1
,2,r3.
*
648 .
*and_mov r4
,r1
,r2
,r3.
*
649 .
*and_mov r4
,r1
,2,r3.
*
650 .
*and_asr r4
,r1
,r2
,r3.
*
651 .
*and_asr r4
,r1
,2,r3.
*
652 .
*and_lsr r4
,r1
,r2
,r3.
*
653 .
*and_lsr r4
,r1
,2,r3.
*
654 .
*and_asl r4
,r1
,r2
,r3.
*
655 .
*and_asl r4
,r1
,2,r3.
*
656 .
*xor_add r4
,r1
,r2
,r3.
*
657 .
*xor_add r4
,r1
,2,r3.
*
658 .
*xor_sub r4
,r1
,r2
,r3.
*
659 .
*xor_sub r4
,r1
,2,r3.
*
660 .
*xor_cmp r4
,r1
,r2
,r3.
*
661 .
*xor_cmp r4
,r1
,2,r3.
*
662 .
*xor_mov r4
,r1
,r2
,r3.
*
663 .
*xor_mov r4
,r1
,2,r3.
*
664 .
*xor_asr r4
,r1
,r2
,r3.
*
665 .
*xor_asr r4
,r1
,2,r3.
*
666 .
*xor_lsr r4
,r1
,r2
,r3.
*
667 .
*xor_lsr r4
,r1
,2,r3.
*
668 .
*xor_asl r4
,r1
,r2
,r3.
*
669 .
*xor_asl r4
,r1
,2,r3.
*
670 .
*or_add r4
,r1
,r2
,r3.
*
671 .
*or_add r4
,r1
,2,r3.
*
672 .
*or_sub r4
,r1
,r2
,r3.
*
673 .
*or_sub r4
,r1
,2,r3.
*
674 .
*or_cmp r4
,r1
,r2
,r3.
*
675 .
*or_cmp r4
,r1
,2,r3.
*
676 .
*or_mov r4
,r1
,r2
,r3.
*
677 .
*or_mov r4
,r1
,2,r3.
*
678 .
*or_asr r4
,r1
,r2
,r3.
*
679 .
*or_asr r4
,r1
,2,r3.
*
680 .
*or_lsr r4
,r1
,r2
,r3.
*
681 .
*or_lsr r4
,r1
,2,r3.
*
682 .
*or_asl r4
,r1
,r2
,r3.
*
683 .
*or_asl r4
,r1
,2,r3.
*
684 .
*$gdb_prompt $
" { pass "dsp_logical tests" }
685 -re
"$gdb_prompt $" { fail "dsp_logical tests" }
686 timeout
{ fail
"(timeout) dsp_logical tests" }
690 proc dsp_misc_tests
{ } {
695 send_gdb
"x/42i dsp_misc_tests\n"
698 .
*dmach_add r4
,r1
,r2
,r3.
*
699 .
*dmach_add r4
,r1
,2,r3.
*
700 .
*dmach_sub r4
,r1
,r2
,r3.
*
701 .
*dmach_sub r4
,r1
,2,r3.
*
702 .
*dmach_cmp r4
,r1
,r2
,r3.
*
703 .
*dmach_cmp r4
,r1
,2,r3.
*
704 .
*dmach_mov r4
,r1
,r2
,r3.
*
705 .
*dmach_mov r4
,r1
,2,r3.
*
706 .
*dmach_asr r4
,r1
,r2
,r3.
*
707 .
*dmach_asr r4
,r1
,2,r3.
*
708 .
*dmach_lsr r4
,r1
,r2
,r3.
*
709 .
*dmach_lsr r4
,r1
,2,r3.
*
710 .
*dmach_asl r4
,r1
,r2
,r3.
*
711 .
*dmach_asl r4
,r1
,2,r3.
*
712 .
*swhw_add r4
,r1
,r2
,r3.
*
713 .
*swhw_add r4
,r1
,2,r3.
*
714 .
*swhw_sub r4
,r1
,r2
,r3.
*
715 .
*swhw_sub r4
,r1
,2,r3.
*
716 .
*swhw_cmp r4
,r1
,r2
,r3.
*
717 .
*swhw_cmp r4
,r1
,2,r3.
*
718 .
*swhw_mov r4
,r1
,r2
,r3.
*
719 .
*swhw_mov r4
,r1
,2,r3.
*
720 .
*swhw_asr r4
,r1
,r2
,r3.
*
721 .
*swhw_asr r4
,r1
,2,r3.
*
722 .
*swhw_lsr r4
,r1
,r2
,r3.
*
723 .
*swhw_lsr r4
,r1
,2,r3.
*
724 .
*swhw_asl r4
,r1
,r2
,r3.
*
725 .
*swhw_asl r4
,r1
,2,r3.
*
726 .
*sat16_add r4
,r1
,r2
,r3.
*
727 .
*sat16_add r4
,r1
,2,r3.
*
728 .
*sat16_sub r4
,r1
,r2
,r3.
*
729 .
*sat16_sub r4
,r1
,2,r3.
*
730 .
*sat16_cmp r4
,r1
,r2
,r3.
*
731 .
*sat16_cmp r4
,r1
,2,r3.
*
732 .
*sat16_mov r4
,r1
,r2
,r3.
*
733 .
*sat16_mov r4
,r1
,2,r3.
*
734 .
*sat16_asr r4
,r1
,r2
,r3.
*
735 .
*sat16_asr r4
,r1
,2,r3.
*
736 .
*sat16_lsr r4
,r1
,r2
,r3.
*
737 .
*sat16_lsr r4
,r1
,2,r3.
*
738 .
*sat16_asl r4
,r1
,r2
,r3.
*
739 .
*sat16_asl r4
,r1
,2,r3.
*
740 .
*$gdb_prompt $
" { pass "dsp_misc tests" }
741 -re
"$gdb_prompt $" { fail "dsp_misc tests" }
742 timeout
{ fail
"(timeout) dsp_misc tests" }
746 proc autoincrement_tests
{ } {
751 send_gdb
"x/16i autoincrement_tests\n"
754 .
*mov
\\(r1
\\+\\),r2.
*
755 .
*mov r3
,\\(r4
\\+\\).
*
756 .
*movhu
\\(r6
\\+\\),r7.
*
757 .
*movhu a0
,\\(a1
\\+\\).
*
758 .
*mov
\\(r1
\\+,64\\),r2.
*
759 .
*mov r1
,\\(r2
\\+,64\\).
*
760 .
*movhu
\\(r1
\\+,64\\),r2.
*
761 .
*movhu r1
,\\(r2
\\+,64\\).
*
762 .
*mov
\\(r1
\\+,131055\\),r2.
*
763 .
*mov r1
,\\(r2
\\+,131055\\).
*
764 .
*movhu
\\(r1
\\+,131055\\),r2.
*
765 .
*movhu r1
,\\(r2
\\+,131055\\).
*
766 .
*mov
\\(r1
\\+,2147417596\\),r2.
*
767 .
*mov r1
,\\(r2
\\+,2147417596\\).
*
768 .
*movhu
\\(r1
\\+,2147417596\\),r2.
*
769 .
*movhu r1
,\\(r2
\\+,2147417596\\).
*
770 .
*$gdb_prompt $
" { pass "autoincrement tests" }
771 -re
"$gdb_prompt $" { fail "autoincrement tests" }
772 timeout
{ fail
"(timeout) autoincrement tests" }
776 proc dsp_autoincrement_tests
{ } {
781 send_gdb
"x/11i dsp_autoincrement_tests\n"
784 .
*mov_llt
\\(r1
\\+,4\\),r2.
*
785 .
*mov_lgt
\\(r1
\\+,4\\),r2.
*
786 .
*mov_lge
\\(r1
\\+,4\\),r2.
*
787 .
*mov_lle
\\(r1
\\+,4\\),r2.
*
788 .
*mov_lcs
\\(r1
\\+,4\\),r2.
*
789 .
*mov_lhi
\\(r1
\\+,4\\),r2.
*
790 .
*mov_lcc
\\(r1
\\+,4\\),r2.
*
791 .
*mov_lls
\\(r1
\\+,4\\),r2.
*
792 .
*mov_leq
\\(r1
\\+,4\\),r2.
*
793 .
*mov_lne
\\(r1
\\+,4\\),r2.
*
794 .
*mov_lra
\\(r1
\\+,4\\),r2.
*
795 .
*$gdb_prompt $
" { pass "autoincrement tests" }
796 -re
"$gdb_prompt $" { fail "autoincrement tests" }
797 timeout
{ fail
"(timeout) autoincrement tests" }
801 # Start with a fresh gdb.
805 gdb_reinitialize_dir $srcdir
/$subdir
829 dsp_autoincrement_tests