mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-31 05:44:41 +08:00

Now that all port tests live under testsuite/sim/*/, and none live in testsuite/ directly, flatten the structure by moving all of the dirs under testsuite/sim/ to testsuite/ directly. We need to stop passing --tool to dejagnu so that it searches all dirs and not just ones that start with "sim". Since we have no other dirs in this tree, and no plans to add any, should be fine.
87 lines
944 B
Plaintext
87 lines
944 B
Plaintext
# mach: crisv3 crisv8 crisv10 crisv32
|
|
# output: 0\n0\n0\n0\n0\n0\n
|
|
|
|
# Test that jsr Rn and jsr [PC+] work.
|
|
|
|
.include "testutils.inc"
|
|
start
|
|
x:
|
|
move.d 0f,r6
|
|
setf nzvc
|
|
jsr r6
|
|
.if ..asm.arch.cris.v32
|
|
nop
|
|
.endif
|
|
0:
|
|
test_move_cc 1 1 1 1
|
|
move srp,r3
|
|
sub.d 0b,r3
|
|
dumpr3
|
|
|
|
move.d 1f,r0
|
|
setf nzvc
|
|
jsr r0
|
|
.if ..asm.arch.cris.v32
|
|
moveq 0,r0
|
|
.endif
|
|
6:
|
|
nop
|
|
quit
|
|
|
|
2:
|
|
test_move_cc 0 0 0 0
|
|
move srp,r3
|
|
sub.d 3f,r3
|
|
dumpr3
|
|
jsr 4f
|
|
.if ..asm.arch.cris.v32
|
|
nop
|
|
.endif
|
|
7:
|
|
nop
|
|
quit
|
|
|
|
; Can't use local label 8 or 9, as they're used by test_move_cc.
|
|
y:
|
|
move srp,r3
|
|
sub.d 7b,r3
|
|
dumpr3
|
|
quit
|
|
|
|
4:
|
|
move srp,r3
|
|
sub.d 7b,r3
|
|
dumpr3
|
|
move.d 5f,r3
|
|
jump r3
|
|
.if ..asm.arch.cris.v32
|
|
moveq 0,r3
|
|
.endif
|
|
quit
|
|
|
|
.space 32770,0
|
|
1:
|
|
test_move_cc 1 1 1 1
|
|
move srp,r3
|
|
sub.d 6b,r3
|
|
dumpr3
|
|
|
|
clearf cznv
|
|
jsr 2b
|
|
.if ..asm.arch.cris.v32
|
|
nop
|
|
.endif
|
|
3:
|
|
|
|
quit
|
|
|
|
5:
|
|
move srp,r3
|
|
sub.d 7b,r3
|
|
dumpr3
|
|
jump y
|
|
.if ..asm.arch.cris.v32
|
|
nop
|
|
.endif
|
|
quit
|