Automatic date update in version.in
[binutils-gdb.git] / sim / testsuite / frv / bchilr.cgs
blobea7e2f4bac50f74680f10bd7329128570bb4b078
1 # frv testcase for bchilr $ICCi,$ccond,$hint
2 # mach: all
4         .include "testutils.inc"
6         start
8         .global bchilr
9 bchilr:
10         ; ccond is true
11         set_spr_immed   128,lcr
12         set_spr_addr    ok1,lr
13         set_icc         0x0 0
14         bchilr          icc0,0,0
15         fail
16 ok1:
17         set_spr_addr    bad,lr
18         set_icc         0x1 1
19         bchilr          icc1,0,1
21         set_spr_addr    ok3,lr
22         set_icc         0x2 2
23         bchilr          icc2,0,2
24         fail
25 ok3:
26         set_spr_addr    bad,lr
27         set_icc         0x3 3
28         bchilr          icc3,0,3
30         set_spr_addr    bad,lr
31         set_icc         0x4 0
32         bchilr          icc0,0,0
34         set_spr_addr    bad,lr
35         set_icc         0x5 1
36         bchilr          icc1,0,1
38         set_spr_addr    bad,lr
39         set_icc         0x6 2
40         bchilr          icc2,0,2
42         set_spr_addr    bad,lr
43         set_icc         0x7 3
44         bchilr          icc3,0,3
46         set_spr_addr    ok9,lr
47         set_icc         0x8 0
48         bchilr          icc0,0,0
49         fail
50 ok9:
51         set_spr_addr    bad,lr
52         set_icc         0x9 1
53         bchilr          icc1,0,1
55         set_spr_addr    okb,lr
56         set_icc         0xa 2
57         bchilr          icc2,0,2
58         fail
59 okb:
60         set_spr_addr    bad,lr
61         set_icc         0xb 3
62         bchilr          icc3,0,3
64         set_spr_addr    bad,lr
65         set_icc         0xc 0
66         bchilr          icc0,0,0
68         set_spr_addr    bad,lr
69         set_icc         0xd 1
70         bchilr          icc1,0,1
72         set_spr_addr    bad,lr
73         set_icc         0xe 2
74         bchilr          icc2,0,2
76         set_spr_addr    bad,lr
77         set_icc         0xf 3
78         bchilr          icc3,0,3
80         ; ccond is true
81         set_spr_immed   1,lcr
82         set_spr_addr    okh,lr
83         set_icc         0x0 0
84         bchilr          icc0,1,0
85         fail
86 okh:
87         set_spr_immed   1,lcr
88         set_spr_addr    bad,lr
89         set_icc         0x1 1
90         bchilr          icc1,1,1
92         set_spr_immed   1,lcr
93         set_spr_addr    okj,lr
94         set_icc         0x2 2
95         bchilr          icc2,1,2
96         fail
97 okj:
98         set_spr_immed   1,lcr
99         set_spr_addr    bad,lr
100         set_icc         0x3 3
101         bchilr          icc3,1,3
103         set_spr_immed   1,lcr
104         set_spr_addr    bad,lr
105         set_icc         0x4 0
106         bchilr          icc0,1,0
108         set_spr_immed   1,lcr
109         set_spr_addr    bad,lr
110         set_icc         0x5 1
111         bchilr          icc1,1,1
113         set_spr_immed   1,lcr
114         set_spr_addr    bad,lr
115         set_icc         0x6 2
116         bchilr          icc2,1,2
118         set_spr_immed   1,lcr
119         set_spr_addr    bad,lr
120         set_icc         0x7 3
121         bchilr          icc3,1,3
123         set_spr_immed   1,lcr
124         set_spr_addr    okp,lr
125         set_icc         0x8 0
126         bchilr          icc0,1,0
127         fail
128 okp:
129         set_spr_immed   1,lcr
130         set_spr_addr    bad,lr
131         set_icc         0x9 1
132         bchilr          icc1,1,1
134         set_spr_immed   1,lcr
135         set_spr_addr    okr,lr
136         set_icc         0xa 2
137         bchilr          icc2,1,2
138         fail
139 okr:
140         set_spr_immed   1,lcr
141         set_spr_addr    bad,lr
142         set_icc         0xb 3
143         bchilr          icc3,1,3
145         set_spr_immed   1,lcr
146         set_spr_addr    bad,lr
147         set_icc         0xc 0
148         bchilr          icc0,1,0
150         set_spr_immed   1,lcr
151         set_spr_addr    bad,lr
152         set_icc         0xd 1
153         bchilr          icc1,1,1
155         set_spr_immed   1,lcr
156         set_spr_addr    bad,lr
157         set_icc         0xe 2
158         bchilr          icc2,1,2
160         set_spr_immed   1,lcr
161         set_spr_addr    bad,lr
162         set_icc         0xf 3
163         bchilr          icc3,1,3
165         ; ccond is false
166         set_spr_immed   128,lcr
167         set_spr_addr    bad,lr
168         set_icc         0x0 0
169         bchilr          icc0,1,0
171         set_icc         0x1 1
172         bchilr          icc1,1,1
174         set_icc         0x2 2
175         bchilr          icc2,1,2
177         set_icc         0x3 3
178         bchilr          icc3,1,3
180         set_icc         0x4 0
181         bchilr          icc0,1,0
183         set_icc         0x5 1
184         bchilr          icc1,1,1
186         set_icc         0x6 2
187         bchilr          icc2,1,2
189         set_icc         0x7 3
190         bchilr          icc3,1,3
192         set_icc         0x8 0
193         bchilr          icc0,1,0
195         set_icc         0x9 1
196         bchilr          icc1,1,1
198         set_icc         0xa 2
199         bchilr          icc2,1,2
201         set_icc         0xb 3
202         bchilr          icc3,1,3
204         set_icc         0xc 0
205         bchilr          icc0,1,0
207         set_icc         0xd 1
208         bchilr          icc1,1,1
210         set_icc         0xe 2
211         bchilr          icc2,1,2
213         set_icc         0xf 3
214         bchilr          icc3,1,3
216         ; ccond is false
217         set_spr_immed   1,lcr
218         set_spr_addr    bad,lr
219         set_icc         0x0 0
220         bchilr          icc0,0,0
222         set_spr_immed   1,lcr
223         set_icc         0x1 1
224         bchilr          icc1,0,1
226         set_spr_immed   1,lcr
227         set_icc         0x2 2
228         bchilr          icc2,0,2
230         set_spr_immed   1,lcr
231         set_icc         0x3 3
232         bchilr          icc3,0,3
234         set_spr_immed   1,lcr
235         set_icc         0x4 0
236         bchilr          icc0,0,0
238         set_spr_immed   1,lcr
239         set_icc         0x5 1
240         bchilr          icc1,0,1
242         set_spr_immed   1,lcr
243         set_icc         0x6 2
244         bchilr          icc2,0,2
246         set_spr_immed   1,lcr
247         set_icc         0x7 3
248         bchilr          icc3,0,3
250         set_spr_immed   1,lcr
251         set_icc         0x8 0
252         bchilr          icc0,0,0
254         set_spr_immed   1,lcr
255         set_icc         0x9 1
256         bchilr          icc1,0,1
258         set_spr_immed   1,lcr
259         set_icc         0xa 2
260         bchilr          icc2,0,2
262         set_spr_immed   1,lcr
263         set_icc         0xb 3
264         bchilr          icc3,0,3
266         set_spr_immed   1,lcr
267         set_icc         0xc 0
268         bchilr          icc0,0,0
270         set_spr_immed   1,lcr
271         set_icc         0xd 1
272         bchilr          icc1,0,1
274         set_spr_immed   1,lcr
275         set_icc         0xe 2
276         bchilr          icc2,0,2
278         set_spr_immed   1,lcr
279         set_icc         0xf 3
280         bchilr          icc3,0,3
282         pass
283 bad:
284         fail