1 # frv testcase for cscan $GRi,$GRj,$GRk,$CCi,$cond
4 .include "testutils.inc"
10 set_spr_immed 0x1b1b,cccr
12 set_gr_limmed 0x2aaa,0xaaaa,gr7
13 set_gr_limmed 0xaaaa,0x5555,gr8
14 cscan gr7,gr8,gr9,cc0,1
16 test_gr_limmed 0x2aaa,0xaaaa,gr7
17 test_gr_limmed 0xaaaa,0x5555,gr8
19 set_gr_limmed 0x2aaa,0xaaaa,gr7
20 set_gr_limmed 0xaaaa,0xaaab,gr8
21 cscan gr7,gr8,gr9,cc0,1
23 test_gr_limmed 0x2aaa,0xaaaa,gr7
24 test_gr_limmed 0xaaaa,0xaaab,gr8
26 set_gr_limmed 0xd555,0x5555,gr7
27 set_gr_limmed 0xaaaa,0xaaaa,gr8
28 cscan gr7,gr8,gr9,cc0,1
30 test_gr_limmed 0xd555,0x5555,gr7
31 test_gr_limmed 0xaaaa,0xaaaa,gr8
33 set_gr_limmed 0xd555,0x5555,gr7
34 set_gr_limmed 0xaaaa,0xaaab,gr8
35 cscan gr7,gr8,gr9,cc0,1
37 test_gr_limmed 0xd555,0x5555,gr7
38 test_gr_limmed 0xaaaa,0xaaab,gr8
40 set_gr_limmed 0xffff,0xffff,gr7
41 set_gr_limmed 0x7fff,0xffff,gr8
42 cscan gr7,gr8,gr9,cc0,1
44 test_gr_limmed 0xffff,0xffff,gr7
45 test_gr_limmed 0x7fff,0xffff,gr8
47 set_gr_limmed 0xffff,0xffff,gr7
48 set_gr_limmed 0xbfff,0xffff,gr8
49 cscan gr7,gr8,gr9,cc4,1
51 test_gr_limmed 0xffff,0xffff,gr7
52 test_gr_limmed 0xbfff,0xffff,gr8
54 set_gr_limmed 0xffff,0xffff,gr7
55 set_gr_limmed 0xfffe,0xffff,gr8
56 cscan gr7,gr8,gr9,cc4,1
58 test_gr_limmed 0xffff,0xffff,gr7
59 test_gr_limmed 0xfffe,0xffff,gr8
61 set_gr_limmed 0xffff,0xffff,gr7
62 set_gr_limmed 0xffff,0xfffd,gr8
63 cscan gr7,gr8,gr9,cc4,1
65 test_gr_limmed 0xffff,0xffff,gr7
66 test_gr_limmed 0xffff,0xfffd,gr8
68 set_gr_limmed 0xdead,0xbeef,gr7
69 set_gr_limmed 0xbeef,0xdead,gr8
70 cscan gr7,gr8,gr9,cc4,1
72 test_gr_limmed 0xdead,0xbeef,gr7
73 test_gr_limmed 0xbeef,0xdead,gr8
75 set_gr_immed 0x7fff,gr9
76 set_gr_limmed 0xaaaa,0xaaaa,gr7
77 set_gr_limmed 0x5555,0x5555,gr8
78 cscan gr7,gr8,gr9,cc0,0
79 test_gr_immed 0x7fff,gr9
80 test_gr_limmed 0xaaaa,0xaaaa,gr7
81 test_gr_limmed 0x5555,0x5555,gr8
83 set_gr_limmed 0xaaaa,0xaaab,gr7
84 set_gr_limmed 0x5555,0x5555,gr8
85 cscan gr7,gr8,gr9,cc0,0
86 test_gr_immed 0x7fff,gr9
87 test_gr_limmed 0xaaaa,0xaaab,gr7
88 test_gr_limmed 0x5555,0x5555,gr8
90 set_gr_limmed 0x5555,0x5555,gr7
91 set_gr_limmed 0x5555,0x5555,gr8
92 cscan gr7,gr8,gr9,cc0,0
93 test_gr_immed 0x7fff,gr9
94 test_gr_limmed 0x5555,0x5555,gr7
95 test_gr_limmed 0x5555,0x5555,gr8
97 set_gr_limmed 0x5555,0x5555,gr7
98 set_gr_limmed 0x5555,0x5554,gr8
99 cscan gr7,gr8,gr9,cc0,0
100 test_gr_immed 0x7fff,gr9
101 test_gr_limmed 0x5555,0x5555,gr7
102 test_gr_limmed 0x5555,0x5554,gr8
104 set_gr_limmed 0xffff,0xffff,gr7
105 set_gr_limmed 0x7fff,0xffff,gr8
106 cscan gr7,gr8,gr9,cc0,0
107 test_gr_immed 0x7fff,gr9
108 test_gr_limmed 0xffff,0xffff,gr7
109 test_gr_limmed 0x7fff,0xffff,gr8
111 set_gr_limmed 0xffff,0xffff,gr7
112 set_gr_limmed 0xbfff,0xffff,gr8
113 cscan gr7,gr8,gr9,cc4,0
114 test_gr_immed 0x7fff,gr9
115 test_gr_limmed 0xffff,0xffff,gr7
116 test_gr_limmed 0xbfff,0xffff,gr8
118 set_gr_limmed 0xffff,0xffff,gr7
119 set_gr_limmed 0xfffe,0xffff,gr8
120 cscan gr7,gr8,gr9,cc4,0
121 test_gr_immed 0x7fff,gr9
122 test_gr_limmed 0xffff,0xffff,gr7
123 test_gr_limmed 0xfffe,0xffff,gr8
125 set_gr_limmed 0xffff,0xffff,gr7
126 set_gr_limmed 0xffff,0xfffd,gr8
127 cscan gr7,gr8,gr9,cc4,0
128 test_gr_immed 0x7fff,gr9
129 test_gr_limmed 0xffff,0xffff,gr7
130 test_gr_limmed 0xffff,0xfffd,gr8
132 set_gr_limmed 0xdead,0xbeef,gr7
133 set_gr_limmed 0xbeef,0xdead,gr8
134 cscan gr7,gr8,gr9,cc4,0
135 test_gr_immed 0x7fff,gr9
136 test_gr_limmed 0xdead,0xbeef,gr7
137 test_gr_limmed 0xbeef,0xdead,gr8
139 set_gr_limmed 0x2aaa,0xaaaa,gr7
140 set_gr_limmed 0xaaaa,0xaaaa,gr8
141 cscan gr7,gr8,gr9,cc1,0
143 test_gr_limmed 0x2aaa,0xaaaa,gr7
144 test_gr_limmed 0xaaaa,0xaaaa,gr8
146 set_gr_limmed 0x2aaa,0xaaaa,gr7
147 set_gr_limmed 0xaaaa,0xaaab,gr8
148 cscan gr7,gr8,gr9,cc1,0
150 test_gr_limmed 0x2aaa,0xaaaa,gr7
151 test_gr_limmed 0xaaaa,0xaaab,gr8
153 set_gr_limmed 0xd555,0x5555,gr7
154 set_gr_limmed 0xaaaa,0xaaaa,gr8
155 cscan gr7,gr8,gr9,cc1,0
157 test_gr_limmed 0xd555,0x5555,gr7
158 test_gr_limmed 0xaaaa,0xaaaa,gr8
160 set_gr_limmed 0xd555,0x5555,gr7
161 set_gr_limmed 0xaaaa,0xaaab,gr8
162 cscan gr7,gr8,gr9,cc1,0
164 test_gr_limmed 0xd555,0x5555,gr7
165 test_gr_limmed 0xaaaa,0xaaab,gr8
167 set_gr_limmed 0xffff,0xffff,gr7
168 set_gr_limmed 0x7fff,0xffff,gr8
169 cscan gr7,gr8,gr9,cc1,0
171 test_gr_limmed 0xffff,0xffff,gr7
172 test_gr_limmed 0x7fff,0xffff,gr8
174 set_gr_limmed 0xffff,0xffff,gr7
175 set_gr_limmed 0xbfff,0xffff,gr8
176 cscan gr7,gr8,gr9,cc5,0
178 test_gr_limmed 0xffff,0xffff,gr7
179 test_gr_limmed 0xbfff,0xffff,gr8
181 set_gr_limmed 0xffff,0xffff,gr7
182 set_gr_limmed 0xfffe,0xffff,gr8
183 cscan gr7,gr8,gr9,cc5,0
185 test_gr_limmed 0xffff,0xffff,gr7
186 test_gr_limmed 0xfffe,0xffff,gr8
188 set_gr_limmed 0xffff,0xffff,gr7
189 set_gr_limmed 0xffff,0xfffd,gr8
190 cscan gr7,gr8,gr9,cc5,0
192 test_gr_limmed 0xffff,0xffff,gr7
193 test_gr_limmed 0xffff,0xfffd,gr8
195 set_gr_limmed 0xdead,0xbeef,gr7
196 set_gr_limmed 0xbeef,0xdead,gr8
197 cscan gr7,gr8,gr9,cc5,0
199 test_gr_limmed 0xdead,0xbeef,gr7
200 test_gr_limmed 0xbeef,0xdead,gr8
202 set_gr_immed 0x7fff,gr9
203 set_gr_limmed 0xaaaa,0xaaaa,gr7
204 set_gr_limmed 0x5555,0x5555,gr8
205 cscan gr7,gr8,gr9,cc1,1
206 test_gr_immed 0x7fff,gr9
207 test_gr_limmed 0xaaaa,0xaaaa,gr7
208 test_gr_limmed 0x5555,0x5555,gr8
210 set_gr_limmed 0xaaaa,0xaaab,gr7
211 set_gr_limmed 0x5555,0x5555,gr8
212 cscan gr7,gr8,gr9,cc1,1
213 test_gr_immed 0x7fff,gr9
214 test_gr_limmed 0xaaaa,0xaaab,gr7
215 test_gr_limmed 0x5555,0x5555,gr8
217 set_gr_limmed 0x5555,0x5555,gr7
218 set_gr_limmed 0x5555,0x5555,gr8
219 cscan gr7,gr8,gr9,cc1,1
220 test_gr_immed 0x7fff,gr9
221 test_gr_limmed 0x5555,0x5555,gr7
222 test_gr_limmed 0x5555,0x5555,gr8
224 set_gr_limmed 0x5555,0x5555,gr7
225 set_gr_limmed 0x5555,0x5554,gr8
226 cscan gr7,gr8,gr9,cc1,1
227 test_gr_immed 0x7fff,gr9
228 test_gr_limmed 0x5555,0x5555,gr7
229 test_gr_limmed 0x5555,0x5554,gr8
231 set_gr_limmed 0xffff,0xffff,gr7
232 set_gr_limmed 0x7fff,0xffff,gr8
233 cscan gr7,gr8,gr9,cc1,1
234 test_gr_immed 0x7fff,gr9
235 test_gr_limmed 0xffff,0xffff,gr7
236 test_gr_limmed 0x7fff,0xffff,gr8
238 set_gr_limmed 0xffff,0xffff,gr7
239 set_gr_limmed 0xbfff,0xffff,gr8
240 cscan gr7,gr8,gr9,cc5,1
241 test_gr_immed 0x7fff,gr9
242 test_gr_limmed 0xffff,0xffff,gr7
243 test_gr_limmed 0xbfff,0xffff,gr8
245 set_gr_limmed 0xffff,0xffff,gr7
246 set_gr_limmed 0xfffe,0xffff,gr8
247 cscan gr7,gr8,gr9,cc5,1
248 test_gr_immed 0x7fff,gr9
249 test_gr_limmed 0xffff,0xffff,gr7
250 test_gr_limmed 0xfffe,0xffff,gr8
252 set_gr_limmed 0xffff,0xffff,gr7
253 set_gr_limmed 0xffff,0xfffd,gr8
254 cscan gr7,gr8,gr9,cc5,1
255 test_gr_immed 0x7fff,gr9
256 test_gr_limmed 0xffff,0xffff,gr7
257 test_gr_limmed 0xffff,0xfffd,gr8
259 set_gr_limmed 0xdead,0xbeef,gr7
260 set_gr_limmed 0xbeef,0xdead,gr8
261 cscan gr7,gr8,gr9,cc5,1
262 test_gr_immed 0x7fff,gr9
263 test_gr_limmed 0xdead,0xbeef,gr7
264 test_gr_limmed 0xbeef,0xdead,gr8
266 set_gr_immed 0x7fff,gr9
267 set_gr_limmed 0xaaaa,0xaaaa,gr7
268 set_gr_limmed 0x5555,0x5555,gr8
269 cscan gr7,gr8,gr9,cc2,0
270 test_gr_immed 0x7fff,gr9
271 test_gr_limmed 0xaaaa,0xaaaa,gr7
272 test_gr_limmed 0x5555,0x5555,gr8
274 set_gr_limmed 0xaaaa,0xaaab,gr7
275 set_gr_limmed 0x5555,0x5555,gr8
276 cscan gr7,gr8,gr9,cc2,1
277 test_gr_immed 0x7fff,gr9
278 test_gr_limmed 0xaaaa,0xaaab,gr7
279 test_gr_limmed 0x5555,0x5555,gr8
281 set_gr_limmed 0x5555,0x5555,gr7
282 set_gr_limmed 0x5555,0x5555,gr8
283 cscan gr7,gr8,gr9,cc2,0
284 test_gr_immed 0x7fff,gr9
285 test_gr_limmed 0x5555,0x5555,gr7
286 test_gr_limmed 0x5555,0x5555,gr8
288 set_gr_limmed 0x5555,0x5555,gr7
289 set_gr_limmed 0x5555,0x5554,gr8
290 cscan gr7,gr8,gr9,cc2,1
291 test_gr_immed 0x7fff,gr9
292 test_gr_limmed 0x5555,0x5555,gr7
293 test_gr_limmed 0x5555,0x5554,gr8
295 set_gr_limmed 0xffff,0xffff,gr7
296 set_gr_limmed 0x7fff,0xffff,gr8
297 cscan gr7,gr8,gr9,cc2,0
298 test_gr_immed 0x7fff,gr9
299 test_gr_limmed 0xffff,0xffff,gr7
300 test_gr_limmed 0x7fff,0xffff,gr8
302 set_gr_limmed 0xffff,0xffff,gr7
303 set_gr_limmed 0xbfff,0xffff,gr8
304 cscan gr7,gr8,gr9,cc6,1
305 test_gr_immed 0x7fff,gr9
306 test_gr_limmed 0xffff,0xffff,gr7
307 test_gr_limmed 0xbfff,0xffff,gr8
309 set_gr_limmed 0xffff,0xffff,gr7
310 set_gr_limmed 0xfffe,0xffff,gr8
311 cscan gr7,gr8,gr9,cc6,0
312 test_gr_immed 0x7fff,gr9
313 test_gr_limmed 0xffff,0xffff,gr7
314 test_gr_limmed 0xfffe,0xffff,gr8
316 set_gr_limmed 0xffff,0xffff,gr7
317 set_gr_limmed 0xffff,0xfffd,gr8
318 cscan gr7,gr8,gr9,cc6,1
319 test_gr_immed 0x7fff,gr9
320 test_gr_limmed 0xffff,0xffff,gr7
321 test_gr_limmed 0xffff,0xfffd,gr8
323 set_gr_limmed 0xdead,0xbeef,gr7
324 set_gr_limmed 0xbeef,0xdead,gr8
325 cscan gr7,gr8,gr9,cc6,0
326 test_gr_immed 0x7fff,gr9
327 test_gr_limmed 0xdead,0xbeef,gr7
328 test_gr_limmed 0xbeef,0xdead,gr8
330 set_gr_immed 0x7fff,gr9
331 set_gr_limmed 0xaaaa,0xaaaa,gr7
332 set_gr_limmed 0x5555,0x5555,gr8
333 cscan gr7,gr8,gr9,cc3,1
334 test_gr_immed 0x7fff,gr9
335 test_gr_limmed 0xaaaa,0xaaaa,gr7
336 test_gr_limmed 0x5555,0x5555,gr8
338 set_gr_limmed 0xaaaa,0xaaab,gr7
339 set_gr_limmed 0x5555,0x5555,gr8
340 cscan gr7,gr8,gr9,cc3,0
341 test_gr_immed 0x7fff,gr9
342 test_gr_limmed 0xaaaa,0xaaab,gr7
343 test_gr_limmed 0x5555,0x5555,gr8
345 set_gr_limmed 0x5555,0x5555,gr7
346 set_gr_limmed 0x5555,0x5555,gr8
347 cscan gr7,gr8,gr9,cc3,1
348 test_gr_immed 0x7fff,gr9
349 test_gr_limmed 0x5555,0x5555,gr7
350 test_gr_limmed 0x5555,0x5555,gr8
352 set_gr_limmed 0x5555,0x5555,gr7
353 set_gr_limmed 0x5555,0x5554,gr8
354 cscan gr7,gr8,gr9,cc3,0
355 test_gr_immed 0x7fff,gr9
356 test_gr_limmed 0x5555,0x5555,gr7
357 test_gr_limmed 0x5555,0x5554,gr8
359 set_gr_limmed 0xffff,0xffff,gr7
360 set_gr_limmed 0x7fff,0xffff,gr8
361 cscan gr7,gr8,gr9,cc3,1
362 test_gr_immed 0x7fff,gr9
363 test_gr_limmed 0xffff,0xffff,gr7
364 test_gr_limmed 0x7fff,0xffff,gr8
366 set_gr_limmed 0xffff,0xffff,gr7
367 set_gr_limmed 0xbfff,0xffff,gr8
368 cscan gr7,gr8,gr9,cc7,0
369 test_gr_immed 0x7fff,gr9
370 test_gr_limmed 0xffff,0xffff,gr7
371 test_gr_limmed 0xbfff,0xffff,gr8
373 set_gr_limmed 0xffff,0xffff,gr7
374 set_gr_limmed 0xfffe,0xffff,gr8
375 cscan gr7,gr8,gr9,cc7,1
376 test_gr_immed 0x7fff,gr9
377 test_gr_limmed 0xffff,0xffff,gr7
378 test_gr_limmed 0xfffe,0xffff,gr8
380 set_gr_limmed 0xffff,0xffff,gr7
381 set_gr_limmed 0xffff,0xfffd,gr8
382 cscan gr7,gr8,gr9,cc7,0
383 test_gr_immed 0x7fff,gr9
384 test_gr_limmed 0xffff,0xffff,gr7
385 test_gr_limmed 0xffff,0xfffd,gr8
387 set_gr_limmed 0xdead,0xbeef,gr7
388 set_gr_limmed 0xbeef,0xdead,gr8
389 cscan gr7,gr8,gr9,cc7,1
390 test_gr_immed 0x7fff,gr9
391 test_gr_limmed 0xdead,0xbeef,gr7
392 test_gr_limmed 0xbeef,0xdead,gr8