repo.or.cz
/
binutils-gdb.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Automatic date update in version.in
[binutils-gdb.git]
/
sim
/
testsuite
/
frv
/
rett.cgs
blob
f964baea2aa5c20eebc9537d3a9b26fa5869e03a
1
# frv testcase for rett $debug
2
# mach: all
3
4
.include "testutils.inc"
5
6
start
7
8
.global rett
9
rett:
10
and_spr_immed -4081,tbr ; clear tbr.tt
11
set_gr_spr tbr,gr7
12
inc_gr_immed 2112,gr7 ; address of exception handler
13
set_bctrlr_0_0 gr7
14
15
set_spr_immed 128,lcr
16
set_gr_immed 0,gr7
17
18
set_psr_et 1
19
set_spr_addr ok1,lr
20
set_icc 0x0 0
21
tira gr7,4 ; should branch to tbr + (128 + 4)*16
22
ok0:
23
test_gr_immed 1,gr7
24
pass
25
fail
26
ok1:
27
inc_gr_immed 1,gr7
28
rett 1 ; should be a nop
29
rett 0
30
fail