mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31:49 +08:00
More instruction tests.
This commit is contained in:
parent
534a3d5cf1
commit
e843e28b1a
@ -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.
|
||||
|
17
sim/testsuite/sim/m32r/mvfc.cgs
Normal file
17
sim/testsuite/sim/m32r/mvfc.cgs
Normal file
@ -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
|
18
sim/testsuite/sim/m32r/remu.cgs
Normal file
18
sim/testsuite/sim/m32r/remu.cgs
Normal file
@ -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
|
22
sim/testsuite/sim/m32r/rte.cgs
Normal file
22
sim/testsuite/sim/m32r/rte.cgs
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user