OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gdb-6.8/] [pre-binutils-2.20.1-sync/] [sim/] [testsuite/] [sim/] [cris/] [asm/] [jsr.ms] - Diff between revs 157 and 223

Only display areas with differences | Details | Blame | View Log

Rev 157 Rev 223
# mach: crisv3 crisv8 crisv10 crisv32
# mach: crisv3 crisv8 crisv10 crisv32
# output: 0\n0\n0\n0\n0\n0\n
# output: 0\n0\n0\n0\n0\n0\n
# Test that jsr Rn and jsr [PC+] work.
# Test that jsr Rn and jsr [PC+] work.
 .include "testutils.inc"
 .include "testutils.inc"
 start
 start
x:
x:
 move.d 0f,r6
 move.d 0f,r6
 setf nzvc
 setf nzvc
 jsr r6
 jsr r6
 .if ..asm.arch.cris.v32
 .if ..asm.arch.cris.v32
 nop
 nop
 .endif
 .endif
0:
0:
 test_move_cc 1 1 1 1
 test_move_cc 1 1 1 1
 move srp,r3
 move srp,r3
 sub.d 0b,r3
 sub.d 0b,r3
 dumpr3
 dumpr3
 move.d 1f,r0
 move.d 1f,r0
 setf nzvc
 setf nzvc
 jsr r0
 jsr r0
 .if ..asm.arch.cris.v32
 .if ..asm.arch.cris.v32
 moveq 0,r0
 moveq 0,r0
 .endif
 .endif
6:
6:
 nop
 nop
 quit
 quit
2:
2:
 test_move_cc 0 0 0 0
 test_move_cc 0 0 0 0
 move srp,r3
 move srp,r3
 sub.d 3f,r3
 sub.d 3f,r3
 dumpr3
 dumpr3
 jsr 4f
 jsr 4f
 .if ..asm.arch.cris.v32
 .if ..asm.arch.cris.v32
 nop
 nop
 .endif
 .endif
7:
7:
 nop
 nop
 quit
 quit
; Can't use local label 8 or 9, as they're used by test_move_cc.
; Can't use local label 8 or 9, as they're used by test_move_cc.
y:
y:
 move srp,r3
 move srp,r3
 sub.d 7b,r3
 sub.d 7b,r3
 dumpr3
 dumpr3
 quit
 quit
4:
4:
 move srp,r3
 move srp,r3
 sub.d 7b,r3
 sub.d 7b,r3
 dumpr3
 dumpr3
 move.d 5f,r3
 move.d 5f,r3
 jump r3
 jump r3
 .if ..asm.arch.cris.v32
 .if ..asm.arch.cris.v32
 moveq 0,r3
 moveq 0,r3
 .endif
 .endif
 quit
 quit
 .space 32770,0
 .space 32770,0
1:
1:
 test_move_cc 1 1 1 1
 test_move_cc 1 1 1 1
 move srp,r3
 move srp,r3
 sub.d 6b,r3
 sub.d 6b,r3
 dumpr3
 dumpr3
 clearf cznv
 clearf cznv
 jsr 2b
 jsr 2b
 .if ..asm.arch.cris.v32
 .if ..asm.arch.cris.v32
 nop
 nop
 .endif
 .endif
3:
3:
 quit
 quit
5:
5:
 move srp,r3
 move srp,r3
 sub.d 7b,r3
 sub.d 7b,r3
 dumpr3
 dumpr3
 jump y
 jump y
 .if ..asm.arch.cris.v32
 .if ..asm.arch.cris.v32
 nop
 nop
 .endif
 .endif
 quit
 quit
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.