2 # Copyright
1997-2024 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 require
{istarget
"mn10300*-*-*"}
24 set srcfile $
{srcdir
}/$
{subdir
}/$
{testfile
}.s
25 set binfile $
{objdir
}/$
{subdir
}/$
{testfile
}
26 if { [gdb_compile
"${srcfile}" "${binfile}" object ""] != "" } {
27 untested
"failed to compile"
36 send_gdb
"x/8i call_tests\n"
39 .
*call .
*,.a2
,a3
,exreg0.
,9.
*
40 .
*call .
*,.a2
,a3
,exreg1.
,9.
*
41 .
*call .
*,.a2
,a3
,exother.
,9.
*
42 .
*call .
*,.d2
,d3
,a2
,a3
,other
,exreg0
,exreg1
,exother.
,9.
*
43 .
*call .
*,.a2
,a3
,exreg0.
,9.
*
44 .
*call .
*,.a2
,a3
,exreg1.
,9.
*
45 .
*call .
*,.a2
,a3
,exother.
,9.
*
46 .
*call .
*,.d2
,d3
,a2
,a3
,other
,exreg0
,exreg1
,exother.
,9.
*
47 .
*$gdb_prompt $
" { pass "call tests" }
48 -re
"$gdb_prompt $" { fail "call tests" }
49 timeout
{ fail
"(timeout) call tests" }
58 send_gdb
"x/16i movm_tests\n"
61 .
*movm
\\(sp
\\),.a2
,a3
,exreg0.
*
62 .
*movm
\\(sp
\\),.a2
,a3
,exreg1.
*
63 .
*movm
\\(sp
\\),.a2
,a3
,exother.
*
64 .
*movm
\\(sp
\\),.d2
,d3
,a2
,a3
,other
,exreg0
,exreg1
,exother.
*
65 .
*movm .a2
,a3
,exreg0.
,\\(sp
\\).
*
66 .
*movm .a2
,a3
,exreg1.
,\\(sp
\\).
*
67 .
*movm .a2
,a3
,exother.
,\\(sp
\\).
*
68 .
*movm .d2
,d3
,a2
,a3
,other
,exreg0
,exreg1
,exother.
,\\(sp
\\).
*
69 .
*movm
\\(usp
\\),.a2
,a3
,exreg0.
*
70 .
*movm
\\(usp
\\),.a2
,a3
,exreg1.
*
71 .
*movm
\\(usp
\\),.a2
,a3
,exother.
*
72 .
*movm
\\(usp
\\),.d2
,d3
,a2
,a3
,other
,exreg0
,exreg1
,exother.
*
73 .
*movm .a2
,a3
,exreg0.
,\\(usp
\\).
*
74 .
*movm .a2
,a3
,exreg1.
,\\(usp
\\).
*
75 .
*movm .a2
,a3
,exother.
,\\(usp
\\).
*
76 .
*movm .d2
,d3
,a2
,a3
,other
,exreg0
,exreg1
,exother.
,\\(usp
\\).
*
77 .
*$gdb_prompt $
" { pass "movm tests" }
78 -re
"$gdb_prompt $" { fail "movm tests" }
79 timeout
{ fail
"(timeout) movm tests" }
88 send_gdb
"x/11i misc_tests\n"
102 .
*$gdb_prompt $
" { pass "misc tests" }
103 -re
"$gdb_prompt $" { fail "misc tests" }
104 timeout
{ fail
"(timeout) misc tests" }
113 send_gdb
"x/45i mov_tests\n"
125 .
*mov
\\(16,r1
\\),r2.
*
126 .
*mov r2
,\\(16,r1
\\).
*
127 .
*mov
\\(16,sp
\\),r2.
*
128 .
*mov r2
,\\(16,sp
\\).
*
131 .
*mov
\\(2096895,r1
\\),r2.
*
132 .
*mov r2
,\\(2096895,r1
\\).
*
133 .
*mov
\\(2096895,sp
\\),r2.
*
134 .
*mov r2
,\\(2096895,sp
\\).
*
135 .
*mov
\\(0x1ffeff\\),r2.
*
136 .
*mov r2
,\\(0x1ffeff\\).
*
137 .
*mov
2147417596,r2.
*
138 .
*mov
2147417596,xr2.
*
139 .
*mov
\\(2147417596,r1
\\),r2.
*
140 .
*mov r2
,\\(2147417596,r1
\\).
*
141 .
*mov
\\(2147417596,sp
\\),r2.
*
142 .
*mov r2
,\\(2147417596,sp
\\).
*
143 .
*mov
\\(0x7ffefdfc\\),r2.
*
144 .
*mov r2
,\\(0x7ffefdfc\\).
*
147 .
*movu
2147417596,r2.
*
161 .
*$gdb_prompt $
" { pass "mov tests" }
162 -re
"$gdb_prompt $" { fail "mov tests" }
163 timeout
{ fail
"(timeout) mov tests" }
172 send_gdb
"x/5i ext_tests\n"
180 .
*$gdb_prompt $
" { pass "ext tests" }
181 -re
"$gdb_prompt $" { fail "ext tests" }
182 timeout
{ fail
"(timeout) ext tests" }
191 send_gdb
"x/11i add_tests\n"
197 .
*add
2147417596,r2.
*
202 .
*addc
2147417596,r2.
*
205 .
*$gdb_prompt $
" { pass "add tests" }
206 -re
"$gdb_prompt $" { fail "add tests" }
207 timeout
{ fail
"(timeout) add tests" }
216 send_gdb
"x/8i sub_tests\n"
222 .
*sub
2147417596,r2.
*
226 .
*subc
2147417596,r2.
*
227 .
*$gdb_prompt $
" { pass "sub tests" }
228 -re
"$gdb_prompt $" { fail "sub tests" }
229 timeout
{ fail
"(timeout) sub tests" }
238 send_gdb
"x/4i cmp_tests\n"
244 .
*cmp
2147417596,r2.
*
245 .
*$gdb_prompt $
" { pass "cmp tests" }
246 -re
"$gdb_prompt $" { fail "cmp tests" }
247 timeout
{ fail
"(timeout) cmp tests" }
251 proc logical_tests
{ } {
256 send_gdb
"x/15i logical_tests\n"
269 .
*and
2147417596,r2.
*
271 .
*xor
2147417596,r2.
*
274 .
*$gdb_prompt $
" { pass "logical tests" }
275 -re
"$gdb_prompt $" { fail "logical tests" }
276 timeout
{ fail
"(timeout) logical tests" }
280 proc shift_tests
{ } {
285 send_gdb
"x/15i shift_tests\n"
300 .
*asr
2147417596,r2.
*
301 .
*lsr
2147417596,r2.
*
302 .
*asl
2147417596,r2.
*
303 .
*$gdb_prompt $
" { pass "shift tests" }
304 -re
"$gdb_prompt $" { fail "shift tests" }
305 timeout
{ fail
"(timeout) shift tests" }
309 proc muldiv_tests
{ } {
314 send_gdb
"x/16i muldiv_tests\n"
323 .
*mul
2147417596,r2.
*
324 .
*mulu
2147417596,r2.
*
329 .
*dmulh
2147417596,r2.
*
330 .
*dmulhu
2147417596,r2.
*
333 .
*$gdb_prompt $
" { pass "muldiv tests" }
334 -re
"$gdb_prompt $" { fail "muldiv tests" }
335 timeout
{ fail
"(timeout) muldiv tests" }
339 proc movbu_tests
{ } {
344 send_gdb
"x/20i movbu_tests\n"
347 .
*movbu
\\(r5
\\),r6.
*
348 .
*movbu r7
,\\(a0
\\).
*
349 .
*movbu
\\(sp
\\),r7.
*
350 .
*movbu a0
,\\(sp
\\).
*
351 .
*movbu
\\(16,r1
\\),r2.
*
352 .
*movbu r2
,\\(16,r1
\\).
*
353 .
*movbu
\\(16,sp
\\),r2.
*
354 .
*movbu r2
,\\(16,sp
\\).
*
355 .
*movbu
\\(2096895,r1
\\),r2.
*
356 .
*movbu r2
,\\(2096895,r1
\\).
*
357 .
*movbu
\\(2096895,sp
\\),r2.
*
358 .
*movbu r2
,\\(2096895,sp
\\).
*
359 .
*movbu
\\(0x1ffeff\\),r2.
*
360 .
*movbu r2
,\\(0x1ffeff\\).
*
361 .
*movbu
\\(2147417596,r1
\\),r2.
*
362 .
*movbu r2
,\\(2147417596,r1
\\).
*
363 .
*movbu
\\(2147417596,sp
\\),r2.
*
364 .
*movbu r2
,\\(2147417596,sp
\\).
*
365 .
*movbu
\\(0x7ffefdfc\\),r2.
*
366 .
*movbu r2
,\\(0x7ffefdfc\\).
*
367 .
*$gdb_prompt $
" { pass "movbu tests" }
368 -re
"$gdb_prompt $" { fail "movbu tests" }
369 timeout
{ fail
"(timeout) movbu tests" }
373 proc movhu_tests
{ } {
378 send_gdb
"x/20i movhu_tests\n"
381 .
*movhu
\\(a1
\\),a2.
*
382 .
*movhu a3
,\\(d0
\\).
*
383 .
*movhu
\\(sp
\\),a1.
*
384 .
*movhu a2
,\\(sp
\\).
*
385 .
*movhu
\\(16,r1
\\),r2.
*
386 .
*movhu r2
,\\(16,r1
\\).
*
387 .
*movhu
\\(16,sp
\\),r2.
*
388 .
*movhu r2
,\\(16,sp
\\).
*
389 .
*movhu
\\(2096895,r1
\\),r2.
*
390 .
*movhu r2
,\\(2096895,r1
\\).
*
391 .
*movhu
\\(2096895,sp
\\),r2.
*
392 .
*movhu r2
,\\(2096895,sp
\\).
*
393 .
*movhu
\\(0x1ffeff\\),r2.
*
394 .
*movhu r2
,\\(0x1ffeff\\).
*
395 .
*movhu
\\(2147417596,r1
\\),r2.
*
396 .
*movhu r2
,\\(2147417596,r1
\\).
*
397 .
*movhu
\\(2147417596,sp
\\),r2.
*
398 .
*movhu r2
,\\(2147417596,sp
\\).
*
399 .
*movhu
\\(0x7ffefdfc\\),r2.
*
400 .
*movhu r2
,\\(0x7ffefdfc\\).
*
401 .
*$gdb_prompt $
" { pass "movhu tests" }
402 -re
"$gdb_prompt $" { fail "movhu tests" }
403 timeout
{ fail
"(timeout) movhu tests" }
412 send_gdb
"x/28i mac_tests\n"
435 .
*mac
2147417596,r2.
*
436 .
*macu
2147417596,r2.
*
437 .
*macb
2147417596,r2.
*
438 .
*macbu
2147417596,r2.
*
439 .
*mach
2147417596,r2.
*
440 .
*machu
2147417596,r2.
*
441 .
*dmach
2147417596,r2.
*
442 .
*dmachu
2147417596,r2.
*
443 .
*$gdb_prompt $
" { pass "mac tests" }
444 -re
"$gdb_prompt $" { fail "mac tests" }
445 timeout
{ fail
"(timeout) mac tests" }
454 send_gdb
"x/4i bit_tests\n"
460 .
*btst
2147417596,r2.
*
461 .
*$gdb_prompt $
" { pass "bit tests" }
462 -re
"$gdb_prompt $" { fail "bit tests" }
463 timeout
{ fail
"(timeout) bit tests" }
467 proc dsp_add_tests
{ } {
472 send_gdb
"x/28i dsp_add_tests\n"
475 .
*add_add r4
,r1
,r2
,r3.
*
476 .
*add_add r4
,r1
,2,r3.
*
477 .
*add_sub r4
,r1
,r2
,r3.
*
478 .
*add_sub r4
,r1
,2,r3.
*
479 .
*add_cmp r4
,r1
,r2
,r3.
*
480 .
*add_cmp r4
,r1
,2,r3.
*
481 .
*add_mov r4
,r1
,r2
,r3.
*
482 .
*add_mov r4
,r1
,2,r3.
*
483 .
*add_asr r4
,r1
,r2
,r3.
*
484 .
*add_asr r4
,r1
,2,r3.
*
485 .
*add_lsr r4
,r1
,r2
,r3.
*
486 .
*add_lsr r4
,r1
,2,r3.
*
487 .
*add_asl r4
,r1
,r2
,r3.
*
488 .
*add_asl r4
,r1
,2,r3.
*
489 .
*add_add
4,r1
,r2
,r3.
*
490 .
*add_add
4,r1
,2,r3.
*
491 .
*add_sub
4,r1
,r2
,r3.
*
492 .
*add_sub
4,r1
,2,r3.
*
493 .
*add_cmp
4,r1
,r2
,r3.
*
494 .
*add_cmp
4,r1
,2,r3.
*
495 .
*add_mov
4,r1
,r2
,r3.
*
496 .
*add_mov
4,r1
,2,r3.
*
497 .
*add_asr
4,r1
,r2
,r3.
*
498 .
*add_asr
4,r1
,2,r3.
*
499 .
*add_lsr
4,r1
,r2
,r3.
*
500 .
*add_lsr
4,r1
,2,r3.
*
501 .
*add_asl
4,r1
,r2
,r3.
*
502 .
*add_asl
4,r1
,2,r3.
*
503 .
*$gdb_prompt $
" { pass "dsp_add tests" }
504 -re
"$gdb_prompt $" { fail "dsp_add tests" }
505 timeout
{ fail
"(timeout) dsp_add tests" }
509 proc dsp_cmp_tests
{ } {
514 send_gdb
"x/24i dsp_cmp_tests\n"
517 .
*cmp_add r4
,r1
,r2
,r3.
*
518 .
*cmp_add r4
,r1
,2,r3.
*
519 .
*cmp_sub r4
,r1
,r2
,r3.
*
520 .
*cmp_sub r4
,r1
,2,r3.
*
521 .
*cmp_mov r4
,r1
,r2
,r3.
*
522 .
*cmp_mov r4
,r1
,2,r3.
*
523 .
*cmp_asr r4
,r1
,r2
,r3.
*
524 .
*cmp_asr r4
,r1
,2,r3.
*
525 .
*cmp_lsr r4
,r1
,r2
,r3.
*
526 .
*cmp_lsr r4
,r1
,2,r3.
*
527 .
*cmp_asl r4
,r1
,r2
,r3.
*
528 .
*cmp_asl r4
,r1
,2,r3.
*
529 .
*cmp_add
4,r1
,r2
,r3.
*
530 .
*cmp_add
4,r1
,2,r3.
*
531 .
*cmp_sub
4,r1
,r2
,r3.
*
532 .
*cmp_sub
4,r1
,2,r3.
*
533 .
*cmp_mov
4,r1
,r2
,r3.
*
534 .
*cmp_mov
4,r1
,2,r3.
*
535 .
*cmp_asr
4,r1
,r2
,r3.
*
536 .
*cmp_asr
4,r1
,2,r3.
*
537 .
*cmp_lsr
4,r1
,r2
,r3.
*
538 .
*cmp_lsr
4,r1
,2,r3.
*
539 .
*cmp_asl
4,r1
,r2
,r3.
*
540 .
*cmp_asl
4,r1
,2,r3.
*
541 .
*$gdb_prompt $
" { pass "dsp_cmp tests" }
542 -re
"$gdb_prompt $" { fail "dsp_cmp tests" }
543 timeout
{ fail
"(timeout) dsp_cmp tests" }
547 proc dsp_sub_tests
{ } {
552 send_gdb
"x/28i dsp_sub_tests\n"
555 .
*sub_add r4
,r1
,r2
,r3.
*
556 .
*sub_add r4
,r1
,2,r3.
*
557 .
*sub_sub r4
,r1
,r2
,r3.
*
558 .
*sub_sub r4
,r1
,2,r3.
*
559 .
*sub_cmp r4
,r1
,r2
,r3.
*
560 .
*sub_cmp r4
,r1
,2,r3.
*
561 .
*sub_mov r4
,r1
,r2
,r3.
*
562 .
*sub_mov r4
,r1
,2,r3.
*
563 .
*sub_asr r4
,r1
,r2
,r3.
*
564 .
*sub_asr r4
,r1
,2,r3.
*
565 .
*sub_lsr r4
,r1
,r2
,r3.
*
566 .
*sub_lsr r4
,r1
,2,r3.
*
567 .
*sub_asl r4
,r1
,r2
,r3.
*
568 .
*sub_asl r4
,r1
,2,r3.
*
569 .
*sub_add
4,r1
,r2
,r3.
*
570 .
*sub_add
4,r1
,2,r3.
*
571 .
*sub_sub
4,r1
,r2
,r3.
*
572 .
*sub_sub
4,r1
,2,r3.
*
573 .
*sub_cmp
4,r1
,r2
,r3.
*
574 .
*sub_cmp
4,r1
,2,r3.
*
575 .
*sub_mov
4,r1
,r2
,r3.
*
576 .
*sub_mov
4,r1
,2,r3.
*
577 .
*sub_asr
4,r1
,r2
,r3.
*
578 .
*sub_asr
4,r1
,2,r3.
*
579 .
*sub_lsr
4,r1
,r2
,r3.
*
580 .
*sub_lsr
4,r1
,2,r3.
*
581 .
*sub_asl
4,r1
,r2
,r3.
*
582 .
*sub_asl
4,r1
,2,r3.
*
583 .
*$gdb_prompt $
" { pass "dsp_sub tests" }
584 -re
"$gdb_prompt $" { fail "dsp_sub tests" }
585 timeout
{ fail
"(timeout) dsp_sub tests" }
589 proc dsp_mov_tests
{ } {
594 send_gdb
"x/28i dsp_mov_tests\n"
597 .
*mov_add r4
,r1
,r2
,r3.
*
598 .
*mov_add r4
,r1
,2,r3.
*
599 .
*mov_sub r4
,r1
,r2
,r3.
*
600 .
*mov_sub r4
,r1
,2,r3.
*
601 .
*mov_cmp r4
,r1
,r2
,r3.
*
602 .
*mov_cmp r4
,r1
,2,r3.
*
603 .
*mov_mov r4
,r1
,r2
,r3.
*
604 .
*mov_mov r4
,r1
,2,r3.
*
605 .
*mov_asr r4
,r1
,r2
,r3.
*
606 .
*mov_asr r4
,r1
,2,r3.
*
607 .
*mov_lsr r4
,r1
,r2
,r3.
*
608 .
*mov_lsr r4
,r1
,2,r3.
*
609 .
*mov_asl r4
,r1
,r2
,r3.
*
610 .
*mov_asl r4
,r1
,2,r3.
*
611 .
*mov_add
4,r1
,r2
,r3.
*
612 .
*mov_add
4,r1
,2,r3.
*
613 .
*mov_sub
4,r1
,r2
,r3.
*
614 .
*mov_sub
4,r1
,2,r3.
*
615 .
*mov_cmp
4,r1
,r2
,r3.
*
616 .
*mov_cmp
4,r1
,2,r3.
*
617 .
*mov_mov
4,r1
,r2
,r3.
*
618 .
*mov_mov
4,r1
,2,r3.
*
619 .
*mov_asr
4,r1
,r2
,r3.
*
620 .
*mov_asr
4,r1
,2,r3.
*
621 .
*mov_lsr
4,r1
,r2
,r3.
*
622 .
*mov_lsr
4,r1
,2,r3.
*
623 .
*mov_asl
4,r1
,r2
,r3.
*
624 .
*mov_asl
4,r1
,2,r3.
*
625 .
*$gdb_prompt $
" { pass "dsp_mov tests" }
626 -re
"$gdb_prompt $" { fail "dsp_mov tests" }
627 timeout
{ fail
"(timeout) dsp_mov tests" }
631 proc dsp_logical_tests
{ } {
636 send_gdb
"x/42i dsp_logical_tests\n"
639 .
*and_add r4
,r1
,r2
,r3.
*
640 .
*and_add r4
,r1
,2,r3.
*
641 .
*and_sub r4
,r1
,r2
,r3.
*
642 .
*and_sub r4
,r1
,2,r3.
*
643 .
*and_cmp r4
,r1
,r2
,r3.
*
644 .
*and_cmp r4
,r1
,2,r3.
*
645 .
*and_mov r4
,r1
,r2
,r3.
*
646 .
*and_mov r4
,r1
,2,r3.
*
647 .
*and_asr r4
,r1
,r2
,r3.
*
648 .
*and_asr r4
,r1
,2,r3.
*
649 .
*and_lsr r4
,r1
,r2
,r3.
*
650 .
*and_lsr r4
,r1
,2,r3.
*
651 .
*and_asl r4
,r1
,r2
,r3.
*
652 .
*and_asl r4
,r1
,2,r3.
*
653 .
*xor_add r4
,r1
,r2
,r3.
*
654 .
*xor_add r4
,r1
,2,r3.
*
655 .
*xor_sub r4
,r1
,r2
,r3.
*
656 .
*xor_sub r4
,r1
,2,r3.
*
657 .
*xor_cmp r4
,r1
,r2
,r3.
*
658 .
*xor_cmp r4
,r1
,2,r3.
*
659 .
*xor_mov r4
,r1
,r2
,r3.
*
660 .
*xor_mov r4
,r1
,2,r3.
*
661 .
*xor_asr r4
,r1
,r2
,r3.
*
662 .
*xor_asr r4
,r1
,2,r3.
*
663 .
*xor_lsr r4
,r1
,r2
,r3.
*
664 .
*xor_lsr r4
,r1
,2,r3.
*
665 .
*xor_asl r4
,r1
,r2
,r3.
*
666 .
*xor_asl r4
,r1
,2,r3.
*
667 .
*or_add r4
,r1
,r2
,r3.
*
668 .
*or_add r4
,r1
,2,r3.
*
669 .
*or_sub r4
,r1
,r2
,r3.
*
670 .
*or_sub r4
,r1
,2,r3.
*
671 .
*or_cmp r4
,r1
,r2
,r3.
*
672 .
*or_cmp r4
,r1
,2,r3.
*
673 .
*or_mov r4
,r1
,r2
,r3.
*
674 .
*or_mov r4
,r1
,2,r3.
*
675 .
*or_asr r4
,r1
,r2
,r3.
*
676 .
*or_asr r4
,r1
,2,r3.
*
677 .
*or_lsr r4
,r1
,r2
,r3.
*
678 .
*or_lsr r4
,r1
,2,r3.
*
679 .
*or_asl r4
,r1
,r2
,r3.
*
680 .
*or_asl r4
,r1
,2,r3.
*
681 .
*$gdb_prompt $
" { pass "dsp_logical tests" }
682 -re
"$gdb_prompt $" { fail "dsp_logical tests" }
683 timeout
{ fail
"(timeout) dsp_logical tests" }
687 proc dsp_misc_tests
{ } {
692 send_gdb
"x/42i dsp_misc_tests\n"
695 .
*dmach_add r4
,r1
,r2
,r3.
*
696 .
*dmach_add r4
,r1
,2,r3.
*
697 .
*dmach_sub r4
,r1
,r2
,r3.
*
698 .
*dmach_sub r4
,r1
,2,r3.
*
699 .
*dmach_cmp r4
,r1
,r2
,r3.
*
700 .
*dmach_cmp r4
,r1
,2,r3.
*
701 .
*dmach_mov r4
,r1
,r2
,r3.
*
702 .
*dmach_mov r4
,r1
,2,r3.
*
703 .
*dmach_asr r4
,r1
,r2
,r3.
*
704 .
*dmach_asr r4
,r1
,2,r3.
*
705 .
*dmach_lsr r4
,r1
,r2
,r3.
*
706 .
*dmach_lsr r4
,r1
,2,r3.
*
707 .
*dmach_asl r4
,r1
,r2
,r3.
*
708 .
*dmach_asl r4
,r1
,2,r3.
*
709 .
*swhw_add r4
,r1
,r2
,r3.
*
710 .
*swhw_add r4
,r1
,2,r3.
*
711 .
*swhw_sub r4
,r1
,r2
,r3.
*
712 .
*swhw_sub r4
,r1
,2,r3.
*
713 .
*swhw_cmp r4
,r1
,r2
,r3.
*
714 .
*swhw_cmp r4
,r1
,2,r3.
*
715 .
*swhw_mov r4
,r1
,r2
,r3.
*
716 .
*swhw_mov r4
,r1
,2,r3.
*
717 .
*swhw_asr r4
,r1
,r2
,r3.
*
718 .
*swhw_asr r4
,r1
,2,r3.
*
719 .
*swhw_lsr r4
,r1
,r2
,r3.
*
720 .
*swhw_lsr r4
,r1
,2,r3.
*
721 .
*swhw_asl r4
,r1
,r2
,r3.
*
722 .
*swhw_asl r4
,r1
,2,r3.
*
723 .
*sat16_add r4
,r1
,r2
,r3.
*
724 .
*sat16_add r4
,r1
,2,r3.
*
725 .
*sat16_sub r4
,r1
,r2
,r3.
*
726 .
*sat16_sub r4
,r1
,2,r3.
*
727 .
*sat16_cmp r4
,r1
,r2
,r3.
*
728 .
*sat16_cmp r4
,r1
,2,r3.
*
729 .
*sat16_mov r4
,r1
,r2
,r3.
*
730 .
*sat16_mov r4
,r1
,2,r3.
*
731 .
*sat16_asr r4
,r1
,r2
,r3.
*
732 .
*sat16_asr r4
,r1
,2,r3.
*
733 .
*sat16_lsr r4
,r1
,r2
,r3.
*
734 .
*sat16_lsr r4
,r1
,2,r3.
*
735 .
*sat16_asl r4
,r1
,r2
,r3.
*
736 .
*sat16_asl r4
,r1
,2,r3.
*
737 .
*$gdb_prompt $
" { pass "dsp_misc tests" }
738 -re
"$gdb_prompt $" { fail "dsp_misc tests" }
739 timeout
{ fail
"(timeout) dsp_misc tests" }
743 proc autoincrement_tests
{ } {
748 send_gdb
"x/16i autoincrement_tests\n"
751 .
*mov
\\(r1
\\+\\),r2.
*
752 .
*mov r3
,\\(r4
\\+\\).
*
753 .
*movhu
\\(r6
\\+\\),r7.
*
754 .
*movhu a0
,\\(a1
\\+\\).
*
755 .
*mov
\\(r1
\\+,64\\),r2.
*
756 .
*mov r1
,\\(r2
\\+,64\\).
*
757 .
*movhu
\\(r1
\\+,64\\),r2.
*
758 .
*movhu r1
,\\(r2
\\+,64\\).
*
759 .
*mov
\\(r1
\\+,131055\\),r2.
*
760 .
*mov r1
,\\(r2
\\+,131055\\).
*
761 .
*movhu
\\(r1
\\+,131055\\),r2.
*
762 .
*movhu r1
,\\(r2
\\+,131055\\).
*
763 .
*mov
\\(r1
\\+,2147417596\\),r2.
*
764 .
*mov r1
,\\(r2
\\+,2147417596\\).
*
765 .
*movhu
\\(r1
\\+,2147417596\\),r2.
*
766 .
*movhu r1
,\\(r2
\\+,2147417596\\).
*
767 .
*$gdb_prompt $
" { pass "autoincrement tests" }
768 -re
"$gdb_prompt $" { fail "autoincrement tests" }
769 timeout
{ fail
"(timeout) autoincrement tests" }
773 proc dsp_autoincrement_tests
{ } {
778 send_gdb
"x/11i dsp_autoincrement_tests\n"
781 .
*mov_llt
\\(r1
\\+,4\\),r2.
*
782 .
*mov_lgt
\\(r1
\\+,4\\),r2.
*
783 .
*mov_lge
\\(r1
\\+,4\\),r2.
*
784 .
*mov_lle
\\(r1
\\+,4\\),r2.
*
785 .
*mov_lcs
\\(r1
\\+,4\\),r2.
*
786 .
*mov_lhi
\\(r1
\\+,4\\),r2.
*
787 .
*mov_lcc
\\(r1
\\+,4\\),r2.
*
788 .
*mov_lls
\\(r1
\\+,4\\),r2.
*
789 .
*mov_leq
\\(r1
\\+,4\\),r2.
*
790 .
*mov_lne
\\(r1
\\+,4\\),r2.
*
791 .
*mov_lra
\\(r1
\\+,4\\),r2.
*
792 .
*$gdb_prompt $
" { pass "autoincrement tests" }
793 -re
"$gdb_prompt $" { fail "autoincrement tests" }
794 timeout
{ fail
"(timeout) autoincrement tests" }
798 clean_restart $binfile
821 dsp_autoincrement_tests