From 93c6a010dc099f1ce3ec11872642d74822acd75f Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Fri, 13 Feb 1998 05:19:02 +0000 Subject: [PATCH] Test switching between SPI/SPU. --- sim/testsuite/d10v-elf/ChangeLog | 5 +++++ sim/testsuite/d10v-elf/Makefile.in | 2 ++ sim/testsuite/d10v-elf/t-sp.s | 17 +++++++++++++++++ sim/testsuite/d10v-elf/t-trap.s | 5 +++++ 4 files changed, 29 insertions(+) create mode 100644 sim/testsuite/d10v-elf/t-sp.s create mode 100644 sim/testsuite/d10v-elf/t-trap.s diff --git a/sim/testsuite/d10v-elf/ChangeLog b/sim/testsuite/d10v-elf/ChangeLog index b040b34fcb..28530c008e 100644 --- a/sim/testsuite/d10v-elf/ChangeLog +++ b/sim/testsuite/d10v-elf/ChangeLog @@ -1,3 +1,8 @@ +Fri Feb 13 16:21:13 1998 Andrew Cagney + + * t-sp.s: New test. + * Makefile.in (TESTS): Update. + Wed Feb 11 17:58:50 1998 Andrew Cagney * t-macros.i: Update trap calls, func in r4, args in diff --git a/sim/testsuite/d10v-elf/Makefile.in b/sim/testsuite/d10v-elf/Makefile.in index 07d22d2473..92dc121fda 100644 --- a/sim/testsuite/d10v-elf/Makefile.in +++ b/sim/testsuite/d10v-elf/Makefile.in @@ -48,6 +48,8 @@ TESTS = \ t-rac.ok \ t-rachi.ok \ t-rep.ok \ + t-rte.ok \ + t-sp.ok \ t-sub2w.ok \ t-sub.ok \ t-subi.ok \ diff --git a/sim/testsuite/d10v-elf/t-sp.s b/sim/testsuite/d10v-elf/t-sp.s new file mode 100644 index 0000000000..84f9ad4867 --- /dev/null +++ b/sim/testsuite/d10v-elf/t-sp.s @@ -0,0 +1,17 @@ +.include "t-macros.i" + + start + +;;; Read/Write values to SPU/SPI + + loadpsw2 0 + ldi sp, 0xdead + loadpsw2 PSW_SM + ldi sp, 0xbeef + + loadpsw2 0 + check 1 sp 0xdead + loadpsw2 PSW_SM + check 2 sp 0xbeef + + exit0 diff --git a/sim/testsuite/d10v-elf/t-trap.s b/sim/testsuite/d10v-elf/t-trap.s new file mode 100644 index 0000000000..6ac4ae01ef --- /dev/null +++ b/sim/testsuite/d10v-elf/t-trap.s @@ -0,0 +1,5 @@ +.include "t-macros.i" + + start + + exit47 -- 2.34.1