Automatic date update in version.in
[binutils-gdb.git] / sim / testsuite / frv / ccalll.cgs
blobdcfd300079c777c5be032064305d64b855bb052d
1 # frv testcase for ccalll @($GRi,$GRj),$CCi,$cond
2 # mach: all
4         .include "testutils.inc"
6         start
8         .global ccalll
9 ccalll:
10         set_spr_immed   0x1b1b,cccr
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
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
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
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
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
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
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
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
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
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
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
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
98         pass
99 bad:
100         fail