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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [sim/] [testsuite/] [sim/] [cris/] [asm/] [ba.ms] - Diff between revs 24 and 157

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

Rev 24 Rev 157
# mach: crisv0 crisv3 crisv8 crisv10 crisv32
# mach: crisv0 crisv3 crisv8 crisv10 crisv32
# output: a\n
# output: a\n
 .include "testutils.inc"
 .include "testutils.inc"
 .if ..asm.arch.cris.v32
 .if ..asm.arch.cris.v32
 .set smalloffset,0
 .set smalloffset,0
 .set largeoffset,0
 .set largeoffset,0
 .else
 .else
 .set smalloffset,2
 .set smalloffset,2
 .set largeoffset,4
 .set largeoffset,4
 .endif
 .endif
 start
 start
 moveq 0,r3
 moveq 0,r3
; Short forward branch.
; Short forward branch.
 ba 0f
 ba 0f
 addq 1,r3
 addq 1,r3
 fail
 fail
; Max short forward branch.
; Max short forward branch.
1:
1:
 ba 2f
 ba 2f
 addq 1,r3
 addq 1,r3
 fail
 fail
; Short backward branch.
; Short backward branch.
0:
0:
 ba 1b
 ba 1b
 addq 1,r3
 addq 1,r3
 fail
 fail
 .space 254-2+smalloffset+1b-.,0
 .space 254-2+smalloffset+1b-.,0
 moveq 0,r3
 moveq 0,r3
2:
2:
; Transit branch (long).
; Transit branch (long).
 ba 3f
 ba 3f
 addq 1,r3
 addq 1,r3
 fail
 fail
 moveq 0,r3
 moveq 0,r3
4:
4:
; Long forward branch.
; Long forward branch.
 ba 5f
 ba 5f
 addq 1,r3
 addq 1,r3
 fail
 fail
 .space 256-2-smalloffset+4b-.,0
 .space 256-2-smalloffset+4b-.,0
 moveq 0,r3
 moveq 0,r3
; Max short backward branch.
; Max short backward branch.
3:
3:
 ba 4b
 ba 4b
 addq 1,r3
 addq 1,r3
 fail
 fail
5:
5:
; Max long forward branch.
; Max long forward branch.
 ba 6f
 ba 6f
 addq 1,r3
 addq 1,r3
 fail
 fail
 .space 32766+largeoffset-2+5b-.,0
 .space 32766+largeoffset-2+5b-.,0
 moveq 0,r3
 moveq 0,r3
6:
6:
; Transit branch.
; Transit branch.
 ba 7f
 ba 7f
 addq 1,r3
 addq 1,r3
 fail
 fail
 moveq 0,r3
 moveq 0,r3
9:
9:
 dumpr3
 dumpr3
 quit
 quit
; Transit branch.
; Transit branch.
 moveq 0,r3
 moveq 0,r3
7:
7:
 ba 8f
 ba 8f
 addq 1,r3
 addq 1,r3
 fail
 fail
 .space 32768-largeoffset+9b-.,0
 .space 32768-largeoffset+9b-.,0
8:
8:
; Max long backward branch.
; Max long backward branch.
 ba 9b
 ba 9b
 addq 1,r3
 addq 1,r3
 fail
 fail
 
 

powered by: WebSVN 2.1.0

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