1 # frv testcase for cldq @($GRi,$GRj),$GRk,$CCi,$cond
5 .include "testutils.inc"
11 set_spr_immed 0x1b1b,cccr
13 set_mem_limmed 0xdead,0xbeef,sp
15 set_mem_limmed 0xbeef,0xdead,sp
17 set_mem_limmed 0x1234,0x5678,sp
19 set_mem_limmed 0x9abc,0xdef0,sp
20 set_gr_limmed 0xdead,0xbeef,gr8
21 set_gr_limmed 0xbeef,0xdead,gr9
22 set_gr_limmed 0x1234,0x5678,gr10
23 set_gr_limmed 0x9abc,0xdef0,gr11
26 cldq @(sp,gr7),gr8,cc0,1
27 test_gr_limmed 0x9abc,0xdef0,gr8
28 test_gr_limmed 0x1234,0x5678,gr9
29 test_gr_limmed 0xbeef,0xdead,gr10
30 test_gr_limmed 0xdead,0xbeef,gr11
32 set_gr_limmed 0xdead,0xbeef,gr8
33 set_gr_limmed 0xbeef,0xdead,gr9
34 set_gr_limmed 0x1234,0x5678,gr10
35 set_gr_limmed 0x9abc,0xdef0,gr11
38 cldq @(sp,gr7),gr8,cc0,1
39 test_gr_limmed 0x9abc,0xdef0,gr8
40 test_gr_limmed 0x1234,0x5678,gr9
41 test_gr_limmed 0xbeef,0xdead,gr10
42 test_gr_limmed 0xdead,0xbeef,gr11
44 set_gr_limmed 0xdead,0xbeef,gr8
45 set_gr_limmed 0xbeef,0xdead,gr9
46 set_gr_limmed 0x1234,0x5678,gr10
47 set_gr_limmed 0x9abc,0xdef0,gr11
50 cldq @(sp,gr7),gr8,cc4,1
51 test_gr_limmed 0x9abc,0xdef0,gr8
52 test_gr_limmed 0x1234,0x5678,gr9
53 test_gr_limmed 0xbeef,0xdead,gr10
54 test_gr_limmed 0xdead,0xbeef,gr11
57 set_mem_limmed 0xdead,0xbeef,sp
59 set_mem_limmed 0xbeef,0xdead,sp
61 set_mem_limmed 0x1234,0x5678,sp
63 set_mem_limmed 0x9abc,0xdef0,sp
64 set_gr_limmed 0xdead,0xbeef,gr8
65 set_gr_limmed 0xbeef,0xdead,gr9
66 set_gr_limmed 0x1234,0x5678,gr10
67 set_gr_limmed 0x9abc,0xdef0,gr11
70 cldq @(sp,gr7),gr8,cc0,0
71 test_gr_limmed 0xdead,0xbeef,gr8
72 test_gr_limmed 0xbeef,0xdead,gr9
73 test_gr_limmed 0x1234,0x5678,gr10
74 test_gr_limmed 0x9abc,0xdef0,gr11
76 set_gr_limmed 0xdead,0xbeef,gr8
77 set_gr_limmed 0xbeef,0xdead,gr9
78 set_gr_limmed 0x1234,0x5678,gr10
79 set_gr_limmed 0x9abc,0xdef0,gr11
82 cldq @(sp,gr7),gr8,cc0,0
83 test_gr_limmed 0xdead,0xbeef,gr8
84 test_gr_limmed 0xbeef,0xdead,gr9
85 test_gr_limmed 0x1234,0x5678,gr10
86 test_gr_limmed 0x9abc,0xdef0,gr11
88 set_gr_limmed 0xdead,0xbeef,gr8
89 set_gr_limmed 0xbeef,0xdead,gr9
90 set_gr_limmed 0x1234,0x5678,gr10
91 set_gr_limmed 0x9abc,0xdef0,gr11
94 cldq @(sp,gr7),gr8,cc4,0
95 test_gr_limmed 0xdead,0xbeef,gr8
96 test_gr_limmed 0xbeef,0xdead,gr9
97 test_gr_limmed 0x1234,0x5678,gr10
98 test_gr_limmed 0x9abc,0xdef0,gr11
101 set_mem_limmed 0xdead,0xbeef,sp
103 set_mem_limmed 0xbeef,0xdead,sp
105 set_mem_limmed 0x1234,0x5678,sp
107 set_mem_limmed 0x9abc,0xdef0,sp
108 set_gr_limmed 0xdead,0xbeef,gr8
109 set_gr_limmed 0xbeef,0xdead,gr9
110 set_gr_limmed 0x1234,0x5678,gr10
111 set_gr_limmed 0x9abc,0xdef0,gr11
114 cldq @(sp,gr7),gr8,cc1,0
115 test_gr_limmed 0x9abc,0xdef0,gr8
116 test_gr_limmed 0x1234,0x5678,gr9
117 test_gr_limmed 0xbeef,0xdead,gr10
118 test_gr_limmed 0xdead,0xbeef,gr11
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 cldq @(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
132 set_gr_limmed 0xdead,0xbeef,gr8
133 set_gr_limmed 0xbeef,0xdead,gr9
134 set_gr_limmed 0x1234,0x5678,gr10
135 set_gr_limmed 0x9abc,0xdef0,gr11
138 cldq @(sp,gr7),gr8,cc5,0
139 test_gr_limmed 0x9abc,0xdef0,gr8
140 test_gr_limmed 0x1234,0x5678,gr9
141 test_gr_limmed 0xbeef,0xdead,gr10
142 test_gr_limmed 0xdead,0xbeef,gr11
145 set_mem_limmed 0xdead,0xbeef,sp
147 set_mem_limmed 0xbeef,0xdead,sp
149 set_mem_limmed 0x1234,0x5678,sp
151 set_mem_limmed 0x9abc,0xdef0,sp
152 set_gr_limmed 0xdead,0xbeef,gr8
153 set_gr_limmed 0xbeef,0xdead,gr9
154 set_gr_limmed 0x1234,0x5678,gr10
155 set_gr_limmed 0x9abc,0xdef0,gr11
158 cldq @(sp,gr7),gr8,cc1,1
159 test_gr_limmed 0xdead,0xbeef,gr8
160 test_gr_limmed 0xbeef,0xdead,gr9
161 test_gr_limmed 0x1234,0x5678,gr10
162 test_gr_limmed 0x9abc,0xdef0,gr11
164 set_gr_limmed 0xdead,0xbeef,gr8
165 set_gr_limmed 0xbeef,0xdead,gr9
166 set_gr_limmed 0x1234,0x5678,gr10
167 set_gr_limmed 0x9abc,0xdef0,gr11
170 cldq @(sp,gr7),gr8,cc1,1
171 test_gr_limmed 0xdead,0xbeef,gr8
172 test_gr_limmed 0xbeef,0xdead,gr9
173 test_gr_limmed 0x1234,0x5678,gr10
174 test_gr_limmed 0x9abc,0xdef0,gr11
176 set_gr_limmed 0xdead,0xbeef,gr8
177 set_gr_limmed 0xbeef,0xdead,gr9
178 set_gr_limmed 0x1234,0x5678,gr10
179 set_gr_limmed 0x9abc,0xdef0,gr11
182 cldq @(sp,gr7),gr8,cc5,1
183 test_gr_limmed 0xdead,0xbeef,gr8
184 test_gr_limmed 0xbeef,0xdead,gr9
185 test_gr_limmed 0x1234,0x5678,gr10
186 test_gr_limmed 0x9abc,0xdef0,gr11
189 set_mem_limmed 0xdead,0xbeef,sp
191 set_mem_limmed 0xbeef,0xdead,sp
193 set_mem_limmed 0x1234,0x5678,sp
195 set_mem_limmed 0x9abc,0xdef0,sp
196 set_gr_limmed 0xdead,0xbeef,gr8
197 set_gr_limmed 0xbeef,0xdead,gr9
198 set_gr_limmed 0x1234,0x5678,gr10
199 set_gr_limmed 0x9abc,0xdef0,gr11
202 cldq @(sp,gr7),gr8,cc2,0
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
208 set_gr_limmed 0xdead,0xbeef,gr8
209 set_gr_limmed 0xbeef,0xdead,gr9
210 set_gr_limmed 0x1234,0x5678,gr10
211 set_gr_limmed 0x9abc,0xdef0,gr11
214 cldq @(sp,gr7),gr8,cc2,1
215 test_gr_limmed 0xdead,0xbeef,gr8
216 test_gr_limmed 0xbeef,0xdead,gr9
217 test_gr_limmed 0x1234,0x5678,gr10
218 test_gr_limmed 0x9abc,0xdef0,gr11
220 set_gr_limmed 0xdead,0xbeef,gr8
221 set_gr_limmed 0xbeef,0xdead,gr9
222 set_gr_limmed 0x1234,0x5678,gr10
223 set_gr_limmed 0x9abc,0xdef0,gr11
226 cldq @(sp,gr7),gr8,cc6,0
227 test_gr_limmed 0xdead,0xbeef,gr8
228 test_gr_limmed 0xbeef,0xdead,gr9
229 test_gr_limmed 0x1234,0x5678,gr10
230 test_gr_limmed 0x9abc,0xdef0,gr11
233 set_mem_limmed 0xdead,0xbeef,sp
235 set_mem_limmed 0xbeef,0xdead,sp
237 set_mem_limmed 0x1234,0x5678,sp
239 set_mem_limmed 0x9abc,0xdef0,sp
240 set_gr_limmed 0xdead,0xbeef,gr8
241 set_gr_limmed 0xbeef,0xdead,gr9
242 set_gr_limmed 0x1234,0x5678,gr10
243 set_gr_limmed 0x9abc,0xdef0,gr11
246 cldq @(sp,gr7),gr8,cc3,1
247 test_gr_limmed 0xdead,0xbeef,gr8
248 test_gr_limmed 0xbeef,0xdead,gr9
249 test_gr_limmed 0x1234,0x5678,gr10
250 test_gr_limmed 0x9abc,0xdef0,gr11
252 set_gr_limmed 0xdead,0xbeef,gr8
253 set_gr_limmed 0xbeef,0xdead,gr9
254 set_gr_limmed 0x1234,0x5678,gr10
255 set_gr_limmed 0x9abc,0xdef0,gr11
258 cldq @(sp,gr7),gr8,cc3,0
259 test_gr_limmed 0xdead,0xbeef,gr8
260 test_gr_limmed 0xbeef,0xdead,gr9
261 test_gr_limmed 0x1234,0x5678,gr10
262 test_gr_limmed 0x9abc,0xdef0,gr11
264 set_gr_limmed 0xdead,0xbeef,gr8
265 set_gr_limmed 0xbeef,0xdead,gr9
266 set_gr_limmed 0x1234,0x5678,gr10
267 set_gr_limmed 0x9abc,0xdef0,gr11
270 cldq @(sp,gr7),gr8,cc7,1
271 test_gr_limmed 0xdead,0xbeef,gr8
272 test_gr_limmed 0xbeef,0xdead,gr9
273 test_gr_limmed 0x1234,0x5678,gr10
274 test_gr_limmed 0x9abc,0xdef0,gr11