diff options
author | Nick Clifton <nickc@redhat.com> | 1998-02-20 02:04:46 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 1998-02-20 02:04:46 +0000 |
commit | e843e28b1a2c81f7397410e80159a9f8fd726d26 (patch) | |
tree | a80c20b3b9076d5e6859959216566ad635c6b7f2 /sim | |
parent | 534a3d5cf16c59a8801c5fed5da48e796af22cd1 (diff) | |
download | gdb-e843e28b1a2c81f7397410e80159a9f8fd726d26.zip gdb-e843e28b1a2c81f7397410e80159a9f8fd726d26.tar.gz gdb-e843e28b1a2c81f7397410e80159a9f8fd726d26.tar.bz2 |
More instruction tests.
Diffstat (limited to 'sim')
-rw-r--r-- | sim/testsuite/ChangeLog | 3 | ||||
-rw-r--r-- | sim/testsuite/sim/m32r/mvfc.cgs | 17 | ||||
-rw-r--r-- | sim/testsuite/sim/m32r/remu.cgs | 18 | ||||
-rw-r--r-- | sim/testsuite/sim/m32r/rte.cgs | 22 |
4 files changed, 60 insertions, 0 deletions
diff --git a/sim/testsuite/ChangeLog b/sim/testsuite/ChangeLog index b113ba7..d63b1d5 100644 --- a/sim/testsuite/ChangeLog +++ b/sim/testsuite/ChangeLog @@ -1,5 +1,8 @@ Thu Feb 19 11:15:45 1998 Nick Clifton <nickc@cygnus.com> + * sim/m32r/testutils.inc (mvaddr_h_gr): new macro to load an + address into a general register. + * sim/m32r/or3.cgs: Test OR3 instruction. * sim/m32r/rach.cgs: Test RACH instruction. * sim/m32r/rem.cgs: Test REM instruction. diff --git a/sim/testsuite/sim/m32r/mvfc.cgs b/sim/testsuite/sim/m32r/mvfc.cgs new file mode 100644 index 0000000..0c160d9 --- /dev/null +++ b/sim/testsuite/sim/m32r/mvfc.cgs @@ -0,0 +1,17 @@ +# m32r testcase for mvfc $dr,$scr +# mach(): m32r m32rx + + .include "testutils.inc" + + start + + .global mvfc +mvfc: + mvi_h_condbit 0 + mvi_h_gr r4, 2 + + mvfc r4, cr1 + + test_h_gr r4, 0x80000000 + + pass diff --git a/sim/testsuite/sim/m32r/remu.cgs b/sim/testsuite/sim/m32r/remu.cgs new file mode 100644 index 0000000..9098ca6 --- /dev/null +++ b/sim/testsuite/sim/m32r/remu.cgs @@ -0,0 +1,18 @@ +# m32r testcase for remu $dr,$sr +# mach(): m32r m32rx + + .include "testutils.inc" + + start + + .global remu +remu: + mvi_h_gr r4, -17 + mvi_h_gr r5, 7 + + remu r4, r5 + + test_h_gr r4, 4 +; test_h_gr r4, -3 + + pass diff --git a/sim/testsuite/sim/m32r/rte.cgs b/sim/testsuite/sim/m32r/rte.cgs new file mode 100644 index 0000000..c431e07 --- /dev/null +++ b/sim/testsuite/sim/m32r/rte.cgs @@ -0,0 +1,22 @@ +# m32r testcase for rte +# mach(): m32r m32rx + + .include "testutils.inc" + + start + + .global rte +rte: + mvi_h_gr r4, 0x80030000 ; C set, interrupt disabled, using interrupt stack + mvtc r4, cr0 + + mvaddr_h_gr r4, ok + mvtc r4, cr6 + +; rte + fail +ok: + mvfc r4, cr0 + test_h_gr r4, 0x03030000 ; C clear, interrupts enabled, user stack + + pass |