diff options
author | Andrew Cagney <cagney@redhat.com> | 1997-09-17 05:27:56 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1997-09-17 05:27:56 +0000 |
commit | fc07e279aa660f0dff99c95609b67383970555f1 (patch) | |
tree | 3dcb98b55f6671a332490579a52a8d92905274b8 /sim/testsuite | |
parent | f33e31a61a235532ba472159729f181bcf375558 (diff) | |
download | gdb-fc07e279aa660f0dff99c95609b67383970555f1.zip gdb-fc07e279aa660f0dff99c95609b67383970555f1.tar.gz gdb-fc07e279aa660f0dff99c95609b67383970555f1.tar.bz2 |
More v850 simulator tests.
Diffstat (limited to 'sim/testsuite')
-rw-r--r-- | sim/testsuite/v850eq-elf/Makefile.in | 3 | ||||
-rw-r--r-- | sim/testsuite/v850eq-elf/t-bsw.s | 4 | ||||
-rw-r--r-- | sim/testsuite/v850eq-elf/t-callt.s | 27 | ||||
-rw-r--r-- | sim/testsuite/v850eq-elf/t-ctret.s | 14 | ||||
-rw-r--r-- | sim/testsuite/v850eq-elf/t-hsw.s | 10 | ||||
-rw-r--r-- | sim/testsuite/v850eq-elf/t-sxb.s | 4 | ||||
-rw-r--r-- | sim/testsuite/v850eq-elf/t-zxb.s | 4 | ||||
-rw-r--r-- | sim/testsuite/v850eq-elf/t-zxh.s | 4 |
8 files changed, 62 insertions, 8 deletions
diff --git a/sim/testsuite/v850eq-elf/Makefile.in b/sim/testsuite/v850eq-elf/Makefile.in index 6ad97a4..567f291 100644 --- a/sim/testsuite/v850eq-elf/Makefile.in +++ b/sim/testsuite/v850eq-elf/Makefile.in @@ -85,6 +85,9 @@ TESTS= \ \ t-bsh.ok \ t-bsw.ok \ + t-callt.ok \ + t-ctret.ok \ + t-hsw.ok \ t-ldsr.ok \ t-sxb.ok \ t-sxh.ok \ diff --git a/sim/testsuite/v850eq-elf/t-bsw.s b/sim/testsuite/v850eq-elf/t-bsw.s index ed2c91b..cd8ffb4 100644 --- a/sim/testsuite/v850eq-elf/t-bsw.s +++ b/sim/testsuite/v850eq-elf/t-bsw.s @@ -4,7 +4,7 @@ load r2 0x11223344 test_bsw: - bsw r2 - check1 r2 0x44332211 + bsw r2, r3 + check1 r3 0x44332211 exit0 diff --git a/sim/testsuite/v850eq-elf/t-callt.s b/sim/testsuite/v850eq-elf/t-callt.s new file mode 100644 index 0000000..6139223 --- /dev/null +++ b/sim/testsuite/v850eq-elf/t-callt.s @@ -0,0 +1,27 @@ +.include "t-macros.i" + + start + + # Set the callt base pointer + load r1 callt_base + ldsr r1, ctbp + +test_callt: + callt 2 + exit47 + + + + .align 1 +callt_base: + .short -1 + .short -1 + .short (dest - callt_base) + .short -1 + .short -1 + +dest: + stsr ctpc, r2 + check1 r2 test_callt+2 + + exit0 diff --git a/sim/testsuite/v850eq-elf/t-ctret.s b/sim/testsuite/v850eq-elf/t-ctret.s new file mode 100644 index 0000000..661cb03 --- /dev/null +++ b/sim/testsuite/v850eq-elf/t-ctret.s @@ -0,0 +1,14 @@ +.include "t-macros.i" + + start + + # Set the callt base pointer + load r1 ctret_dest + ldsr r1, ctpc + +test_ctret: + ctret + exit47 + +ctret_dest: + exit0 diff --git a/sim/testsuite/v850eq-elf/t-hsw.s b/sim/testsuite/v850eq-elf/t-hsw.s new file mode 100644 index 0000000..6fa04db --- /dev/null +++ b/sim/testsuite/v850eq-elf/t-hsw.s @@ -0,0 +1,10 @@ +.include "t-macros.i" + + start + + load r2 0x11223344 +test_hsw: + hsw r2, r3 + check1 r3 0x33441122 + + exit0 diff --git a/sim/testsuite/v850eq-elf/t-sxb.s b/sim/testsuite/v850eq-elf/t-sxb.s index 14b6e83..53c265e 100644 --- a/sim/testsuite/v850eq-elf/t-sxb.s +++ b/sim/testsuite/v850eq-elf/t-sxb.s @@ -5,11 +5,11 @@ load r2 0x80 test_sxb: sxb r2 - check r2 0xffffff80 + check1 r2 0xffffff80 load r2 0x7f test_sxb2: sxb r2 - check r2 0x7f + check1 r2 0x7f exit0 diff --git a/sim/testsuite/v850eq-elf/t-zxb.s b/sim/testsuite/v850eq-elf/t-zxb.s index 863d0ec..cbc4516 100644 --- a/sim/testsuite/v850eq-elf/t-zxb.s +++ b/sim/testsuite/v850eq-elf/t-zxb.s @@ -5,11 +5,11 @@ load r2 0xffffff80 test_zxb: zxb r2 - check r2 0x80 + check1 r2 0x80 load r2 0xffffff7f test_zxb2: zxb r2 - check r2 0x7f + check1 r2 0x7f exit0 diff --git a/sim/testsuite/v850eq-elf/t-zxh.s b/sim/testsuite/v850eq-elf/t-zxh.s index 512472e..17bdee4 100644 --- a/sim/testsuite/v850eq-elf/t-zxh.s +++ b/sim/testsuite/v850eq-elf/t-zxh.s @@ -5,11 +5,11 @@ load r2 0xffff8000 test_zxh: zxh r2 - check r2 0x80 + check1 r2 0x8000 load r2 0xffff7fff test_zxh2: zxh r2 - check r2 0x7fff + check1 r2 0x7fff exit0 |