1 # frv testcase for cswap @($GRi,$GRj),$GRk,$CCi,$cond
4 .include "testutils.inc"
10 set_spr_immed 0x1b1b,cccr
13 set_mem_limmed 0xdead,0xbeef,sp
16 set_mem_limmed 0xbeef,0xdead,sp
19 set_mem_limmed 0xdead,0xbeef,sp
22 set_gr_limmed 0xbeef,0xdead,gr8
24 cswap @(sp,gr7),gr8,cc0,1
25 test_gr_limmed 0xdead,0xbeef,gr8
26 test_mem_limmed 0xbeef,0xdead,gr22
27 test_mem_limmed 0xbeef,0xdead,gr21
28 test_mem_limmed 0xdead,0xbeef,gr20
31 cswap @(sp,gr7),gr8,cc0,1
32 test_gr_limmed 0xbeef,0xdead,gr8
33 test_mem_limmed 0xbeef,0xdead,gr22
34 test_mem_limmed 0xdead,0xbeef,gr21
35 test_mem_limmed 0xdead,0xbeef,gr20
38 cswap @(sp,gr7),gr8,cc4,1
39 test_gr_limmed 0xdead,0xbeef,gr8
40 test_mem_limmed 0xbeef,0xdead,gr22
41 test_mem_limmed 0xdead,0xbeef,gr21
42 test_mem_limmed 0xbeef,0xdead,gr20
45 set_mem_limmed 0xdead,0xbeef,sp
48 set_mem_limmed 0xbeef,0xdead,sp
51 set_mem_limmed 0xdead,0xbeef,sp
54 set_gr_limmed 0xbeef,0xdead,gr8
56 cswap @(sp,gr7),gr8,cc0,0
57 test_gr_limmed 0xbeef,0xdead,gr8
58 test_mem_limmed 0xdead,0xbeef,gr22
59 test_mem_limmed 0xbeef,0xdead,gr21
60 test_mem_limmed 0xdead,0xbeef,gr20
62 set_gr_limmed 0xdead,0xbeef,gr8
64 cswap @(sp,gr7),gr8,cc0,0
65 test_gr_limmed 0xdead,0xbeef,gr8
66 test_mem_limmed 0xdead,0xbeef,gr22
67 test_mem_limmed 0xbeef,0xdead,gr21
68 test_mem_limmed 0xdead,0xbeef,gr20
70 set_gr_limmed 0xbeef,0xdead,gr8
72 cswap @(sp,gr7),gr8,cc4,0
73 test_gr_limmed 0xbeef,0xdead,gr8
74 test_mem_limmed 0xdead,0xbeef,gr22
75 test_mem_limmed 0xbeef,0xdead,gr21
76 test_mem_limmed 0xdead,0xbeef,gr20
79 set_mem_limmed 0xdead,0xbeef,sp
82 set_mem_limmed 0xbeef,0xdead,sp
85 set_mem_limmed 0xdead,0xbeef,sp
88 set_gr_limmed 0xbeef,0xdead,gr8
90 cswap @(sp,gr7),gr8,cc1,0
91 test_gr_limmed 0xdead,0xbeef,gr8
92 test_mem_limmed 0xbeef,0xdead,gr22
93 test_mem_limmed 0xbeef,0xdead,gr21
94 test_mem_limmed 0xdead,0xbeef,gr20
97 cswap @(sp,gr7),gr8,cc1,0
98 test_gr_limmed 0xbeef,0xdead,gr8
99 test_mem_limmed 0xbeef,0xdead,gr22
100 test_mem_limmed 0xdead,0xbeef,gr21
101 test_mem_limmed 0xdead,0xbeef,gr20
104 cswap @(sp,gr7),gr8,cc5,0
105 test_gr_limmed 0xdead,0xbeef,gr8
106 test_mem_limmed 0xbeef,0xdead,gr22
107 test_mem_limmed 0xdead,0xbeef,gr21
108 test_mem_limmed 0xbeef,0xdead,gr20
111 set_mem_limmed 0xdead,0xbeef,sp
114 set_mem_limmed 0xbeef,0xdead,sp
117 set_mem_limmed 0xdead,0xbeef,sp
120 set_gr_limmed 0xbeef,0xdead,gr8
122 cswap @(sp,gr7),gr8,cc1,1
123 test_gr_limmed 0xbeef,0xdead,gr8
124 test_mem_limmed 0xdead,0xbeef,gr22
125 test_mem_limmed 0xbeef,0xdead,gr21
126 test_mem_limmed 0xdead,0xbeef,gr20
128 set_gr_limmed 0xdead,0xbeef,gr8
130 cswap @(sp,gr7),gr8,cc1,1
131 test_gr_limmed 0xdead,0xbeef,gr8
132 test_mem_limmed 0xdead,0xbeef,gr22
133 test_mem_limmed 0xbeef,0xdead,gr21
134 test_mem_limmed 0xdead,0xbeef,gr20
136 set_gr_limmed 0xbeef,0xdead,gr8
138 cswap @(sp,gr7),gr8,cc5,1
139 test_gr_limmed 0xbeef,0xdead,gr8
140 test_mem_limmed 0xdead,0xbeef,gr22
141 test_mem_limmed 0xbeef,0xdead,gr21
142 test_mem_limmed 0xdead,0xbeef,gr20
145 set_mem_limmed 0xdead,0xbeef,sp
148 set_mem_limmed 0xbeef,0xdead,sp
151 set_mem_limmed 0xdead,0xbeef,sp
154 set_gr_limmed 0xbeef,0xdead,gr8
156 cswap @(sp,gr7),gr8,cc2,0
157 test_gr_limmed 0xbeef,0xdead,gr8
158 test_mem_limmed 0xdead,0xbeef,gr22
159 test_mem_limmed 0xbeef,0xdead,gr21
160 test_mem_limmed 0xdead,0xbeef,gr20
162 set_gr_limmed 0xdead,0xbeef,gr8
164 cswap @(sp,gr7),gr8,cc2,1
165 test_gr_limmed 0xdead,0xbeef,gr8
166 test_mem_limmed 0xdead,0xbeef,gr22
167 test_mem_limmed 0xbeef,0xdead,gr21
168 test_mem_limmed 0xdead,0xbeef,gr20
170 set_gr_limmed 0xbeef,0xdead,gr8
172 cswap @(sp,gr7),gr8,cc6,0
173 test_gr_limmed 0xbeef,0xdead,gr8
174 test_mem_limmed 0xdead,0xbeef,gr22
175 test_mem_limmed 0xbeef,0xdead,gr21
176 test_mem_limmed 0xdead,0xbeef,gr20
179 set_mem_limmed 0xdead,0xbeef,sp
182 set_mem_limmed 0xbeef,0xdead,sp
185 set_mem_limmed 0xdead,0xbeef,sp
188 set_gr_limmed 0xbeef,0xdead,gr8
190 cswap @(sp,gr7),gr8,cc3,1
191 test_gr_limmed 0xbeef,0xdead,gr8
192 test_mem_limmed 0xdead,0xbeef,gr22
193 test_mem_limmed 0xbeef,0xdead,gr21
194 test_mem_limmed 0xdead,0xbeef,gr20
196 set_gr_limmed 0xdead,0xbeef,gr8
198 cswap @(sp,gr7),gr8,cc3,0
199 test_gr_limmed 0xdead,0xbeef,gr8
200 test_mem_limmed 0xdead,0xbeef,gr22
201 test_mem_limmed 0xbeef,0xdead,gr21
202 test_mem_limmed 0xdead,0xbeef,gr20
204 set_gr_limmed 0xbeef,0xdead,gr8
206 cswap @(sp,gr7),gr8,cc7,1
207 test_gr_limmed 0xbeef,0xdead,gr8
208 test_mem_limmed 0xdead,0xbeef,gr22
209 test_mem_limmed 0xbeef,0xdead,gr21
210 test_mem_limmed 0xdead,0xbeef,gr20