Automatic date update in version.in
[binutils-gdb.git] / sim / testsuite / frv / bcplr.cgs
blobfef3ccbadbe2bad0fd6a8aa5f149280993df5cce
1 # frv testcase for bcplr $ICCi,$ccond,$hint
2 # mach: all
4         .include "testutils.inc"
6         start
8         .global bcplr
9 bcplr:
10         ; ccond is true
11         set_spr_immed   128,lcr
12         set_spr_addr    ok1,lr
13         set_icc         0x0 0
14         bcplr           icc0,0,0
15         fail
16 ok1:
17         set_spr_addr    ok2,lr
18         set_icc         0x1 1
19         bcplr           icc1,0,1
20         fail
21 ok2:
22         set_spr_addr    ok3,lr
23         set_icc         0x2 2
24         bcplr           icc2,0,2
25         fail
26 ok3:
27         set_spr_addr    ok4,lr
28         set_icc         0x3 3
29         bcplr           icc3,0,3
30         fail
31 ok4:
32         set_spr_addr    ok5,lr
33         set_icc         0x4 0
34         bcplr           icc0,0,0
35         fail
36 ok5:
37         set_spr_addr    ok6,lr
38         set_icc         0x5 1
39         bcplr           icc1,0,1
40         fail
41 ok6:
42         set_spr_addr    ok7,lr
43         set_icc         0x6 2
44         bcplr           icc2,0,2
45         fail
46 ok7:
47         set_spr_addr    ok8,lr
48         set_icc         0x7 3
49         bcplr           icc3,0,3
50         fail
51 ok8:
52         set_spr_addr    bad,lr
53         set_icc         0x8 0
54         bcplr           icc0,0,0
56         set_spr_addr    bad,lr
57         set_icc         0x9 1
58         bcplr           icc1,0,1
60         set_spr_addr    bad,lr
61         set_icc         0xa 2
62         bcplr           icc2,0,2
64         set_spr_addr    bad,lr
65         set_icc         0xb 3
66         bcplr           icc3,0,3
68         set_spr_addr    bad,lr
69         set_icc         0xc 0
70         bcplr           icc0,0,0
72         set_spr_addr    bad,lr
73         set_icc         0xd 1
74         bcplr           icc1,0,1
76         set_spr_addr    bad,lr
77         set_icc         0xe 2
78         bcplr           icc2,0,2
80         set_spr_addr    bad,lr
81         set_icc         0xf 3
82         bcplr           icc3,0,3
84         ; ccond is true
85         set_spr_immed   1,lcr
86         set_spr_addr    okh,lr
87         set_icc         0x0 0
88         bcplr           icc0,1,0
89         fail
90 okh:
91         set_spr_immed   1,lcr
92         set_spr_addr    oki,lr
93         set_icc         0x1 1
94         bcplr           icc1,1,1
95         fail
96 oki:
97         set_spr_immed   1,lcr
98         set_spr_addr    okj,lr
99         set_icc         0x2 2
100         bcplr           icc2,1,2
101         fail
102 okj:
103         set_spr_immed   1,lcr
104         set_spr_addr    okk,lr
105         set_icc         0x3 3
106         bcplr           icc3,1,3
107         fail
108 okk:
109         set_spr_immed   1,lcr
110         set_spr_addr    okl,lr
111         set_icc         0x4 0
112         bcplr           icc0,1,0
113         fail
114 okl:
115         set_spr_immed   1,lcr
116         set_spr_addr    okm,lr
117         set_icc         0x5 1
118         bcplr           icc1,1,1
119         fail
120 okm:
121         set_spr_immed   1,lcr
122         set_spr_addr    okn,lr
123         set_icc         0x6 2
124         bcplr           icc2,1,2
125         fail
126 okn:
127         set_spr_immed   1,lcr
128         set_spr_addr    oko,lr
129         set_icc         0x7 3
130         bcplr           icc3,1,3
131         fail
132 oko:
133         set_spr_immed   1,lcr
134         set_spr_addr    bad,lr
135         set_icc         0x8 0
136         bcplr           icc0,1,0
138         set_spr_immed   1,lcr
139         set_spr_addr    bad,lr
140         set_icc         0x9 1
141         bcplr           icc1,1,1
143         set_spr_immed   1,lcr
144         set_spr_addr    bad,lr
145         set_icc         0xa 2
146         bcplr           icc2,1,2
148         set_spr_immed   1,lcr
149         set_spr_addr    bad,lr
150         set_icc         0xb 3
151         bcplr           icc3,1,3
153         set_spr_immed   1,lcr
154         set_spr_addr    bad,lr
155         set_icc         0xc 0
156         bcplr           icc0,1,0
158         set_spr_immed   1,lcr
159         set_spr_addr    bad,lr
160         set_icc         0xd 1
161         bcplr           icc1,1,1
163         set_spr_immed   1,lcr
164         set_spr_addr    bad,lr
165         set_icc         0xe 2
166         bcplr           icc2,1,2
168         set_spr_immed   1,lcr
169         set_spr_addr    bad,lr
170         set_icc         0xf 3
171         bcplr           icc3,1,3
173         ; ccond is false
174         set_spr_immed   128,lcr
175         set_spr_addr    bad,lr
176         set_icc         0x0 0
177         bcplr           icc0,1,0
179         set_icc         0x1 1
180         bcplr           icc1,1,1
182         set_icc         0x2 2
183         bcplr           icc2,1,2
185         set_icc         0x3 3
186         bcplr           icc3,1,3
188         set_icc         0x4 0
189         bcplr           icc0,1,0
191         set_icc         0x5 1
192         bcplr           icc1,1,1
194         set_icc         0x6 2
195         bcplr           icc2,1,2
197         set_icc         0x7 3
198         bcplr           icc3,1,3
200         set_icc         0x8 0
201         bcplr           icc0,1,0
203         set_icc         0x9 1
204         bcplr           icc1,1,1
206         set_icc         0xa 2
207         bcplr           icc2,1,2
209         set_icc         0xb 3
210         bcplr           icc3,1,3
212         set_icc         0xc 0
213         bcplr           icc0,1,0
215         set_icc         0xd 1
216         bcplr           icc1,1,1
218         set_icc         0xe 2
219         bcplr           icc2,1,2
221         set_icc         0xf 3
222         bcplr           icc3,1,3
224         ; ccond is false
225         set_spr_immed   1,lcr
226         set_spr_addr    bad,lr
227         set_icc         0x0 0
228         bcplr           icc0,0,0
230         set_spr_immed   1,lcr
231         set_icc         0x1 1
232         bcplr           icc1,0,1
234         set_spr_immed   1,lcr
235         set_icc         0x2 2
236         bcplr           icc2,0,2
238         set_spr_immed   1,lcr
239         set_icc         0x3 3
240         bcplr           icc3,0,3
242         set_spr_immed   1,lcr
243         set_icc         0x4 0
244         bcplr           icc0,0,0
246         set_spr_immed   1,lcr
247         set_icc         0x5 1
248         bcplr           icc1,0,1
250         set_spr_immed   1,lcr
251         set_icc         0x6 2
252         bcplr           icc2,0,2
254         set_spr_immed   1,lcr
255         set_icc         0x7 3
256         bcplr           icc3,0,3
258         set_spr_immed   1,lcr
259         set_icc         0x8 0
260         bcplr           icc0,0,0
262         set_spr_immed   1,lcr
263         set_icc         0x9 1
264         bcplr           icc1,0,1
266         set_spr_immed   1,lcr
267         set_icc         0xa 2
268         bcplr           icc2,0,2
270         set_spr_immed   1,lcr
271         set_icc         0xb 3
272         bcplr           icc3,0,3
274         set_spr_immed   1,lcr
275         set_icc         0xc 0
276         bcplr           icc0,0,0
278         set_spr_immed   1,lcr
279         set_icc         0xd 1
280         bcplr           icc1,0,1
282         set_spr_immed   1,lcr
283         set_icc         0xe 2
284         bcplr           icc2,0,2
286         set_spr_immed   1,lcr
287         set_icc         0xf 3
288         bcplr           icc3,0,3
290         pass
291 bad:
292         fail