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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.3/] [sim/] [testsuite/] [d30v-elf/] [br-djsr.S] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1181 sfurman
        # Test macro
2
 
3
        .macro assert reg,value
4
        cmpeq f0,\reg,\value
5
        bra/fx fail
6
        .endm
7
 
8
 
9
        # PR 18230
10
 
11
        add  r62,r0,0xffffffff || nop
12
        add  r1,r0,24 || nop
13
        djsr r1,test_end
14
        add  r2,r0,r62
15
test_end:       nop
16
 
17
        assert r2, 0x00000030
18
        assert r62, 0x00000030
19
 
20
 
21
# check return address correctly set by a djsr insn
22
 
23
        add r3, r0, last
24
        sub r3, r3, start
25
start:
26
        djsr r3, dest
27
        add r2, r2, 1 || nop
28
        add r2, r2, 1 || nop
29
        add r2, r2, 1 || nop
30
        add r2, r2, 1 || nop
31
        add r2, r2, 1 || nop
32
        add r2, r2, 1 || nop
33
        add r2, r2, 1 || nop
34
        add r2, r2, 1 || nop
35
        add r2, r2, 1 || nop
36
        add r2, r2, 1 || nop
37
        add r2, r2, 1 || nop
38
        add r2, r2, 1 || nop
39
        add r2, r2, 1 || nop
40
        add r2, r2, 1 || nop
41
        add r2, r2, 1 || nop
42
        add r2, r2, 1 || nop
43
        add r2, r2, 1 || nop
44
last:
45
        add r2, r2, 1 || nop
46
nexti:
47
        add r2, r2, 1 || nop
48
        add r2, r2, 1 || nop
49
        add r2, r2, 1 || nop
50
        add r2, r2, 1 || nop
51
        add r2, r2, 1 || nop
52
        add r2, r2, 1 || nop
53
        add r2, r2, 1 || nop
54
        add r2, r2, 1 || nop
55
        add r2, r2, 1 || nop
56
        add r2, r2, 1 || nop
57
        add r2, r2, 1 || nop
58
        add r2, r2, 1 || nop
59
        add r2, r2, 1 || nop
60
 
61
.align 4
62
dest:
63
 
64
        assert r62,nexti
65
 
66
 
67
 
68
        # all okay
69
        bra ok
70
 
71
ok:
72
        add r2, r0, 0
73
        .long 0x0e000004
74
        nop
75
 
76
fail:
77
        add r2, r0, 47
78
        .long 0x0e000004
79
        nop

powered by: WebSVN 2.1.0

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