Automatic date update in version.in
[binutils-gdb.git] / sim / testsuite / frv / bclslr.cgs
blob37b91bc105dd8b94ddd736df96c24f45a15e34d7
1 # frv testcase for bclslr $ICCi,$ccond,$hint
2 # mach: all
4         .include "testutils.inc"
6         start
8         .global bclslr
9 bclslr:
10         ; ccond is true
11         set_spr_immed   128,lcr
12         set_spr_addr    bad,lr
13         set_icc         0x0 0
14         bclslr          icc0,0,0
16         set_spr_addr    ok2,lr
17         set_icc         0x1 1
18         bclslr          icc1,0,1
19         fail
20 ok2:
21         set_spr_addr    bad,lr
22         set_icc         0x2 2
23         bclslr          icc2,0,2
25         set_spr_addr    ok4,lr
26         set_icc         0x3 3
27         bclslr          icc3,0,3
28         fail
29 ok4:
30         set_spr_addr    ok5,lr
31         set_icc         0x4 0
32         bclslr          icc0,0,0
33         fail
34 ok5:
35         set_spr_addr    ok6,lr
36         set_icc         0x5 1
37         bclslr          icc1,0,1
38         fail
39 ok6:
40         set_spr_addr    ok7,lr
41         set_icc         0x6 2
42         bclslr          icc2,0,2
43         fail
44 ok7:
45         set_spr_addr    ok8,lr
46         set_icc         0x7 3
47         bclslr          icc3,0,3
48         fail
49 ok8:
50         set_spr_addr    bad,lr
51         set_icc         0x8 0
52         bclslr          icc0,0,0
54         set_spr_addr    oka,lr
55         set_icc         0x9 1
56         bclslr          icc1,0,1
57         fail
58 oka:
59         set_spr_addr    bad,lr
60         set_icc         0xa 2
61         bclslr          icc2,0,2
63         set_spr_addr    okc,lr
64         set_icc         0xb 3
65         bclslr          icc3,0,3
66         fail
67 okc:
68         set_spr_addr    okd,lr
69         set_icc         0xc 0
70         bclslr          icc0,0,0
71         fail
72 okd:
73         set_spr_addr    oke,lr
74         set_icc         0xd 1
75         bclslr          icc1,0,1
76         fail
77 oke:
78         set_spr_addr    okf,lr
79         set_icc         0xe 2
80         bclslr          icc2,0,2
81         fail
82 okf:
83         set_spr_addr    okg,lr
84         set_icc         0xf 3
85         bclslr          icc3,0,3
86         fail
87 okg:
89         ; ccond is true
90         set_spr_immed   1,lcr
91         set_spr_addr    bad,lr
92         set_icc         0x0 0
93         bclslr          icc0,1,0
95         set_spr_immed   1,lcr
96         set_spr_addr    oki,lr
97         set_icc         0x1 1
98         bclslr          icc1,1,1
99         fail
100 oki:
101         set_spr_immed   1,lcr
102         set_spr_addr    bad,lr
103         set_icc         0x2 2
104         bclslr          icc2,1,2
106         set_spr_immed   1,lcr
107         set_spr_addr    okk,lr
108         set_icc         0x3 3
109         bclslr          icc3,1,3
110         fail
111 okk:
112         set_spr_immed   1,lcr
113         set_spr_addr    okl,lr
114         set_icc         0x4 0
115         bclslr          icc0,1,0
116         fail
117 okl:
118         set_spr_immed   1,lcr
119         set_spr_addr    okm,lr
120         set_icc         0x5 1
121         bclslr          icc1,1,1
122         fail
123 okm:
124         set_spr_immed   1,lcr
125         set_spr_addr    okn,lr
126         set_icc         0x6 2
127         bclslr          icc2,1,2
128         fail
129 okn:
130         set_spr_immed   1,lcr
131         set_spr_addr    oko,lr
132         set_icc         0x7 3
133         bclslr          icc3,1,3
134         fail
135 oko:
136         set_spr_immed   1,lcr
137         set_spr_addr    bad,lr
138         set_icc         0x8 0
139         bclslr          icc0,1,0
141         set_spr_immed   1,lcr
142         set_spr_addr    okq,lr
143         set_icc         0x9 1
144         bclslr          icc1,1,1
145         fail
146 okq:
147         set_spr_immed   1,lcr
148         set_spr_addr    bad,lr
149         set_icc         0xa 2
150         bclslr          icc2,1,2
152         set_spr_immed   1,lcr
153         set_spr_addr    oks,lr
154         set_icc         0xb 3
155         bclslr          icc3,1,3
156         fail
157 oks:
158         set_spr_immed   1,lcr
159         set_spr_addr    okt,lr
160         set_icc         0xc 0
161         bclslr          icc0,1,0
162         fail
163 okt:
164         set_spr_immed   1,lcr
165         set_spr_addr    oku,lr
166         set_icc         0xd 1
167         bclslr          icc1,1,1
168         fail
169 oku:
170         set_spr_immed   1,lcr
171         set_spr_addr    okv,lr
172         set_icc         0xe 2
173         bclslr          icc2,1,2
174         fail
175 okv:
176         set_spr_immed   1,lcr
177         set_spr_addr    okw,lr
178         set_icc         0xf 3
179         bclslr          icc3,1,3
180         fail
181 okw:
182         ; ccond is false
183         set_spr_immed   128,lcr
184         set_spr_addr    bad,lr
185         set_icc         0x0 0
186         bclslr          icc0,1,0
188         set_icc         0x1 1
189         bclslr          icc1,1,1
191         set_icc         0x2 2
192         bclslr          icc2,1,2
194         set_icc         0x3 3
195         bclslr          icc3,1,3
197         set_icc         0x4 0
198         bclslr          icc0,1,0
200         set_icc         0x5 1
201         bclslr          icc1,1,1
203         set_icc         0x6 2
204         bclslr          icc2,1,2
206         set_icc         0x7 3
207         bclslr          icc3,1,3
209         set_icc         0x8 0
210         bclslr          icc0,1,0
212         set_icc         0x9 1
213         bclslr          icc1,1,1
215         set_icc         0xa 2
216         bclslr          icc2,1,2
218         set_icc         0xb 3
219         bclslr          icc3,1,3
221         set_icc         0xc 0
222         bclslr          icc0,1,0
224         set_icc         0xd 1
225         bclslr          icc1,1,1
227         set_icc         0xe 2
228         bclslr          icc2,1,2
230         set_icc         0xf 3
231         bclslr          icc3,1,3
233         ; ccond is false
234         set_spr_immed   1,lcr
235         set_spr_addr    bad,lr
236         set_icc         0x0 0
237         bclslr          icc0,0,0
239         set_spr_immed   1,lcr
240         set_icc         0x1 1
241         bclslr          icc1,0,1
243         set_spr_immed   1,lcr
244         set_icc         0x2 2
245         bclslr          icc2,0,2
247         set_spr_immed   1,lcr
248         set_icc         0x3 3
249         bclslr          icc3,0,3
251         set_spr_immed   1,lcr
252         set_icc         0x4 0
253         bclslr          icc0,0,0
255         set_spr_immed   1,lcr
256         set_icc         0x5 1
257         bclslr          icc1,0,1
259         set_spr_immed   1,lcr
260         set_icc         0x6 2
261         bclslr          icc2,0,2
263         set_spr_immed   1,lcr
264         set_icc         0x7 3
265         bclslr          icc3,0,3
267         set_spr_immed   1,lcr
268         set_icc         0x8 0
269         bclslr          icc0,0,0
271         set_spr_immed   1,lcr
272         set_icc         0x9 1
273         bclslr          icc1,0,1
275         set_spr_immed   1,lcr
276         set_icc         0xa 2
277         bclslr          icc2,0,2
279         set_spr_immed   1,lcr
280         set_icc         0xb 3
281         bclslr          icc3,0,3
283         set_spr_immed   1,lcr
284         set_icc         0xc 0
285         bclslr          icc0,0,0
287         set_spr_immed   1,lcr
288         set_icc         0xd 1
289         bclslr          icc1,0,1
291         set_spr_immed   1,lcr
292         set_icc         0xe 2
293         bclslr          icc2,0,2
295         set_spr_immed   1,lcr
296         set_icc         0xf 3
297         bclslr          icc3,0,3
299         pass
300 bad:
301         fail