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/] [ccalll.cgs] - Blame information for rev 272

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 jeremybenn
# frv testcase for ccalll @($GRi,$GRj),$CCi,$cond
2
# mach: all
3
 
4
        .include "testutils.inc"
5
 
6
        start
7
 
8
        .global ccalll
9
ccalll:
10
        set_spr_immed   0x1b1b,cccr
11
 
12
        set_gr_addr     ok2,gr8
13
        inc_gr_immed    -4,gr8
14
        inc_gr_immed    4,gr9
15
        ccalll          @(gr8,gr9),cc0,1
16
bad2:
17
        fail
18
ok2:
19
        test_spr_addr   bad2,lr
20
 
21
        set_gr_addr     ok3,gr8
22
        inc_gr_immed    4,gr8
23
        set_gr_immed    -4,gr9
24
        ccalll          @(gr8,gr9),cc4,1
25
bad3:
26
        fail
27
ok3:
28
        test_spr_addr   bad3,lr
29
 
30
        set_spr_immed   0,lr
31
        set_gr_addr     bad,gr8
32
        inc_gr_immed    -4,gr8
33
        set_gr_immed    4,gr9
34
        ccalll          @(gr8,gr9),cc0,0
35
        test_spr_addr   0,lr
36
 
37
        set_gr_addr     bad,gr8
38
        inc_gr_immed    4,gr8
39
        set_gr_immed    -4,gr9
40
        ccalll          @(gr8,gr9),cc4,0
41
        test_spr_addr   0,lr
42
 
43
        set_gr_addr     ok5,gr8
44
        inc_gr_immed    -4,gr8
45
        set_gr_immed    4,gr9
46
        ccalll          @(gr8,gr9),cc1,0
47
bad5:
48
        fail
49
ok5:
50
        test_spr_addr   bad5,lr
51
 
52
        set_gr_addr     ok6,gr8
53
        inc_gr_immed    4,gr8
54
        set_gr_immed    -4,gr9
55
        ccalll          @(gr8,gr9),cc5,0
56
bad6:
57
        fail
58
ok6:
59
        test_spr_addr   bad6,lr
60
 
61
        set_spr_immed   0,lr
62
        set_gr_addr     bad,gr8
63
        inc_gr_immed    -4,gr8
64
        set_gr_immed    4,gr9
65
        ccalll          @(gr8,gr9),cc1,1
66
        test_spr_addr   0,lr
67
 
68
        set_gr_addr     bad,gr8
69
        inc_gr_immed    4,gr8
70
        set_gr_immed    -4,gr9
71
        ccalll          @(gr8,gr9),cc5,1
72
        test_spr_addr   0,lr
73
 
74
        set_gr_addr     bad,gr8
75
        inc_gr_immed    -4,gr8
76
        set_gr_immed    4,gr9
77
        ccalll          @(gr8,gr9),cc2,1
78
        test_spr_addr   0,lr
79
 
80
        set_gr_addr     bad,gr8
81
        inc_gr_immed    4,gr8
82
        set_gr_immed    -4,gr9
83
        ccalll          @(gr8,gr9),cc6,0
84
        test_spr_addr   0,lr
85
 
86
        set_gr_addr     bad,gr8
87
        inc_gr_immed    -4,gr8
88
        set_gr_immed    4,gr9
89
        ccalll          @(gr8,gr9),cc3,0
90
        test_spr_addr   0,lr
91
 
92
        set_gr_addr     bad,gr8
93
        inc_gr_immed    4,gr8
94
        set_gr_immed    -4,gr9
95
        ccalll          @(gr8,gr9),cc7,1
96
        test_spr_addr   0,lr
97
 
98
        pass
99
bad:
100
        fail
101
 

powered by: WebSVN 2.1.0

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