1 # frv testcase for cldqu @($GRi,$GRj),$GRk,$CCi,$cond
5 .include "testutils.inc"
11 set_spr_immed 0x1b1b,cccr
14 set_mem_limmed 0xdead,0xbeef,sp
16 set_mem_limmed 0xbeef,0xdead,sp
18 set_mem_limmed 0x1234,0x5678,sp
20 set_mem_limmed 0x9abc,0xdef0,sp
22 set_gr_limmed 0xdead,0xbeef,gr8
23 set_gr_limmed 0xbeef,0xdead,gr9
24 set_gr_limmed 0x1234,0x5678,gr10
25 set_gr_limmed 0x9abc,0xdef0,gr11
28 cldqu @(sp,gr7),gr8,cc0,1
29 test_gr_limmed 0x9abc,0xdef0,gr8
30 test_gr_limmed 0x1234,0x5678,gr9
31 test_gr_limmed 0xbeef,0xdead,gr10
32 test_gr_limmed 0xdead,0xbeef,gr11
35 set_gr_limmed 0xdead,0xbeef,gr8
36 set_gr_limmed 0xbeef,0xdead,gr9
37 set_gr_limmed 0x1234,0x5678,gr10
38 set_gr_limmed 0x9abc,0xdef0,gr11
41 cldqu @(sp,gr7),gr8,cc0,1
42 test_gr_limmed 0x9abc,0xdef0,gr8
43 test_gr_limmed 0x1234,0x5678,gr9
44 test_gr_limmed 0xbeef,0xdead,gr10
45 test_gr_limmed 0xdead,0xbeef,gr11
48 set_gr_limmed 0xdead,0xbeef,gr8
49 set_gr_limmed 0xbeef,0xdead,gr9
50 set_gr_limmed 0x1234,0x5678,gr10
51 set_gr_limmed 0x9abc,0xdef0,gr11
54 cldqu @(sp,gr7),gr8,cc4,1
55 test_gr_limmed 0x9abc,0xdef0,gr8
56 test_gr_limmed 0x1234,0x5678,gr9
57 test_gr_limmed 0xbeef,0xdead,gr10
58 test_gr_limmed 0xdead,0xbeef,gr11
62 set_mem_limmed 0xdead,0xbeef,sp
64 set_mem_limmed 0xbeef,0xdead,sp
66 set_mem_limmed 0x1234,0x5678,sp
68 set_mem_limmed 0x9abc,0xdef0,sp
70 set_gr_limmed 0xdead,0xbeef,gr8
71 set_gr_limmed 0xbeef,0xdead,gr9
72 set_gr_limmed 0x1234,0x5678,gr10
73 set_gr_limmed 0x9abc,0xdef0,gr11
76 cldqu @(sp,gr7),gr8,cc0,0
77 test_gr_limmed 0xdead,0xbeef,gr8
78 test_gr_limmed 0xbeef,0xdead,gr9
79 test_gr_limmed 0x1234,0x5678,gr10
80 test_gr_limmed 0x9abc,0xdef0,gr11
83 set_gr_limmed 0xdead,0xbeef,gr8
84 set_gr_limmed 0xbeef,0xdead,gr9
85 set_gr_limmed 0x1234,0x5678,gr10
86 set_gr_limmed 0x9abc,0xdef0,gr11
90 cldqu @(sp,gr7),gr8,cc0,0
91 test_gr_limmed 0xdead,0xbeef,gr8
92 test_gr_limmed 0xbeef,0xdead,gr9
93 test_gr_limmed 0x1234,0x5678,gr10
94 test_gr_limmed 0x9abc,0xdef0,gr11
97 set_gr_limmed 0xdead,0xbeef,gr8
98 set_gr_limmed 0xbeef,0xdead,gr9
99 set_gr_limmed 0x1234,0x5678,gr10
100 set_gr_limmed 0x9abc,0xdef0,gr11
104 cldqu @(sp,gr7),gr8,cc4,0
105 test_gr_limmed 0xdead,0xbeef,gr8
106 test_gr_limmed 0xbeef,0xdead,gr9
107 test_gr_limmed 0x1234,0x5678,gr10
108 test_gr_limmed 0x9abc,0xdef0,gr11
112 set_mem_limmed 0xdead,0xbeef,sp
114 set_mem_limmed 0xbeef,0xdead,sp
116 set_mem_limmed 0x1234,0x5678,sp
118 set_mem_limmed 0x9abc,0xdef0,sp
120 set_gr_limmed 0xdead,0xbeef,gr8
121 set_gr_limmed 0xbeef,0xdead,gr9
122 set_gr_limmed 0x1234,0x5678,gr10
123 set_gr_limmed 0x9abc,0xdef0,gr11
126 cldqu @(sp,gr7),gr8,cc1,0
127 test_gr_limmed 0x9abc,0xdef0,gr8
128 test_gr_limmed 0x1234,0x5678,gr9
129 test_gr_limmed 0xbeef,0xdead,gr10
130 test_gr_limmed 0xdead,0xbeef,gr11
133 set_gr_limmed 0xdead,0xbeef,gr8
134 set_gr_limmed 0xbeef,0xdead,gr9
135 set_gr_limmed 0x1234,0x5678,gr10
136 set_gr_limmed 0x9abc,0xdef0,gr11
139 cldqu @(sp,gr7),gr8,cc1,0
140 test_gr_limmed 0x9abc,0xdef0,gr8
141 test_gr_limmed 0x1234,0x5678,gr9
142 test_gr_limmed 0xbeef,0xdead,gr10
143 test_gr_limmed 0xdead,0xbeef,gr11
146 set_gr_limmed 0xdead,0xbeef,gr8
147 set_gr_limmed 0xbeef,0xdead,gr9
148 set_gr_limmed 0x1234,0x5678,gr10
149 set_gr_limmed 0x9abc,0xdef0,gr11
152 cldqu @(sp,gr7),gr8,cc5,0
153 test_gr_limmed 0x9abc,0xdef0,gr8
154 test_gr_limmed 0x1234,0x5678,gr9
155 test_gr_limmed 0xbeef,0xdead,gr10
156 test_gr_limmed 0xdead,0xbeef,gr11
160 set_mem_limmed 0xdead,0xbeef,sp
162 set_mem_limmed 0xbeef,0xdead,sp
164 set_mem_limmed 0x1234,0x5678,sp
166 set_mem_limmed 0x9abc,0xdef0,sp
168 set_gr_limmed 0xdead,0xbeef,gr8
169 set_gr_limmed 0xbeef,0xdead,gr9
170 set_gr_limmed 0x1234,0x5678,gr10
171 set_gr_limmed 0x9abc,0xdef0,gr11
174 cldqu @(sp,gr7),gr8,cc1,1
175 test_gr_limmed 0xdead,0xbeef,gr8
176 test_gr_limmed 0xbeef,0xdead,gr9
177 test_gr_limmed 0x1234,0x5678,gr10
178 test_gr_limmed 0x9abc,0xdef0,gr11
181 set_gr_limmed 0xdead,0xbeef,gr8
182 set_gr_limmed 0xbeef,0xdead,gr9
183 set_gr_limmed 0x1234,0x5678,gr10
184 set_gr_limmed 0x9abc,0xdef0,gr11
185 inc_gr_immed -16,gr20
188 cldqu @(sp,gr7),gr8,cc1,1
189 test_gr_limmed 0xdead,0xbeef,gr8
190 test_gr_limmed 0xbeef,0xdead,gr9
191 test_gr_limmed 0x1234,0x5678,gr10
192 test_gr_limmed 0x9abc,0xdef0,gr11
195 set_gr_limmed 0xdead,0xbeef,gr8
196 set_gr_limmed 0xbeef,0xdead,gr9
197 set_gr_limmed 0x1234,0x5678,gr10
198 set_gr_limmed 0x9abc,0xdef0,gr11
202 cldqu @(sp,gr7),gr8,cc5,1
203 test_gr_limmed 0xdead,0xbeef,gr8
204 test_gr_limmed 0xbeef,0xdead,gr9
205 test_gr_limmed 0x1234,0x5678,gr10
206 test_gr_limmed 0x9abc,0xdef0,gr11
210 set_mem_limmed 0xdead,0xbeef,sp
212 set_mem_limmed 0xbeef,0xdead,sp
214 set_mem_limmed 0x1234,0x5678,sp
216 set_mem_limmed 0x9abc,0xdef0,sp
218 set_gr_limmed 0xdead,0xbeef,gr8
219 set_gr_limmed 0xbeef,0xdead,gr9
220 set_gr_limmed 0x1234,0x5678,gr10
221 set_gr_limmed 0x9abc,0xdef0,gr11
224 cldqu @(sp,gr7),gr8,cc2,0
225 test_gr_limmed 0xdead,0xbeef,gr8
226 test_gr_limmed 0xbeef,0xdead,gr9
227 test_gr_limmed 0x1234,0x5678,gr10
228 test_gr_limmed 0x9abc,0xdef0,gr11
231 set_gr_limmed 0xdead,0xbeef,gr8
232 set_gr_limmed 0xbeef,0xdead,gr9
233 set_gr_limmed 0x1234,0x5678,gr10
234 set_gr_limmed 0x9abc,0xdef0,gr11
235 inc_gr_immed -16,gr20
238 cldqu @(sp,gr7),gr8,cc2,1
239 test_gr_limmed 0xdead,0xbeef,gr8
240 test_gr_limmed 0xbeef,0xdead,gr9
241 test_gr_limmed 0x1234,0x5678,gr10
242 test_gr_limmed 0x9abc,0xdef0,gr11
245 set_gr_limmed 0xdead,0xbeef,gr8
246 set_gr_limmed 0xbeef,0xdead,gr9
247 set_gr_limmed 0x1234,0x5678,gr10
248 set_gr_limmed 0x9abc,0xdef0,gr11
252 cldqu @(sp,gr7),gr8,cc6,0
253 test_gr_limmed 0xdead,0xbeef,gr8
254 test_gr_limmed 0xbeef,0xdead,gr9
255 test_gr_limmed 0x1234,0x5678,gr10
256 test_gr_limmed 0x9abc,0xdef0,gr11
260 set_mem_limmed 0xdead,0xbeef,sp
262 set_mem_limmed 0xbeef,0xdead,sp
264 set_mem_limmed 0x1234,0x5678,sp
266 set_mem_limmed 0x9abc,0xdef0,sp
268 set_gr_limmed 0xdead,0xbeef,gr8
269 set_gr_limmed 0xbeef,0xdead,gr9
270 set_gr_limmed 0x1234,0x5678,gr10
271 set_gr_limmed 0x9abc,0xdef0,gr11
274 cldqu @(sp,gr7),gr8,cc3,1
275 test_gr_limmed 0xdead,0xbeef,gr8
276 test_gr_limmed 0xbeef,0xdead,gr9
277 test_gr_limmed 0x1234,0x5678,gr10
278 test_gr_limmed 0x9abc,0xdef0,gr11
281 set_gr_limmed 0xdead,0xbeef,gr8
282 set_gr_limmed 0xbeef,0xdead,gr9
283 set_gr_limmed 0x1234,0x5678,gr10
284 set_gr_limmed 0x9abc,0xdef0,gr11
285 inc_gr_immed -16,gr20
288 cldqu @(sp,gr7),gr8,cc3,0
289 test_gr_limmed 0xdead,0xbeef,gr8
290 test_gr_limmed 0xbeef,0xdead,gr9
291 test_gr_limmed 0x1234,0x5678,gr10
292 test_gr_limmed 0x9abc,0xdef0,gr11
295 set_gr_limmed 0xdead,0xbeef,gr8
296 set_gr_limmed 0xbeef,0xdead,gr9
297 set_gr_limmed 0x1234,0x5678,gr10
298 set_gr_limmed 0x9abc,0xdef0,gr11
302 cldqu @(sp,gr7),gr8,cc7,1
303 test_gr_limmed 0xdead,0xbeef,gr8
304 test_gr_limmed 0xbeef,0xdead,gr9
305 test_gr_limmed 0x1234,0x5678,gr10
306 test_gr_limmed 0x9abc,0xdef0,gr11
312 cldqu @(gr8,gr7),gr8,cc0,1
313 test_gr_limmed 0x9abc,0xdef0,gr8
314 test_gr_limmed 0x1234,0x5678,gr9
315 test_gr_limmed 0xbeef,0xdead,gr10
316 test_gr_limmed 0xdead,0xbeef,gr11