OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [sim/] [testsuite/] [sim/] [frv/] [bnelr.cgs] - Blame information for rev 157

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 jeremybenn
# frv testcase for bnelr $ICCi,$hint
2
# mach: all
3
 
4
        .include "testutils.inc"
5
 
6
        start
7
 
8
        .global bnelr
9
bnelr:
10
        set_spr_addr    ok1,lr
11
        set_icc         0x0 0
12
        bnelr           icc0,0
13
        fail
14
ok1:
15
        set_spr_addr    ok2,lr
16
        set_icc         0x1 1
17
        bnelr           icc1,1
18
        fail
19
ok2:
20
        set_spr_addr    ok3,lr
21
        set_icc         0x2 2
22
        bnelr           icc2,2
23
        fail
24
ok3:
25
        set_spr_addr    ok4,lr
26
        set_icc         0x3 3
27
        bnelr           icc3,3
28
        fail
29
ok4:
30
        set_spr_addr    bad,lr
31
        set_icc         0x4 0
32
        bnelr           icc0,0
33
 
34
        set_spr_addr    bad,lr
35
        set_icc         0x5 1
36
        bnelr           icc1,1
37
 
38
        set_spr_addr    bad,lr
39
        set_icc         0x6 2
40
        bnelr           icc2,2
41
 
42
        set_spr_addr    bad,lr
43
        set_icc         0x7 3
44
        bnelr           icc3,3
45
 
46
        set_spr_addr    ok9,lr
47
        set_icc         0x8 0
48
        bnelr           icc0,0
49
        fail
50
ok9:
51
        set_spr_addr    oka,lr
52
        set_icc         0x9 1
53
        bnelr           icc1,1
54
        fail
55
oka:
56
        set_spr_addr    okb,lr
57
        set_icc         0xa 2
58
        bnelr           icc2,2
59
        fail
60
okb:
61
        set_spr_addr    okc,lr
62
        set_icc         0xb 3
63
        bnelr           icc3,3
64
        fail
65
okc:
66
        set_spr_addr    bad,lr
67
        set_icc         0xc 0
68
        bnelr           icc0,0
69
 
70
        set_spr_addr    bad,lr
71
        set_icc         0xd 1
72
        bnelr           icc1,1
73
 
74
        set_spr_addr    bad,lr
75
        set_icc         0xe 2
76
        bnelr           icc2,2
77
 
78
        set_spr_addr    bad,lr
79
        set_icc         0xf 3
80
        bnelr           icc3,3
81
 
82
        pass
83
bad:
84
        fail

powered by: WebSVN 2.1.0

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