4 #ld: -N -Ttext=0x80010000
7 # Copyright (C) 2005 Free Software Foundation, Inc.
8 # Contributed by MIPS Technologies, Inc. Written by Chao-ying Fu.
10 # This file is part of the GNU simulators.
12 # This program is free software; you can redistribute it and/or modify
13 # it under the terms of the GNU General Public License as published by
14 # the Free Software Foundation; either version 2, or (at your option)
17 # This program is distributed in the hope that it will be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 # GNU General Public License for more details.
22 # You should have received a copy of the GNU General Public License along
23 # with this program; if not, write to the Free Software Foundation, Inc.,
24 # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
26 .include "testutils.inc"
27 .include "utils-dsp.inc"
36 writemsg "[1] Test addq.ph"
37 dspck_dstio addq.ph, 0x0, 0x0, 0x0, 0x0, 0x0
38 dspck_dstio addq.ph, 0x20002, 0x10001, 0x10001, 0x0, 0x0
39 dspck_dstio addq.ph, 0xfffefffe, 0xffffffff, 0xffffffff, 0x0, 0x0
40 dspck_dstio addq.ph, 0xffff0000, 0xffffffff, 0x1, 0x0, 0x0
41 dspck_dstio addq.ph, 0x0, 0xffffffff, 0x10001, 0x0, 0x0
43 writemsg "[2] Test addq_s.ph"
44 dspck_dstio addq_s.ph, 0x0, 0x0, 0x0, 0x0, 0x0
45 dspck_dstio addq_s.ph, 0x20002, 0x10001, 0x10001, 0x0, 0x0
46 dspck_dstio addq_s.ph, 0xfffefffe, 0xffffffff, 0xffffffff, 0x0, 0x0
47 dspck_dstio addq_s.ph, 0xffff0000, 0xffffffff, 0x1, 0x0, 0x0
48 dspck_dstio addq_s.ph, 0xffff0000, 0x1, 0xffffffff, 0x0, 0x0
50 writemsg "[3] Test addq_s.w"
51 dspck_dsti addq_s.w, 0x0, 0x0, 0x0, 0x0
52 dspck_dstio addq_s.w, 0x2, 0x1, 0x1, 0x0, 0x0
53 dspck_dstio addq_s.w, 0xfffffffe, 0xffffffff, 0xffffffff, 0x0, 0x0
54 dspck_dstio addq_s.w, 0x0, 0xffffffff, 0x1, 0x0, 0x0
55 dspck_dstio addq_s.w, 0xffff, 0xffffffff, 0x10000, 0x0, 0x0
57 writemsg "[4] Test addu.qb"
58 dspck_dstio addu.qb, 0x0, 0x0, 0x0, 0x0, 0x0
59 dspck_dstio addu.qb, 0x2040000, 0x102ff01, 0x10201ff, 0x0, 0x100000
60 dspck_dstio addu.qb, 0xfe0001fe, 0x7f80ffff, 0x7f8002ff, 0x0, 0x100000
61 dspck_dstio addu.qb, 0xffffffff, 0x10203, 0xfffefdfc, 0x0, 0x0
62 dspck_dstio addu.qb, 0xffffffff, 0xfbfaf9f8, 0x4050607, 0x0, 0x0
64 writemsg "[5] Test addu_s.qb"
65 dspck_dstio addu_s.qb, 0x0, 0x0, 0x0, 0x0, 0x0
66 dspck_dstio addu_s.qb, 0x204ffff, 0x102ff01, 0x10201ff, 0x0, 0x100000
67 dspck_dstio addu_s.qb, 0xfeffffff, 0x7f80ffff, 0x7f8002ff, 0x0, 0x100000
68 dspck_dstio addu_s.qb, 0xffffffff, 0x10203, 0xfffefdfc, 0x0, 0x0
69 dspck_dstio addu_s.qb, 0xffffffff, 0xfbfaf9f8, 0x4050607, 0x0, 0x0
71 writemsg "[6] Test subq.ph"
72 dspck_dstio subq.ph, 0x0, 0x0, 0x0, 0x0, 0x0
73 dspck_dstio subq.ph, 0x10001, 0x20002, 0x10001, 0x0, 0x0
74 dspck_dstio subq.ph, 0x1ffff, 0x2fffe, 0x1ffff, 0x0, 0x0
75 dspck_dstio subq.ph, 0x7fff0000, 0xfffe8000, 0x7fff8000, 0x0, 0x100000
76 dspck_dstio subq.ph, 0x1ffff, 0x7fff8000, 0x7ffe8001, 0x0, 0x0
78 writemsg "[7] Test subq_s.ph"
79 dspck_dstio subq_s.ph, 0x0, 0x0, 0x0, 0x0, 0x0
80 dspck_dstio subq_s.ph, 0x10001, 0x20002, 0x10001, 0x0, 0x0
81 dspck_dstio subq_s.ph, 0x1ffff, 0x2fffe, 0x1ffff, 0x0, 0x0
82 dspck_dstio subq_s.ph, 0x0, 0x7fff8000, 0x7fff8000, 0x0, 0x0
83 dspck_dstio subq_s.ph, 0x1ffff, 0x7fff8000, 0x7ffe8001, 0x0, 0x0
85 writemsg "[8] Test subq_s.w"
86 dspck_dsti subq_s.w, 0x0, 0x0, 0x0, 0x0
87 dspck_dsti subq_s.w, 0x0, 0x7fffffff, 0x7fffffff, 0x0
88 dspck_dstio subq_s.w, 0x7fffffff, 0x0, 0x80000000, 0x0, 0x100000
89 dspck_dstio subq_s.w, 0x1, 0x2, 0x1, 0x0, 0x0
90 dspck_dstio subq_s.w, 0xffffffff, 0xfffffffe, 0xffffffff, 0x0, 0x0
92 writemsg "[9] Test subu.qb"
93 dspck_dstio subu.qb, 0x0, 0x0, 0x0, 0x0, 0x0
94 dspck_dstio subu.qb, 0x4030201, 0x8060402, 0x4030201, 0x0, 0x0
95 dspck_dstio subu.qb, 0xfcfdfeff, 0x4030201, 0x8060402, 0x0, 0x100000
96 dspck_dstio subu.qb, 0x102ff01, 0x2040000, 0x10201ff, 0x0, 0x100000
97 dspck_dstio subu.qb, 0x7f80ffff, 0xfe0001fe, 0x7f8002ff, 0x0, 0x100000
99 writemsg "[10] Test subu_s.qb"
100 dspck_dstio subu_s.qb, 0x0, 0x0, 0x0, 0x0, 0x0
101 dspck_dstio subu_s.qb, 0x4030201, 0x8060402, 0x4030201, 0x0, 0x0
102 dspck_dstio subu_s.qb, 0x0, 0x4030201, 0x8060402, 0x0, 0x100000
103 dspck_dstio subu_s.qb, 0x1020000, 0x2040000, 0x10201ff, 0x0, 0x100000
104 dspck_dstio subu_s.qb, 0x7f000000, 0xfe0001fe, 0x7f8002ff, 0x0, 0x100000
106 writemsg "[11] Test addsc"
107 dspck_dstio addsc, 0x0, 0x0, 0x0, 0x0, 0x0
108 dspck_dstio addsc, 0x1000000, 0x84000000, 0x7d000000, 0x0, 0x2000
109 dspck_dstio addsc, 0xf1000000, 0x74000000, 0x7d000000, 0x0, 0x0
110 dspck_dstio addsc, 0x2, 0x1, 0x1, 0x0, 0x0
111 dspck_dstio addsc, 0xffffffff, 0xfffffffe, 0x1, 0x0, 0x0
113 writemsg "[12] Test addwc"
114 dspck_dstio addwc, 0x0, 0x0, 0x0, 0x0, 0x0
115 dspck_dstio addwc, 0x2, 0x1, 0x1, 0x0, 0x0
116 dspck_dstio addwc, 0x3, 0x1, 0x1, 0x2000, 0x2000
117 dspck_dsti addwc, 0x1, 0xffffffff, 0x1, 0x2000
118 dspck_dsti addwc, 0x11, 0xa, 0x6, 0x2000
120 writemsg "[13] Test modsub"
121 dspck_dstio modsub, 0x0, 0x0, 0x0, 0x0, 0x0
122 dspck_dstio modsub, 0x76, 0x78, 0x7802, 0x0, 0x0
123 dspck_dstio modsub, 0x74, 0x76, 0x7802, 0x0, 0x0
124 dspck_dstio modsub, 0x78, 0x0, 0x7802, 0x0, 0x0
125 dspck_dstio modsub, 0xf9, 0xfc, 0xfe03, 0x0, 0x0
127 writemsg "[14] Test raddu.w.qb"
128 dspck_dsio raddu.w.qb, 0x0, 0x0, 0x0, 0x0
129 dspck_dsio raddu.w.qb, 0x2, 0x1000100, 0x0, 0x0
130 dspck_dsio raddu.w.qb, 0x4, 0x1010101, 0x0, 0x0
131 dspck_dsio raddu.w.qb, 0x200, 0xff01ff01, 0x0, 0x0
132 dspck_dsio raddu.w.qb, 0x3fc, 0xffffffff, 0x0, 0x0
134 writemsg "[15] Test absq_s.ph"
135 dspck_dsio absq_s.ph, 0x0, 0x0, 0x0, 0x0
136 dspck_dsio absq_s.ph, 0x10001, 0xffffffff, 0x0, 0x0
137 dspck_dsio absq_s.ph, 0x7fff7fff, 0x80008000, 0x0, 0x100000
138 dspck_dsio absq_s.ph, 0x60000002, 0xa000fffe, 0x0, 0x0
139 dspck_dsio absq_s.ph, 0x70000004, 0x9000fffc, 0x0, 0x0
141 writemsg "[16] Test absq_s.w"
142 dspck_dsio absq_s.w, 0x0, 0x0, 0x0, 0x0
143 dspck_dsio absq_s.w, 0x1, 0xffffffff, 0x0, 0x0
144 dspck_dsio absq_s.w, 0x7fffffff, 0x80000000, 0x0, 0x100000
145 dspck_dsio absq_s.w, 0x40000001, 0xbfffffff, 0x0, 0x0
146 dspck_dsio absq_s.w, 0x8000001, 0xf7ffffff, 0x0, 0x0
148 writemsg "[17] Test precrq.qb.ph"
149 dspck_dstio precrq.qb.ph, 0x0, 0x0, 0x0, 0x0, 0x0
150 dspck_dstio precrq.qb.ph, 0xff7f4020, 0xffff7fff, 0x40002000, 0x0, 0x0
151 dspck_dstio precrq.qb.ph, 0xfeba7632, 0xfedcba98, 0x76543210, 0x0, 0x0
152 dspck_dstio precrq.qb.ph, 0x7632feba, 0x76543210, 0xfedcba98, 0x0, 0x0
153 dspck_dstio precrq.qb.ph, 0x14589cd, 0x1234567, 0x89abcdef, 0x0, 0x0
155 writemsg "[18] Test precrq.ph.w"
156 dspck_dstio precrq.ph.w, 0x0, 0x0, 0x0, 0x0, 0x0
157 dspck_dstio precrq.ph.w, 0xffff4000, 0xffff7fff, 0x40002000, 0x0, 0x0
158 dspck_dstio precrq.ph.w, 0xfedc7654, 0xfedcba98, 0x76543210, 0x0, 0x0
159 dspck_dstio precrq.ph.w, 0x7654fedc, 0x76543210, 0xfedcba98, 0x0, 0x0
160 dspck_dstio precrq.ph.w, 0x12389ab, 0x1234567, 0x89abcdef, 0x0, 0x0
162 writemsg "[19] Test precrq_rs.ph.w"
163 dspck_dstio precrq_rs.ph.w, 0x0, 0x0, 0x0, 0x0, 0x0
164 dspck_dstio precrq_rs.ph.w, 0x7fff0000, 0x7fffffff, 0xffffffff, 0x0, 0x400000
165 dspck_dstio precrq_rs.ph.w, 0x80008001, 0x80007fff, 0x8000ffff, 0x0, 0x0
166 dspck_dstio precrq_rs.ph.w, 0xfedd7654, 0xfedcba98, 0x76543210, 0x0, 0x0
167 dspck_dstio precrq_rs.ph.w, 0x7654fedd, 0x76543210, 0xfedcba98, 0x0, 0x0
169 writemsg "[20] Test precrqu_s.qb.ph"
170 dspck_dstio precrqu_s.qb.ph, 0x0, 0x0, 0x0, 0x0, 0x0
171 dspck_dstio precrqu_s.qb.ph, 0xff8040, 0xffff7fff, 0x40002000, 0x0, 0x400000
172 dspck_dstio precrqu_s.qb.ph, 0xec64, 0xfedcba98, 0x76543210, 0x0, 0x400000
173 dspck_dstio precrqu_s.qb.ph, 0xec640000, 0x76543210, 0xfedcba98, 0x0, 0x400000
174 dspck_dstio precrqu_s.qb.ph, 0x28a0000, 0x1234567, 0x89abcdef, 0x0, 0x400000
176 writemsg "[21] Test preceq.w.phl"
177 dspck_dsio preceq.w.phl, 0x0, 0x0, 0x0, 0x0
178 dspck_dsio preceq.w.phl, 0xffff0000, 0xffffffff, 0x0, 0x0
179 dspck_dsio preceq.w.phl, 0x80000000, 0x80004000, 0x0, 0x0
180 dspck_dsio preceq.w.phl, 0xc0010000, 0xc0012001, 0x0, 0x0
181 dspck_dsio preceq.w.phl, 0x76540000, 0x76543210, 0x0, 0x0
183 writemsg "[22] Test preceq.w.phr"
184 dspck_dsio preceq.w.phr, 0x0, 0x0, 0x0, 0x0
185 dspck_dsio preceq.w.phr, 0xffff0000, 0xffffffff, 0x0, 0x0
186 dspck_dsio preceq.w.phr, 0x40000000, 0x80004000, 0x0, 0x0
187 dspck_dsio preceq.w.phr, 0x20010000, 0xc0012001, 0x0, 0x0
188 dspck_dsio preceq.w.phr, 0x32100000, 0x76543210, 0x0, 0x0
190 writemsg "[23] Test precequ.ph.qbl"
191 dspck_dsio precequ.ph.qbl, 0x0, 0x0, 0x0, 0x0
192 dspck_dsio precequ.ph.qbl, 0x7f807f80, 0xffffffff, 0x0, 0x0
193 dspck_dsio precequ.ph.qbl, 0x40000000, 0x80004000, 0x0, 0x0
194 dspck_dsio precequ.ph.qbl, 0x60000080, 0xc0012001, 0x0, 0x0
195 dspck_dsio precequ.ph.qbl, 0x3b002a00, 0x76543210, 0x0, 0x0
197 writemsg "[24] Test precequ.ph.qbr"
198 dspck_dsio precequ.ph.qbr, 0x0, 0x0, 0x0, 0x0
199 dspck_dsio precequ.ph.qbr, 0x7f807f80, 0xffffffff, 0x0, 0x0
200 dspck_dsio precequ.ph.qbr, 0x20000000, 0x80004000, 0x0, 0x0
201 dspck_dsio precequ.ph.qbr, 0x10000080, 0xc0012001, 0x0, 0x0
202 dspck_dsio precequ.ph.qbr, 0x19000800, 0x76543210, 0x0, 0x0
204 writemsg "[25] Test precequ.ph.qbla"
205 dspck_dsio precequ.ph.qbla, 0x0, 0x0, 0x0, 0x0
206 dspck_dsio precequ.ph.qbla, 0x7f807f80, 0xffffffff, 0x0, 0x0
207 dspck_dsio precequ.ph.qbla, 0x40002000, 0x80004000, 0x0, 0x0
208 dspck_dsio precequ.ph.qbla, 0x60001000, 0xc0012001, 0x0, 0x0
209 dspck_dsio precequ.ph.qbla, 0x3b001900, 0x76543210, 0x0, 0x0
211 writemsg "[26] Test precequ.ph.qbra"
212 dspck_dsio precequ.ph.qbra, 0x0, 0x0, 0x0, 0x0
213 dspck_dsio precequ.ph.qbra, 0x7f807f80, 0xffffffff, 0x0, 0x0
214 dspck_dsio precequ.ph.qbra, 0x0, 0x80004000, 0x0, 0x0
215 dspck_dsio precequ.ph.qbra, 0x800080, 0xc0012001, 0x0, 0x0
216 dspck_dsio precequ.ph.qbra, 0x2a000800, 0x76543210, 0x0, 0x0
218 writemsg "[27] Test preceu.ph.qbl"
219 dspck_dsio preceu.ph.qbl, 0x0, 0x0, 0x0, 0x0
220 dspck_dsio preceu.ph.qbl, 0xff00ff, 0xffffffff, 0x0, 0x0
221 dspck_dsio preceu.ph.qbl, 0x800000, 0x80004000, 0x0, 0x0
222 dspck_dsio preceu.ph.qbl, 0xc00001, 0xc0012001, 0x0, 0x0
223 dspck_dsio preceu.ph.qbl, 0x760054, 0x76543210, 0x0, 0x0
225 writemsg "[28] Test preceu.ph.qbr"
226 dspck_dsio preceu.ph.qbr, 0x0, 0x0, 0x0, 0x0
227 dspck_dsio preceu.ph.qbr, 0xff00ff, 0xffffffff, 0x0, 0x0
228 dspck_dsio preceu.ph.qbr, 0x400000, 0x80004000, 0x0, 0x0
229 dspck_dsio preceu.ph.qbr, 0x200001, 0xc0012001, 0x0, 0x0
230 dspck_dsio preceu.ph.qbr, 0x320010, 0x76543210, 0x0, 0x0
232 writemsg "[29] Test preceu.ph.qbla"
233 dspck_dsio preceu.ph.qbla, 0x0, 0x0, 0x0, 0x0
234 dspck_dsio preceu.ph.qbla, 0xff00ff, 0xffffffff, 0x0, 0x0
235 dspck_dsio preceu.ph.qbla, 0x800040, 0x80004000, 0x0, 0x0
236 dspck_dsio preceu.ph.qbla, 0xc00020, 0xc0012001, 0x0, 0x0
237 dspck_dsio preceu.ph.qbla, 0x760032, 0x76543210, 0x0, 0x0
239 writemsg "[30] Test preceu.ph.qbra"
240 dspck_dsio preceu.ph.qbra, 0x0, 0x0, 0x0, 0x0
241 dspck_dsio preceu.ph.qbra, 0xff00ff, 0xffffffff, 0x0, 0x0
242 dspck_dsio preceu.ph.qbra, 0x0, 0x80004000, 0x0, 0x0
243 dspck_dsio preceu.ph.qbra, 0x10001, 0xc0012001, 0x0, 0x0
244 dspck_dsio preceu.ph.qbra, 0x540010, 0x76543210, 0x0, 0x0
246 writemsg "[31] Test shll.qb"
247 dspck_dtsaio shll.qb, 0x0, 0x0, 0, 0x0, 0x0
248 dspck_dtsai shll.qb, 0x202fefe, 0x101ffff, 1, 0x0
249 dspck_dtsai shll.qb, 0xfefe0002, 0x7fff8081, 1, 0x0
250 dspck_dtsai shll.qb, 0xfcfc0020, 0x7fff8008, 2, 0x0
251 dspck_dtsai shll.qb, 0x68b0d868, 0x6db6db6d, 3, 0x0
253 writemsg "[32] Test shllv.qb"
254 dspck_dstio shllv.qb, 0x0, 0x0, 0x0, 0x0, 0x0
255 dspck_dsti shllv.qb, 0x202fefe, 0x101ffff, 0x1, 0x0
256 dspck_dsti shllv.qb, 0xfefe0002, 0x7fff8081, 0x1, 0x0
257 dspck_dsti shllv.qb, 0xfcfc0020, 0x7fff8008, 0x2, 0x0
258 dspck_dsti shllv.qb, 0x68b0d868, 0x6db6db6d, 0x3, 0x0
260 writemsg "[33] Test shll.ph"
261 dspck_dtsaio shll.ph, 0x0, 0x0, 0, 0x0, 0x0
262 dspck_dtsaio shll.ph, 0x2fffe, 0x1ffff, 1, 0x0, 0x0
263 dspck_dtsaio shll.ph, 0xfffe0000, 0x7fff8000, 1, 0x0, 0x400000
264 dspck_dtsaio shll.ph, 0xfffc0020, 0x7fff8008, 2, 0x0, 0x400000
265 dspck_dtsaio shll.ph, 0x6db0db68, 0x6db6db6d, 3, 0x0, 0x400000
267 writemsg "[34] Test shllv.ph"
268 dspck_dstio shllv.ph, 0x0, 0x0, 0x0, 0x0, 0x0
269 dspck_dstio shllv.ph, 0x2fffe, 0x1ffff, 0x1, 0x0, 0x0
270 dspck_dstio shllv.ph, 0xfffe0000, 0x7fff8000, 0x1, 0x0, 0x400000
271 dspck_dstio shllv.ph, 0xfffc0020, 0x7fff8008, 0x2, 0x0, 0x400000
272 dspck_dstio shllv.ph, 0x6db0db68, 0x6db6db6d, 0x3, 0x0, 0x400000
274 writemsg "[35] Test shll_s.ph"
275 dspck_dtsaio shll_s.ph, 0x0, 0x0, 0, 0x0, 0x0
276 dspck_dtsaio shll_s.ph, 0x2fffe, 0x1ffff, 1, 0x0, 0x0
277 dspck_dtsaio shll_s.ph, 0x7fff8000, 0x7fff8000, 1, 0x0, 0x400000
278 dspck_dtsaio shll_s.ph, 0x7fff8000, 0x7fff8008, 2, 0x0, 0x400000
279 dspck_dtsaio shll_s.ph, 0x7fff8000, 0x6db6db6d, 3, 0x0, 0x400000
281 writemsg "[36] Test shllv_s.ph"
282 dspck_dstio shllv_s.ph, 0x0, 0x0, 0x0, 0x0, 0x0
283 dspck_dstio shllv_s.ph, 0x2fffe, 0x1ffff, 0x1, 0x0, 0x0
284 dspck_dstio shllv_s.ph, 0x7fff8000, 0x7fff8000, 0x1, 0x0, 0x400000
285 dspck_dstio shllv_s.ph, 0x7fff8000, 0x7fff8008, 0x2, 0x0, 0x400000
286 dspck_dstio shllv_s.ph, 0x7fff8000, 0x6db6db6d, 0x3, 0x0, 0x400000
288 writemsg "[37] Test shll_s.w"
289 dspck_dtsaio shll_s.w, 0x0, 0x0, 0, 0x0, 0x0
290 dspck_dtsaio shll_s.w, 0x3fffe, 0x1ffff, 1, 0x0, 0x0
291 dspck_dtsaio shll_s.w, 0x7fffffff, 0x7fff8000, 1, 0x0, 0x400000
292 dspck_dtsaio shll_s.w, 0x80000000, 0x80000000, 1, 0x0, 0x400000
293 dspck_dtsaio shll_s.w, 0x7fffffff, 0x7fff8008, 2, 0x0, 0x400000
295 writemsg "[38] Test shllv_s.w"
296 dspck_dstio shllv_s.w, 0x0, 0x0, 0x0, 0x0, 0x0
297 dspck_dstio shllv_s.w, 0x3fffe, 0x1ffff, 0x1, 0x0, 0x0
298 dspck_dstio shllv_s.w, 0x7fffffff, 0x7fff8000, 0x1, 0x0, 0x400000
299 dspck_dstio shllv_s.w, 0x80000000, 0x80000000, 0x1, 0x0, 0x400000
300 dspck_dstio shllv_s.w, 0x7fffffff, 0x7fff8008, 0x2, 0x0, 0x400000
302 writemsg "[39] Test shrl.qb"
303 dspck_dtsaio shrl.qb, 0x0, 0x0, 0, 0x0, 0x0
304 dspck_dtsai shrl.qb, 0x7f7f, 0x101ffff, 1, 0x0
305 dspck_dtsai shrl.qb, 0x3f7f4040, 0x7fff8081, 1, 0x0
306 dspck_dtsai shrl.qb, 0x1f3f2002, 0x7fff8008, 2, 0x0
307 dspck_dtsai shrl.qb, 0xd161b0d, 0x6db6db6d, 3, 0x0
309 writemsg "[40] Test shrlv.qb"
310 dspck_dstio shrlv.qb, 0x0, 0x0, 0x0, 0x0, 0x0
311 dspck_dsti shrlv.qb, 0x7f7f, 0x101ffff, 0x1, 0x0
312 dspck_dsti shrlv.qb, 0x3f7f4040, 0x7fff8081, 0x1, 0x0
313 dspck_dsti shrlv.qb, 0x1f3f2002, 0x7fff8008, 0x2, 0x0
314 dspck_dsti shrlv.qb, 0xd161b0d, 0x6db6db6d, 0x3, 0x0
316 writemsg "[41] Test shra.ph"
317 dspck_dtsaio shra.ph, 0x10001, 0x20002, 1, 0x0, 0x0
318 dspck_dtsaio shra.ph, 0x10006, 0x10106f6f, 12, 0x0, 0x0
319 dspck_dtsaio shra.ph, 0x1c000, 0x28000, 1, 0x0, 0x0
320 dspck_dtsaio shra.ph, 0x2f800, 0x208000, 4, 0x0, 0x0
321 dspck_dtsaio shra.ph, 0xfc01fc00, 0x80208000, 5, 0x0, 0x0
323 writemsg "[42] Test shrav.ph"
324 dspck_dstio shrav.ph, 0x10001, 0x20002, 0x1, 0x0, 0x0
325 dspck_dstio shrav.ph, 0x10006, 0x10106f6f, 0xc, 0x0, 0x0
326 dspck_dstio shrav.ph, 0x1c000, 0x28000, 0x1, 0x0, 0x0
327 dspck_dstio shrav.ph, 0x2f800, 0x208000, 0x4, 0x0, 0x0
328 dspck_dstio shrav.ph, 0xfc01fc00, 0x80208000, 0x5, 0x0, 0x0
330 writemsg "[43] Test shra_r.ph"
331 dspck_dtsaio shra_r.ph, 0x20001, 0x30002, 1, 0x0, 0x0
332 dspck_dtsaio shra_r.ph, 0x10001, 0x20001, 1, 0x0, 0x0
333 dspck_dtsaio shra_r.ph, 0x10001, 0x10001, 1, 0x0, 0x0
334 dspck_dtsaio shra_r.ph, 0x0, 0x10001, 2, 0x0, 0x0
335 dspck_dtsaio shra_r.ph, 0x7fff8000, 0x7fff8000, 0, 0x0, 0x0
336 dspck_dtsaio shra_r.ph, 0x4000c000, 0x7fff8000, 1, 0x0, 0x0
337 dspck_dtsaio shra_r.ph, 0x2000e000, 0x7ffe8000, 2, 0x0, 0x0
339 writemsg "[44] Test shrav_r.ph"
340 dspck_dstio shrav_r.ph, 0x20001, 0x30002, 0x1, 0x0, 0x0
341 dspck_dstio shrav_r.ph, 0x10001, 0x20001, 0x1, 0x0, 0x0
342 dspck_dstio shrav_r.ph, 0x10001, 0x10001, 0x1, 0x0, 0x0
343 dspck_dstio shrav_r.ph, 0x0, 0x10001, 0x2, 0x0, 0x0
344 dspck_dstio shrav_r.ph, 0x7fff8000, 0x7fff8000, 0, 0x0, 0x0
345 dspck_dstio shrav_r.ph, 0x2000e000, 0x7fff8000, 2, 0x0, 0x0
347 writemsg "[45] Test shra_r.w"
348 dspck_dtsaio shra_r.w, 0x1, 0x2, 1, 0x0, 0x0
349 dspck_dtsaio shra_r.w, 0xffff8000, 0x80000000, 16, 0x0, 0x0
350 dspck_dtsaio shra_r.w, 0x8001, 0x10001, 1, 0x0, 0x0
351 dspck_dtsaio shra_r.w, 0x1, 0x10001, 17, 0x0, 0x0
352 dspck_dtsaio shra_r.w, 0xffffc001, 0x80010001, 17, 0x0, 0x0
353 dspck_dtsaio shra_r.w, 0x7fffffff, 0x7fffffff, 0, 0x0, 0x0
354 dspck_dtsaio shra_r.w, 0x40000000, 0x7fffffff, 1, 0x0, 0x0
355 dspck_dtsaio shra_r.w, 0x20000000, 0x7ffffffe, 2, 0x0, 0x0
357 writemsg "[46] Test shrav_r.w"
358 dspck_dstio shrav_r.w, 0x1, 0x2, 0x1, 0x0, 0x0
359 dspck_dstio shrav_r.w, 0xffff8000, 0x80000000, 0x10, 0x0, 0x0
360 dspck_dstio shrav_r.w, 0x8001, 0x10001, 0x1, 0x0, 0x0
361 dspck_dstio shrav_r.w, 0x8001, 0x10001, 0x21, 0x0, 0x0
362 dspck_dstio shrav_r.w, 0x4000, 0x10001, 0x2, 0x0, 0x0
363 dspck_dstio shrav_r.w, 0x7fffffff, 0x7fffffff, 0x0, 0x0, 0x0
364 dspck_dstio shrav_r.w, 0x10000000, 0x7ffffffc, 0x3, 0x0, 0x0
365 dspck_dstio shrav_r.w, 0x08000000, 0x7ffffff8, 0x4, 0x0, 0x0
367 writemsg "[47] Test muleu_s.ph.qbl"
368 dspck_dstio muleu_s.ph.qbl, 0x0, 0x0, 0x0, 0x0, 0x0
369 dspck_dstio muleu_s.ph.qbl, 0x0, 0x0, 0x40004000, 0x0, 0x0
370 dspck_dstio muleu_s.ph.qbl, 0x0, 0xffffffff, 0x0, 0x0, 0x0
371 dspck_dstio muleu_s.ph.qbl, 0x10001, 0x1010101, 0x10001, 0x0, 0x0
372 dspck_dstio muleu_s.ph.qbl, 0x10000, 0x1000001, 0x10001, 0x0, 0x0
374 writemsg "[48] Test muleu_s.ph.qbr"
375 dspck_dstio muleu_s.ph.qbr, 0x0, 0x0, 0x0, 0x0, 0x0
376 dspck_dstio muleu_s.ph.qbr, 0x0, 0x0, 0x40004000, 0x0, 0x0
377 dspck_dstio muleu_s.ph.qbr, 0x0, 0xffffffff, 0x0, 0x0, 0x0
378 dspck_dstio muleu_s.ph.qbr, 0x10001, 0x1010101, 0x10001, 0x0, 0x0
379 dspck_dstio muleu_s.ph.qbr, 0x1, 0x1000001, 0x10001, 0x0, 0x0
381 writemsg "[49] Test mulq_rs.ph"
382 dspck_dstio mulq_rs.ph, 0x0, 0x0, 0x0, 0x0, 0x0
383 dspck_dstio mulq_rs.ph, 0x0, 0x1, 0x1, 0x0, 0x0
384 dspck_dstio mulq_rs.ph, 0x20000000, 0x40007fff, 0x40000000, 0x0, 0x0
385 dspck_dstio mulq_rs.ph, 0x33330000, 0x66660000, 0x40007fff, 0x0, 0x0
386 dspck_dstio mulq_rs.ph, 0xccd3332, 0x66666666, 0x10003fff, 0x0, 0x0
388 writemsg "[50] Test muleq_s.w.phl"
389 dspck_dstio muleq_s.w.phl, 0x0, 0x0, 0x0, 0x0, 0x0
390 dspck_dstio muleq_s.w.phl, 0x0, 0x0, 0x40004000, 0x0, 0x0
391 dspck_dstio muleq_s.w.phl, 0x0, 0x7fff7fff, 0x0, 0x0, 0x0
392 dspck_dstio muleq_s.w.phl, 0x0, 0x0, 0xc000c000, 0x0, 0x0
393 dspck_dstio muleq_s.w.phl, 0x0, 0x80008000, 0x0, 0x0, 0x0
395 writemsg "[51] Test muleq_s.w.phr"
396 dspck_dstio muleq_s.w.phr, 0x0, 0x0, 0x0, 0x0, 0x0
397 dspck_dstio muleq_s.w.phr, 0x0, 0x0, 0x40004000, 0x0, 0x0
398 dspck_dstio muleq_s.w.phr, 0x0, 0x7fff7fff, 0x0, 0x0, 0x0
399 dspck_dstio muleq_s.w.phr, 0x0, 0x0, 0xc000c000, 0x0, 0x0
400 dspck_dstio muleq_s.w.phr, 0x0, 0x80008000, 0x0, 0x0, 0x0
402 writemsg "[52] Test dpau.h.qbl"
403 dspck_astio dpau.h.qbl, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0
404 dspck_astio dpau.h.qbl, 0x0, 0x0, 0x0, 0x1, 0x1010101, 0x1000001, 0x0, 0x0
405 dspck_astio dpau.h.qbl, 0xffffffff, 0xffffffff, 0x0, 0x0, 0x1010101, 0x1000001, 0x0, 0x0
406 dspck_astio dpau.h.qbl, 0x0, 0x0, 0x0, 0x0, 0xffff0000, 0xffff, 0x0, 0x0
407 dspck_astio dpau.h.qbl, 0x0, 0x0, 0x0, 0xff, 0xffff0001, 0x1ffff, 0x0, 0x0
409 writemsg "[53] Test dpau.h.qbr"
410 dspck_astio dpau.h.qbr, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0
411 dspck_astio dpau.h.qbr, 0x0, 0x0, 0x0, 0x1, 0x1010101, 0x1000001, 0x0, 0x0
412 dspck_astio dpau.h.qbr, 0xffffffff, 0xffffffff, 0x0, 0x0, 0x1010101, 0x1000001, 0x0, 0x0
413 dspck_astio dpau.h.qbr, 0x0, 0x0, 0x0, 0x0, 0xffff0000, 0xffff, 0x0, 0x0
414 dspck_astio dpau.h.qbr, 0x0, 0x0, 0x0, 0xff, 0xffff0001, 0x1ffff, 0x0, 0x0
416 writemsg "[54] Test dpsu.h.qbl"
417 dspck_astio dpsu.h.qbl, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0
418 dspck_astio dpsu.h.qbl, 0x0, 0x1, 0x0, 0x0, 0x1010101, 0x1000001, 0x0, 0x0
419 dspck_astio dpsu.h.qbl, 0x0, 0x0, 0xffffffff, 0xffffffff, 0x1010101, 0x1000001, 0x0, 0x0
420 dspck_astio dpsu.h.qbl, 0x0, 0x0, 0x0, 0x0, 0xffff0000, 0xffff, 0x0, 0x0
421 dspck_astio dpsu.h.qbl, 0x0, 0xff, 0x0, 0x0, 0xffff0001, 0x1ffff, 0x0, 0x0
423 writemsg "[55] Test dpsu.h.qbr"
424 dspck_astio dpsu.h.qbr, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0
425 dspck_astio dpsu.h.qbr, 0x0, 0x1, 0x0, 0x0, 0x1010101, 0x1000001, 0x0, 0x0
426 dspck_astio dpsu.h.qbr, 0x0, 0x0, 0xffffffff, 0xffffffff, 0x1010101, 0x1000001, 0x0, 0x0
427 dspck_astio dpsu.h.qbr, 0x0, 0x0, 0x0, 0x0, 0xffff0000, 0xffff, 0x0, 0x0
428 dspck_astio dpsu.h.qbr, 0x0, 0xff, 0x0, 0x0, 0xffff0001, 0x1ffff, 0x0, 0x0
430 writemsg "[56] Test dpaq_s.w.ph"
431 dspck_astio dpaq_s.w.ph, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0
432 dspck_astio dpaq_s.w.ph, 0x0, 0x0, 0x0, 0xfffc0004, 0x7fff7fff, 0x7fff7fff, 0x0, 0x0
433 dspck_astio dpaq_s.w.ph, 0x0, 0x0, 0x0, 0xfffffffe, 0x80008000, 0x80008000, 0x0, 0xf0000
434 dspck_astio dpaq_s.w.ph, 0x0, 0x0, 0xffffffff, 0xa0000000, 0x40002000, 0x80008000, 0x0, 0x0
435 dspck_astio dpaq_s.w.ph, 0xffffffff, 0xa0000000, 0xffffffff, 0x88000000, 0x10000800, 0x80008000, 0x0, 0x0
437 writemsg "[57] Test dpsq_s.w.ph"
438 dspck_astio dpsq_s.w.ph, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0
439 dspck_astio dpsq_s.w.ph, 0x0, 0xfffc0004, 0x0, 0x0, 0x7fff7fff, 0x7fff7fff, 0x0, 0x0
440 dspck_astio dpsq_s.w.ph, 0x0, 0xfffffffe, 0x0, 0x0, 0x80008000, 0x80008000, 0x0, 0xf0000
441 dspck_astio dpsq_s.w.ph, 0xffffffff, 0xa0000000, 0x0, 0x0, 0x40002000, 0x80008000, 0x0, 0x0
442 dspck_astio dpsq_s.w.ph, 0xffffffff, 0x88000000, 0xffffffff, 0xa0000000, 0x10000800, 0x80008000, 0x0, 0x0
444 writemsg "[58] Test mulsaq_s.w.ph"
445 dspck_astio mulsaq_s.w.ph, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0
446 dspck_astio mulsaq_s.w.ph, 0x0, 0x0, 0x0, 0x0, 0x4000, 0xc0000000, 0x0, 0x0
447 dspck_astio mulsaq_s.w.ph, 0x0, 0x0, 0xffffffff, 0x60010000, 0x80004000, 0x7fff4000, 0x0, 0x0
448 dspck_astio mulsaq_s.w.ph, 0x0, 0x0, 0x0, 0x5fffffff, 0x80004000, 0x80004000, 0x0, 0xf0000
449 dspck_astio mulsaq_s.w.ph, 0x7fffffff, 0xffffffff, 0x80000000, 0xfffc0003, 0x7fff8001, 0x7fff7fff, 0x0, 0x0
451 writemsg "[59] Test dpaq_sa.l.w"
452 dspck_astio dpaq_sa.l.w, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0
453 dspck_astio dpaq_sa.l.w, 0x0, 0x0, 0x7ffffffe, 0x2, 0x7fffffff, 0x7fffffff, 0x0, 0x0
454 dspck_astio dpaq_sa.l.w, 0x0, 0x0, 0x7fffffff, 0xffffffff, 0x80000000, 0x80000000, 0x0, 0xf0000
455 dspck_astio dpaq_sa.l.w, 0x0, 0x0, 0xc0000000, 0x80000000, 0xc0000000, 0x7fffffff, 0x0, 0x0
456 dspck_astio dpaq_sa.l.w, 0x20000000, 0x0, 0x0, 0x40000000, 0xe0000000, 0x7fffffff, 0x0, 0x0
458 writemsg "[60] Test dpsq_sa.l.w"
459 dspck_astio dpsq_sa.l.w, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0
460 dspck_astio dpsq_sa.l.w, 0x7fffffff, 0xffffffff, 0x0, 0x0, 0x80000000, 0x80000000, 0x0, 0xf0000
461 dspck_astio dpsq_sa.l.w, 0x80000000, 0x0, 0x80000000, 0x0, 0x80000000, 0x80000000, 0x0, 0xf0000
462 dspck_astio dpsq_sa.l.w, 0x0, 0x0, 0x80000000, 0x1, 0x80000000, 0x80000000, 0x0, 0xf0000
463 dspck_astio dpsq_sa.l.w, 0x0, 0x0, 0x3fffffff, 0x80000000, 0xc0000000, 0x7fffffff, 0x0, 0x0
465 writemsg "[61] Test maq_s.w.phl"
466 dspck_astio maq_s.w.phl, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0
467 dspck_astio maq_s.w.phl, 0xffffffff, 0x0, 0xffffffff, 0x0, 0x0, 0x40004000, 0x0, 0x0
468 dspck_astio maq_s.w.phl, 0x0, 0xffffffff, 0x0, 0xffffffff, 0x7fff7fff, 0x0, 0x0, 0x0
469 dspck_astio maq_s.w.phl, 0xffffffff, 0x0, 0xffffffff, 0x0, 0x7fff7fff, 0x0, 0x0, 0x0
470 dspck_astio maq_s.w.phl, 0x0, 0x40000000, 0x0, 0x40000000, 0x0, 0xc000c000, 0x0, 0x0
472 writemsg "[62] Test maq_s.w.phr"
473 dspck_astio maq_s.w.phr, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0
474 dspck_astio maq_s.w.phr, 0xffffffff, 0x0, 0xffffffff, 0x0, 0x0, 0x40004000, 0x0, 0x0
475 dspck_astio maq_s.w.phr, 0x0, 0xffffffff, 0x0, 0xffffffff, 0x7fff7fff, 0x0, 0x0, 0x0
476 dspck_astio maq_s.w.phr, 0xffffffff, 0x0, 0xffffffff, 0x0, 0x7fff7fff, 0x0, 0x0, 0x0
477 dspck_astio maq_s.w.phr, 0x0, 0x40000000, 0x0, 0x40000000, 0x0, 0xc000c000, 0x0, 0x0
479 writemsg "[63] Test maq_sa.w.phl"
480 dspck_astio maq_sa.w.phl, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0
481 dspck_astio maq_sa.w.phl, 0xffffffff, 0x80000000, 0xffffffff, 0x80000000, 0x0, 0x40004000, 0x0, 0x0
482 dspck_astio maq_sa.w.phl, 0x0, 0x7fffffff, 0x0, 0x7fffffff, 0x7fff7fff, 0x0, 0x0, 0x0
483 dspck_astio maq_sa.w.phl, 0xffffffff, 0x80000000, 0xffffffff, 0x80000000, 0x7fff7fff, 0x0, 0x0, 0x0
484 dspck_astio maq_sa.w.phl, 0x0, 0x40000000, 0x0, 0x40000000, 0x0, 0xc000c000, 0x0, 0x0
486 writemsg "[64] Test maq_sa.w.phr"
487 dspck_astio maq_sa.w.phr, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0
488 dspck_astio maq_sa.w.phr, 0xffffffff, 0x80000000, 0xffffffff, 0x80000000, 0x0, 0x40004000, 0x0, 0x0
489 dspck_astio maq_sa.w.phr, 0x0, 0x7fffffff, 0x0, 0x7fffffff, 0x7fff7fff, 0x0, 0x0, 0x0
490 dspck_astio maq_sa.w.phr, 0xffffffff, 0x80000000, 0xffffffff, 0x80000000, 0x7fff7fff, 0x0, 0x0, 0x0
491 dspck_astio maq_sa.w.phr, 0x0, 0x40000000, 0x0, 0x40000000, 0x0, 0xc000c000, 0x0, 0x0
493 writemsg "[65] Test bitrev"
494 dspck_dsio bitrev, 0x0, 0x0, 0x0, 0x0
495 dspck_dsio bitrev, 0x1, 0x8000, 0x0, 0x0
496 dspck_dsio bitrev, 0x8000, 0x1, 0x0, 0x0
497 dspck_dsio bitrev, 0xc0c0, 0x1010303, 0x0, 0x0
498 dspck_dsio bitrev, 0x1, 0xffff8000, 0x0, 0x0
500 writemsg "[66] Test insv"
501 dspck_tsi insv, 0xf0caf0f0, 0xf0f0f0f0, 0xa5a5a5a5, 0x311
502 dspck_tsi insv, 0x7fffffe, 0x0, 0x7ffffff, 0xd01
503 dspck_tsi insv, 0x3fff, 0x0, 0x3fff, 0x700
504 dspck_tsi insv, 0xf0f2f0f0, 0xf0f0f0f0, 0xa5a5a5a5, 0x28f
505 dspck_tsi insv, 0x3fc, 0x0, 0x3ff, 0x402
507 writemsg "[67] Test repl.qb"
508 dspck_dIio repl.qb, 0x0, 0, 0x0, 0x0
509 dspck_dIio repl.qb, 0x1010101, 1, 0x0, 0x0
510 dspck_dIio repl.qb, 0xffffffff, 255, 0x0, 0x0
511 dspck_dIio repl.qb, 0x7f7f7f7f, 127, 0x0, 0x0
512 dspck_dIio repl.qb, 0xfefefefe, 254, 0x0, 0x0
514 writemsg "[68] Test replv.qb"
515 dspck_dsio replv.qb, 0x0, 0x0, 0x0, 0x0
516 dspck_dsio replv.qb, 0x1010101, 0x1, 0x0, 0x0
517 dspck_dsio replv.qb, 0xffffffff, 0xff, 0x0, 0x0
518 dspck_dsio replv.qb, 0x7f7f7f7f, 0x37f, 0x0, 0x0
519 dspck_dsio replv.qb, 0xfefefefe, 0xfffffffe, 0x0, 0x0
521 writemsg "[69] Test repl.ph"
522 dspck_dIio repl.ph, 0x0, 0, 0x0, 0x0
523 dspck_dIio repl.ph, 0x10001, 1, 0x0, 0x0
524 dspck_dIio repl.ph, 0xffffffff, -1, 0x0, 0x0
525 dspck_dIio repl.ph, 0xff7fff7f, -129, 0x0, 0x0
526 dspck_dIio repl.ph, 0xfffefffe, -2, 0x0, 0x0
528 writemsg "[70] Test replv.ph"
529 dspck_dsio replv.ph, 0x0, 0x0, 0x0, 0x0
530 dspck_dsio replv.ph, 0x10001, 0x1, 0x0, 0x0
531 dspck_dsio replv.ph, 0xffffffff, 0x5555ffff, 0x0, 0x0
532 dspck_dsio replv.ph, 0x37f037f, 0x37f, 0x0, 0x0
533 dspck_dsio replv.ph, 0xfffefffe, 0xfffffffe, 0x0, 0x0
535 writemsg "[71] Test cmpu.eq.qb"
536 dspck_stio cmpu.eq.qb, 0x0, 0x0, 0x0, 0xf000000
537 dspck_stio cmpu.eq.qb, 0xffffffff, 0x0, 0x0, 0x0
538 dspck_stio cmpu.eq.qb, 0x0, 0xffffffff, 0x0, 0x0
539 dspck_stio cmpu.eq.qb, 0x10203, 0x4050607, 0x0, 0x0
540 dspck_stio cmpu.eq.qb, 0x8090a0b, 0xc0d0e0f, 0x0, 0x0
542 writemsg "[72] Test cmpu.lt.qb"
543 dspck_stio cmpu.lt.qb, 0x0, 0x0, 0x0, 0x0
544 dspck_stio cmpu.lt.qb, 0xffffffff, 0x0, 0x0, 0x0
545 dspck_stio cmpu.lt.qb, 0x0, 0xffffffff, 0x0, 0xf000000
546 dspck_stio cmpu.lt.qb, 0x10203, 0x4050607, 0x0, 0xf000000
547 dspck_stio cmpu.lt.qb, 0x8090a0b, 0xc0d0e0f, 0x0, 0xf000000
549 writemsg "[73] Test cmpu.le.qb"
550 dspck_stio cmpu.le.qb, 0x0, 0x0, 0x0, 0xf000000
551 dspck_stio cmpu.le.qb, 0xffffffff, 0x0, 0x0, 0x0
552 dspck_stio cmpu.le.qb, 0x0, 0xffffffff, 0x0, 0xf000000
553 dspck_stio cmpu.le.qb, 0x10203, 0x4050607, 0x0, 0xf000000
554 dspck_stio cmpu.le.qb, 0x8090a0b, 0xc0d0e0f, 0x0, 0xf000000
556 writemsg "[74] Test cmpgu.eq.qb"
557 dspck_dstio cmpgu.eq.qb, 0xf, 0x0, 0x0, 0x0, 0x0
558 dspck_dstio cmpgu.eq.qb, 0x0, 0xffffffff, 0x0, 0x0, 0x0
559 dspck_dstio cmpgu.eq.qb, 0x0, 0x0, 0xffffffff, 0x0, 0x0
560 dspck_dstio cmpgu.eq.qb, 0x0, 0x10203, 0x4050607, 0x0, 0x0
561 dspck_dstio cmpgu.eq.qb, 0x0, 0x8090a0b, 0xc0d0e0f, 0x0, 0x0
563 writemsg "[75] Test cmpgu.lt.qb"
564 dspck_dstio cmpgu.lt.qb, 0x0, 0x0, 0x0, 0x0, 0x0
565 dspck_dstio cmpgu.lt.qb, 0x0, 0xffffffff, 0x0, 0x0, 0x0
566 dspck_dstio cmpgu.lt.qb, 0xf, 0x0, 0xffffffff, 0x0, 0x0
567 dspck_dstio cmpgu.lt.qb, 0xf, 0x10203, 0x4050607, 0x0, 0x0
568 dspck_dstio cmpgu.lt.qb, 0xf, 0x8090a0b, 0xc0d0e0f, 0x0, 0x0
570 writemsg "[76] Test cmpgu.le.qb"
571 dspck_dstio cmpgu.le.qb, 0xf, 0x0, 0x0, 0x0, 0x0
572 dspck_dstio cmpgu.le.qb, 0x0, 0xffffffff, 0x0, 0x0, 0x0
573 dspck_dstio cmpgu.le.qb, 0xf, 0x0, 0xffffffff, 0x0, 0x0
574 dspck_dstio cmpgu.le.qb, 0xf, 0x10203, 0x4050607, 0x0, 0x0
575 dspck_dstio cmpgu.le.qb, 0xf, 0x8090a0b, 0xc0d0e0f, 0x0, 0x0
577 writemsg "[77] Test cmp.eq.ph"
578 dspck_stio cmp.eq.ph, 0x0, 0x0, 0x0, 0x3000000
579 dspck_stio cmp.eq.ph, 0x0, 0xffffffff, 0x0, 0x0
580 dspck_stio cmp.eq.ph, 0xffffffff, 0x0, 0x0, 0x0
581 dspck_stio cmp.eq.ph, 0x7fff7fff, 0xffffffff, 0x0, 0x0
582 dspck_stio cmp.eq.ph, 0x11112222, 0x33334444, 0x0, 0x0
584 writemsg "[78] Test cmp.lt.ph"
585 dspck_stio cmp.lt.ph, 0x0, 0x0, 0x0, 0x0
586 dspck_stio cmp.lt.ph, 0x0, 0xffffffff, 0x0, 0x0
587 dspck_stio cmp.lt.ph, 0xffffffff, 0x0, 0x0, 0x3000000
588 dspck_stio cmp.lt.ph, 0x7fff7fff, 0xffffffff, 0x0, 0x0
589 dspck_stio cmp.lt.ph, 0x11112222, 0x33334444, 0x0, 0x3000000
591 writemsg "[79] Test cmp.le.ph"
592 dspck_stio cmp.le.ph, 0x0, 0x0, 0x0, 0x3000000
593 dspck_stio cmp.le.ph, 0x0, 0xffffffff, 0x0, 0x0
594 dspck_stio cmp.le.ph, 0xffffffff, 0x0, 0x0, 0x3000000
595 dspck_stio cmp.le.ph, 0x7fff7fff, 0xffffffff, 0x0, 0x0
596 dspck_stio cmp.le.ph, 0x11112222, 0x33334444, 0x0, 0x3000000
598 writemsg "[80] Test pick.qb"
599 dspck_dsti pick.qb, 0x0, 0x0, 0x0, 0x0
600 dspck_dsti pick.qb, 0x0, 0xffffffff, 0x0, 0x0
601 dspck_dsti pick.qb, 0xffffffff, 0xffffffff, 0x0, 0xf000000
602 dspck_dsti pick.qb, 0xff, 0xffffffff, 0x0, 0x1000000
603 dspck_dsti pick.qb, 0xff00, 0xffffffff, 0x0, 0x2000000
605 writemsg "[81] Test pick.ph"
606 dspck_dsti pick.ph, 0x0, 0x0, 0x0, 0x0
607 dspck_dsti pick.ph, 0x0, 0xffffffff, 0x0, 0x0
608 dspck_dsti pick.ph, 0xffffffff, 0xffffffff, 0x0, 0x3000000
609 dspck_dsti pick.ph, 0xffff, 0xffffffff, 0x0, 0x1000000
610 dspck_dsti pick.ph, 0xffff0000, 0xffffffff, 0x0, 0x2000000
612 writemsg "[82] Test packrl.ph"
613 dspck_dstio packrl.ph, 0x00000000, 0x00000000, 0x00000000, 0x0, 0x0
614 dspck_dstio packrl.ph, 0x0000ffff, 0x00000000, 0xffff0000, 0x0, 0x0
615 dspck_dstio packrl.ph, 0x00000000, 0x00000000, 0x0000ffff, 0x0, 0x0
616 dspck_dstio packrl.ph, 0x00005555, 0x00000000, 0x5555aaaa, 0x0, 0x0
617 dspck_dstio packrl.ph, 0x0000aaaa, 0x00000000, 0xaaaa5555, 0x0, 0x0
619 writemsg "[83] Test extr.w"
620 dspck_atsaio extr.w, 0x0, 0x0 0x0, 0x0, 0x0, 0x0
621 dspck_atsaio extr.w, 0x7fffffff, 0xcbcdef01 0xffffffff, 0x1f, 0x0, 0x800000
622 dspck_atsaio extr.w, 0x3fffffff, 0x2bcdef01 0x7ffffffe, 0x1f, 0x0, 0x0
623 dspck_atsaio extr.w, 0xffffffff, 0xffffffff 0xffffffff, 0x0, 0x0, 0x0
624 dspck_atsaio extr.w, 0x0, 0xfffffffe 0x7fffffff, 0x1, 0x0, 0x0
626 writemsg "[84] Test extr_r.w"
627 dspck_atsaio extr_r.w, 0x0, 0x0 0x0, 0x0, 0x0, 0x0
628 dspck_atsaio extr_r.w, 0x7fffffff, 0xcbcdef01 0x0, 0x1f, 0x0, 0x800000
629 dspck_atsaio extr_r.w, 0x3fffffff, 0x2bcdef01 0x7ffffffe, 0x1f, 0x0, 0x0
630 dspck_atsaio extr_r.w, 0xffffffff, 0xffffffff 0xffffffff, 0x0, 0x0, 0x0
631 dspck_atsaio extr_r.w, 0x0, 0xfffffffe 0x7fffffff, 0x1, 0x0, 0x0
633 writemsg "[85] Test extr_rs.w"
634 dspck_atsaio extr_rs.w, 0x0, 0x0 0x0, 0x0, 0x0, 0x0
635 dspck_atsaio extr_rs.w, 0x7fffffff, 0xcbcdef01 0x7fffffff, 0x1f, 0x0, 0x800000
636 dspck_atsaio extr_rs.w, 0x3fffffff, 0x2bcdef01 0x7ffffffe, 0x1f, 0x0, 0x0
637 dspck_atsaio extr_rs.w, 0xffffffff, 0xffffffff 0xffffffff, 0x0, 0x0, 0x0
638 dspck_atsaio extr_rs.w, 0x0, 0xfffffffe 0x7fffffff, 0x1, 0x0, 0x0
640 writemsg "[86] Test extr_s.h"
641 dspck_atsaio extr_s.h, 0x0, 0x0 0x0, 0x0, 0x0, 0x0
642 dspck_atsaio extr_s.h, 0x7fffffff, 0xcbcdef01 0x7fff, 0x1f, 0x0, 0x800000
643 dspck_atsaio extr_s.h, 0x3fffffff, 0x2bcdef01 0x7fff, 0x1f, 0x0, 0x800000
644 dspck_atsaio extr_s.h, 0xffffffff, 0xffffffff 0xffffffff, 0x0, 0x0, 0x0
645 dspck_atsaio extr_s.h, 0x0, 0xfffffffe 0x7fff, 0x1, 0x0, 0x800000
647 writemsg "[87] Test extrv_s.h"
648 dspck_atsio extrv_s.h, 0x0, 0x0 0x0, 0x0, 0x0, 0x0
649 dspck_atsio extrv_s.h, 0x7fffffff, 0xcbcdef01 0x7fff, 0x1f, 0x0, 0x800000
650 dspck_atsio extrv_s.h, 0x3fffffff, 0x2bcdef01 0x7fff, 0x1f, 0x0, 0x800000
651 dspck_atsio extrv_s.h, 0xffffffff, 0xffffffff 0xffffffff, 0x0, 0x0, 0x0
652 dspck_atsio extrv_s.h, 0x0, 0xfffffffe 0x7fff, 0x1, 0x0, 0x800000
654 writemsg "[88] Test extrv.w"
655 dspck_atsio extrv.w, 0x0, 0x0 0x0, 0x0, 0x0, 0x0
656 dspck_atsio extrv.w, 0x7fffffff, 0xcbcdef01 0xffffffff, 0x1f, 0x0, 0x800000
657 dspck_atsio extrv.w, 0x3fffffff, 0x2bcdef01 0x7ffffffe, 0x1f, 0x0, 0x0
658 dspck_atsio extrv.w, 0xffffffff, 0xffffffff 0xffffffff, 0x0, 0x0, 0x0
659 dspck_atsio extrv.w, 0x0, 0xfffffffe 0x7fffffff, 0x1, 0x0, 0x0
661 writemsg "[89] Test extrv_r.w"
662 dspck_atsio extrv_r.w, 0x0, 0x0 0x0, 0x0, 0x0, 0x0
663 dspck_atsio extrv_r.w, 0x7fffffff, 0xcbcdef01 0x0, 0x1f, 0x0, 0x800000
664 dspck_atsio extrv_r.w, 0x3fffffff, 0x2bcdef01 0x7ffffffe, 0x1f, 0x0, 0x0
665 dspck_atsio extrv_r.w, 0xffffffff, 0xffffffff 0xffffffff, 0x0, 0x0, 0x0
666 dspck_atsio extrv_r.w, 0x0, 0xfffffffe 0x7fffffff, 0x1, 0x0, 0x0
668 writemsg "[90] Test extrv_rs.w"
669 dspck_atsio extrv_rs.w, 0x0, 0x0 0x0, 0x0, 0x0, 0x0
670 dspck_atsio extrv_rs.w, 0x7fffffff, 0xcbcdef01 0x7fffffff, 0x1f, 0x0, 0x800000
671 dspck_atsio extrv_rs.w, 0x3fffffff, 0x2bcdef01 0x7ffffffe, 0x1f, 0x0, 0x0
672 dspck_atsio extrv_rs.w, 0xffffffff, 0xffffffff 0xffffffff, 0x0, 0x0, 0x0
673 dspck_atsio extrv_rs.w, 0x0, 0xfffffffe 0x7fffffff, 0x1, 0x0, 0x0
675 writemsg "[91] Test extp"
676 dspck_tasiimom extp, 0x0, 0x0, 0x0, 0x0, 0x4000, 0x403f, 0x0, 0x403f
677 dspck_tasiimom extp, 0xffffffff, 0xffff7eff, 0x7e, 0x7, 0xf, 0x3f, 0x0, 0x4000
678 dspck_tasiim extp, 0xfffffff7, 0xefffffff, 0x7e, 0x7, 0x23, 0x3f
679 dspck_tasiim extp, 0xffff7eff, 0xffffffff, 0x7e, 0x7, 0x2f, 0x3f
681 writemsg "[92] Test extpv"
682 dspck_tasimom extpv, 0x0, 0x0, 0x0, 0x0, 0x4000, 0x403f, 0x0, 0x403f
683 dspck_tasimom extpv, 0xffffffff, 0xffff7eff, 0x7e, 0x7, 0xf, 0x3f, 0x0, 0x4000
684 dspck_tasim extpv, 0xfffffff7, 0xefffffff, 0x7e, 0x7, 0x23, 0x3f
685 dspck_tasim extpv, 0xffff7eff, 0xffffffff, 0x7e, 0x7, 0x2f, 0x3f
687 writemsg "[93] Test extpdp"
688 dspck_tasiimom extpdp, 0x0, 0x0, 0x0, 0x0, 0x4000, 0x403f, 0x3f, 0x403f
689 dspck_tasiimom extpdp, 0xffffffff, 0xffff7eff, 0x7e, 0x7, 0xf, 0x3f, 0x0, 0x4000
690 dspck_tasiim extpdp, 0xfffffff7, 0xefffffff, 0x7e, 0x7, 0x23, 0x3f
691 dspck_tasiim extpdp, 0xffff7eff, 0xffffffff, 0x7e, 0x7, 0x2f, 0x3f
693 writemsg "[94] Test extpdpv"
694 dspck_tasimom extpdpv, 0x0, 0x0, 0x0, 0x0, 0x4000, 0x403f, 0x3f, 0x403f
695 dspck_tasimom extpdpv, 0xffffffff, 0xffff7eff, 0x7e, 0x7, 0xf, 0x3f, 0x0, 0x4000
696 dspck_tasim extpdpv, 0xfffffff7, 0xefffffff, 0x7e, 0x7, 0x23, 0x3f
697 dspck_tasim extpdpv, 0xffff7eff, 0xffffffff, 0x7e, 0x7, 0x2f, 0x3f
699 writemsg "[95] Test shilo"
700 dspck_asaio shilo, 0x0, 0x0, 0x0, 0x0, 0, 0x0, 0x0
701 dspck_asaio shilo, 0x1, 0x80000000, 0x1, 0x80000000, 0, 0x0, 0x0
702 dspck_asaio shilo, 0x1, 0x80000000, 0x3, 0x0, -1, 0x0, 0x0
703 dspck_asaio shilo, 0x1, 0x80000000, 0x6, 0x0, -2, 0x0, 0x0
704 dspck_asaio shilo, 0x1, 0x80000000, 0x18, 0x0, -4, 0x0, 0x0
706 writemsg "[96] Test shilov"
707 dspck_asio shilov, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0
708 dspck_asio shilov, 0x1, 0x80000000, 0x1, 0x80000000, 0x0, 0x0, 0x0
709 dspck_asio shilov, 0x1, 0x80000000, 0x3, 0x0, 0xffffffff, 0x0, 0x0
710 dspck_asio shilov, 0x1, 0x80000000, 0x6, 0x0, 0xfffffffe, 0x0, 0x0
711 dspck_asio shilov, 0x1, 0x80000000, 0x18, 0x0, 0xfffffffc, 0x0, 0x0
713 writemsg "[97] Test mthlip"
714 dspck_saio mthlip, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x20
715 dspck_saio mthlip, 0x0, 0x1, 0x1, 0x2, 0x2, 0x8, 0x28
716 dspck_saio mthlip, 0xffffffff, 0xffff1234, 0xffff1234, 0xfffffffe, 0xfffffffe, 0x10, 0x30
717 dspck_saio mthlip, 0xdeadbeef, 0x1234, 0x1234, 0xbeefdead, 0xbeefdead, 0x18, 0x38
719 writemsg "[98] Test wrdsp"
720 dspck_wrdsp 0x0, 0x0, 0x0, 0x0
721 dspck_wrdsp 0x4000, 0x20, 0x0, 0x4000
722 dspck_wrdsp 0xffffffff, 0x3f, 0x0, 0x0fff7fbf
723 dspck_wrdsp 0x3f, 0x1, 0x0, 0x3f
724 dspck_wrdsp 0x1f80, 0x2, 0x0, 0x1f80
726 writemsg "[99] Test rddsp"
727 dspck_rddsp 0x0, 0x0, 0x0
728 dspck_rddsp 0x0, 0x0, 0xffffffff
729 dspck_rddsp 0x3f, 0x1, 0xffffffff
730 dspck_rddsp 0x1f80, 0x2, 0x0fff7fbf
731 dspck_rddsp 0x2000, 0x4, 0x0fff7fbf
733 writemsg "[100] Test lbux"
745 dspck_load lbux, 0x12, 0x0, mydata
746 dspck_load lbux, 0x34, 0x1, mydata
747 dspck_load lbux, 0x56, 0x2, mydata
748 dspck_load lbux, 0x78, 0x3, mydata
749 dspck_load lbux, 0x9a, 0x4, mydata
750 dspck_load lbux, 0xbc, 0x5, mydata
751 dspck_load lbux, 0xde, 0x6, mydata
752 dspck_load lbux, 0xf0, 0x7, mydata
754 writemsg "[101] Test lhx"
762 dspck_load lhx, 0x1234, 0x0, myhdata
763 dspck_load lhx, 0x5678, 0x2, myhdata
764 dspck_load lhx, 0xffff9abc, 0x4, myhdata
765 dspck_load lhx, 0xffffdef0, 0x6, myhdata
767 writemsg "[102] Test lwx"
775 dspck_load lwx, 0x12345678, 0x0, mywdata
776 dspck_load lwx, 0x9abcdef0, 0x4, mywdata
777 dspck_load lwx, 0x13579abc, 0x8, mywdata
778 dspck_load lwx, 0xffff0001, 0xc, mywdata
780 writemsg "[103] Test bposge32"
781 dspck_bposge32 0x0, 0
782 dspck_bposge32 0x1f, 0
783 dspck_bposge32 0x20, 1
784 dspck_bposge32 0x3f, 1