1 // Simulator definition for the micromips DSP ASE.
2 // Copyright (C) 2005-2018 Free Software Foundation, Inc.
3 // Contributed by Imagination Technologies, Ltd.
4 // Written by Andrew Bennett <andrew.bennett@imgtec.com>
6 // This file is part of the MIPS sim.
8 // This program is free software; you can redistribute it and/or modify
9 // it under the terms of the GNU General Public License as published by
10 // the Free Software Foundation; either version 3 of the License, or
11 // (at your option) any later version.
13 // This program is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 // GNU General Public License for more details.
18 // You should have received a copy of the GNU General Public License
19 // along with this program. If not, see <http://www.gnu.org/licenses/>.
21 000000,5.RT,5.RS,0001000100,111100:POOL32A:32::ABSQ_S.PH
22 "absq_s.ph r<RT>, r<RS>"
25 do_ph_s_absq (SD_, RT, RS);
28 000000,5.RT,5.RS,0000000100,111100:POOL32A:32::ABSQ_S.QB
29 "absq_s.qb r<RT>, r<RS>"
32 do_qb_s_absq (SD_, RT, RS);
35 000000,5.RT,5.RS,0010000100,111100:POOL32A:32::ABSQ_S.W
36 "absq_s.w r<RT>, r<RS>"
39 do_w_s_absq (SD_, RT, RS);
42 000000,5.RT,5.RS,5.RD,00000,001101:POOL32A:32::ADDQ.PH
43 "addq.ph r<RD>, r<RS>, r<RT>"
46 do_ph_op (SD_, RD, RS, RT, 0, 0);
49 000000,5.RT,5.RS,5.RD,10000,001101:POOL32A:32::ADDQ_S.PH
50 "addq_s.ph r<RD>, r<RS>, r<RT>"
53 do_ph_op (SD_, RD, RS, RT, 0, 1);
56 000000,5.RT,5.RS,5.RD,01100,000101:POOL32A:32::ADDQ_S.W
57 "addq_s.w r<RD>, r<RS>, r<RT>"
60 do_w_op (SD_, RD, RS, RT, 0);
63 000000,5.RT,5.RS,5.RD,00001,001101:POOL32A:32::ADDQH.PH
64 "addqh.ph r<RD>, r<RS>, r<RT>"
67 do_qh_ph_op (SD_, RD, RS, RT, 0, 0);
70 000000,5.RT,5.RS,5.RD,10001,001101:POOL32A:32::ADDQH_R.PH
71 "addqh_r.ph r<RD>, r<RS>, r<RT>"
74 do_qh_ph_op (SD_, RD, RS, RT, 0, 1);
77 000000,5.RT,5.RS,5.RD,00010,001101:POOL32A:32::ADDQH.W
78 "addqh.w r<RD>, r<RS>, r<RT>"
81 do_qh_w_op (SD_, RD, RS, RT, 0, 0);
84 000000,5.RT,5.RS,5.RD,10010,001101:POOL32A:32::ADDQH_R.W
85 "addqh_r.w r<RD>, r<RS>, r<RT>"
88 do_qh_w_op (SD_, RD, RS, RT, 0, 1);
91 000000,5.RT,5.RS,5.RD,01110,000101:POOL32A:32::ADDSC
92 "addsc r<RD>, r<RS>, r<RT>"
95 do_addsc (SD_, RD, RS, RT);
98 000000,5.RT,5.RS,5.RD,00100,001101:POOL32A:32::ADDU.PH
99 "addu.ph r<RD>, r<RS>, r<RT>"
102 do_u_ph_op (SD_, RD, RS, RT, 0, 0);
105 000000,5.RT,5.RS,5.RD,10100,001101:POOL32A:32::ADDU_S.PH
106 "addu_s.ph r<RD>, r<RS>, r<RT>"
109 do_u_ph_op (SD_, RD, RS, RT, 0, 1);
112 000000,5.RT,5.RS,5.RD,00011,001101:POOL32A:32::ADDU.QB
113 "addu.qb r<RD>, r<RS>, r<RT>"
116 do_qb_op (SD_, RD, RS, RT, 0, 0);
119 000000,5.RT,5.RS,5.RD,10011,001101:POOL32A:32::ADDU_S.QB
120 "addu_s.qb r<RD>, r<RS>, r<RT>"
123 do_qb_op (SD_, RD, RS, RT, 0, 1);
126 000000,5.RT,5.RS,5.RD,01111,000101:POOL32A:32::ADDWC
127 "addwc r<RD>, r<RS>, r<RT>"
130 do_addwc (SD_, RD, RS, RT);
133 000000,5.RT,5.RS,5.RD,00101,001101:POOL32A:32::ADDUH.QB
134 "adduh.qb r<RD>, r<RS>, r<RT>"
137 do_uh_qb_op (SD_, RD, RS, RT, 0, 0);
140 000000,5.RT,5.RS,5.RD,10101,001101:POOL32A:32::ADDUH_R.QB
141 "adduh_r.qb r<RD>, r<RS>, r<RT>"
144 do_uh_qb_op (SD_, RD, RS, RT, 0, 1);
147 000000,5.RT,5.RS,5.SA,01000,010101:POOL32A:32::APPEND
148 "append r<RT>, r<RS>, <SA>"
151 do_append (SD_, RT, RS, SA);
154 000000,5.RT,5.RS,2.BP,00100010,111100:POOL32A:32::BALIGN
155 "balign r<RT>, r<RS>, <BP>"
158 do_balign (SD_, RT, RS, BP);
161 000000,5.RT,5.RS,0011000100,111100:POOL32A:32::BITREV
162 "bitrev r<RT>, r<RS>"
165 do_bitrev (SD_, RT, RS);
168 010000,1101100000,16.IMMEDIATE:POOL32I:32::BPOSGE32
169 "bposge32 <IMMEDIATE>"
172 unsigned32 pos = (DSPCR >> DSPCR_POS_SHIFT) & DSPCR_POS_MASK;
174 NIA = delayslot_micromips (SD_, NIA + (EXTEND12 (IMMEDIATE) << 1), NIA,
175 MICROMIPS_DELAYSLOT_SIZE_ANY);
178 000000,5.RT,5.RS,0000000000,000101:POOL32A:32::CMP.EQ.PH
179 "cmp.eq.ph r<RS>, r<RT>"
182 do_ph_cmpu (SD_, RS, RT, 0);
185 000000,5.RT,5.RS,0000000001,000101:POOL32A:32::CMP.LT.PH
186 "cmp.lt.ph r<RS>, r<RT>"
189 do_ph_cmpu (SD_, RS, RT, 1);
192 000000,5.RT,5.RS,0000000010,000101:POOL32A:32::CMP.LE.PH
193 "cmp.le.ph r<RS>, r<RT>"
196 do_ph_cmpu (SD_, RS, RT, 2);
199 000000,5.RT,5.RS,5.RD,00110,000101:POOL32A:32::CMPGDU.EQ.QB
200 "cmpgdu.eq.qb r<RD>, r<RS>, r<RT>"
203 do_qb_cmpgdu (SD_, RD, RS, RT, 0);
206 000000,5.RT,5.RS,5.RD,00111,000101:POOL32A:32::CMPGDU.LT.QB
207 "cmpgdu.lt.qb r<RD>, r<RS>, r<RT>"
210 do_qb_cmpgdu (SD_, RD, RS, RT, 1);
213 000000,5.RT,5.RS,5.RD,01000,000101:POOL32A:32::CMPGDU.LE.QB
214 "cmpgdu.le.qb r<RD>, r<RS>, r<RT>"
217 do_qb_cmpgdu (SD_, RD, RS, RT, 2);
220 000000,5.RT,5.RS,5.RD,00011,000101:POOL32A:32::CMPGU.EQ.QB
221 "cmpgu.eq.qb r<RD>, r<RS>, r<RT>"
224 do_qb_cmpgu (SD_, RD, RS, RT, 0);
227 000000,5.RT,5.RS,5.RD,00100,000101:POOL32A:32::CMPGU.LT.QB
228 "cmpgu.lt.qb r<RD>, r<RS>, r<RT>"
231 do_qb_cmpgu (SD_, RD, RS, RT, 1);
234 000000,5.RT,5.RS,5.RD,00101,000101:POOL32A:32::CMPGU.LE.QB
235 "cmpgu.le.qb r<RD>, r<RS>, r<RT>"
238 do_qb_cmpgu (SD_, RD, RS, RT, 2);
241 000000,5.RT,5.RS,0000001001,000101:POOL32A:32::CMPU.EQ.QB
242 "cmpu.eq.qb r<RS>, r<RT>"
245 do_qb_cmpu (SD_, RS, RT, 0);
248 000000,5.RT,5.RS,0000001010,000101:POOL32A:32::CMPU.LT.QB
249 "cmpu.lt.qb r<RS>, r<RT>"
252 do_qb_cmpu (SD_, RS, RT, 1);
255 000000,5.RT,5.RS,0000001011,000101:POOL32A:32::CMPU.LE.QB
256 "cmpu.le.qb r<RS>, r<RT>"
259 do_qb_cmpu (SD_, RS, RT, 2);
262 000000,5.RT,5.RS,2.AC,00000010,111100:POOL32A:32::DPA.W.PH
263 "dpa.w.ph ac<AC>, r<RS>, r<RT>"
266 do_w_ph_dot_product (SD_, AC, RS, RT, 0);
269 000000,5.RT,5.RS,2.AC,00001010,111100:POOL32A:32::DPAQ_S.W.PH
270 "dpaq_s.w.ph ac<AC>, r<RS>, r<RT>"
273 do_ph_dot_product (SD_, AC, RS, RT, 0);
276 000000,5.RT,5.RS,2.AC,01001010,111100:POOL32A:32::DPAQ_SA.L.W
277 "dpaq_sa.l.w ac<AC>, r<RS>, r<RT>"
280 do_w_dot_product (SD_, AC, RS, RT, 0);
283 000000,5.RT,5.RS,2.AC,10001010,111100:POOL32A:32::DPAQX_S.W.PH
284 "dpaqx_s.w.ph ac<AC>, r<RS>, r<RT>"
287 do_qx_w_ph_dot_product (SD_, AC, RS, RT, 0, 0);
290 000000,5.RT,5.RS,2.AC,11001010,111100:POOL32A:32::DPAQX_SA.W.PH
291 "dpaqx_sa.w.ph ac<AC>, r<RS>, r<RT>"
294 do_qx_w_ph_dot_product (SD_, AC, RS, RT, 0, 1);
297 000000,5.RT,5.RS,2.AC,10000010,111100:POOL32A:32::DPAU.H.QBL
298 "dpau.h.qbl ac<AC>, r<RS>, r<RT>"
301 do_qb_dot_product (SD_, AC, RS, RT, 0, 0);
304 000000,5.RT,5.RS,2.AC,11000010,111100:POOL32A:32::DPAU.H.QBR
305 "dpau.h.qbr ac<AC>, r<RS>, r<RT>"
308 do_qb_dot_product (SD_, AC, RS, RT, 0, 1);
311 000000,5.RT,5.RS,2.AC,01000010,111100:POOL32A:32::DPAX.W.PH
312 "dpax.w.ph ac<AC>, r<RS>, r<RT>"
315 do_x_w_ph_dot_product (SD_, AC, RS, RT, 0);
318 000000,5.RT,5.RS,2.AC,00010010,111100:POOL32A:32::DPS.W.PH
319 "dps.w.ph ac<AC>, r<RS>, r<RT>"
322 do_w_ph_dot_product (SD_, AC, RS, RT, 1);
325 000000,5.RT,5.RS,2.AC,00011010,111100:POOL32A:32::DPSQ_S.W.PH
326 "dpsq_s.w.ph ac<AC>, r<RS>, r<RT>"
329 do_ph_dot_product (SD_, AC, RS, RT, 1);
332 000000,5.RT,5.RS,2.AC,01011010,111100:POOL32A:32::DPSQ_SA.L.W
333 "dpsq_sa.l.w ac<AC>, r<RS>, r<RT>"
336 do_w_dot_product (SD_, AC, RS, RT, 1);
339 000000,5.RT,5.RS,2.AC,10011010,111100:POOL32A:32::DPSQX_S.W.PH
340 "dpsqx_s.w.ph ac<AC>, r<RS>, r<RT>"
343 do_qx_w_ph_dot_product (SD_, AC, RS, RT, 1, 0);
346 000000,5.RT,5.RS,2.AC,11011010,111100:POOL32A:32::DPSQX_SA.W.PH
347 "dpsqx_sa.w.ph ac<AC>, r<RS>, r<RT>"
350 do_qx_w_ph_dot_product (SD_, AC, RS, RT, 1, 1);
353 000000,5.RT,5.RS,2.AC,10010010,111100:POOL32A:32::DPSU.H.QBL
354 "dpsu.h.qbl ac<AC>, r<RS>, r<RT>"
357 do_qb_dot_product (SD_, AC, RS, RT, 1, 0);
360 000000,5.RT,5.RS,2.AC,11010010,111100:POOL32A:32::DPSU.H.QBR
361 "dpsu.h.qbr ac<AC>, r<RS>, r<RT>"
364 do_qb_dot_product (SD_, AC, RS, RT, 1, 1);
367 000000,5.RT,5.RS,2.AC,01010010,111100:POOL32A:32::DPSX.W.PH
368 "dpsx.w.ph ac<AC>, r<RS>, r<RT>"
371 do_x_w_ph_dot_product (SD_, AC, RS, RT, 1);
374 000000,5.RT,5.SIZE,2.AC,10011001,111100:POOL32A:32::EXTP
375 "extp r<RT>, ac<AC>, <SIZE>"
378 do_extp (SD_, RT, AC, SIZE, 0);
381 000000,5.RT,5.SIZE,2.AC,11011001,111100:POOL32A:32::EXTPDP
382 "extpdp r<RT>, ac<AC>, <SIZE>"
385 do_extp (SD_, RT, AC, SIZE, 1);
388 000000,5.RT,5.RS,2.AC,11100010,111100:POOL32A:32::EXTPDPV
389 "extpdpv r<RT>, ac<AC>, r<RS>"
392 do_extpv (SD_, RT, AC, RS, 1);
395 000000,5.RT,5.RS,2.AC,10100010,111100:POOL32A:32::EXTPV
396 "extpv r<RT>, ac<AC>, r<RS>"
399 do_extpv (SD_, RT, AC, RS, 0);
402 000000,5.RT,5.SHIFT,2.AC,00111001,111100:POOL32A:32::EXTR.W
403 "extr.w r<RT>, ac<AC>, <SHIFT>"
406 do_w_extr (SD_, RT, AC, SHIFT, 0);
409 000000,5.RT,5.SHIFT,2.AC,01111001,111100:POOL32A:32::EXTR_R.W
410 "extr_r.w r<RT>, ac<AC>, <SHIFT>"
413 do_w_extr (SD_, RT, AC, SHIFT, 1);
416 000000,5.RT,5.SHIFT,2.AC,10111001,111100:POOL32A:32::EXTR_RS.W
417 "extr_rs.w r<RT>, ac<AC>, <SHIFT>"
420 do_w_extr (SD_, RT, AC, SHIFT, 2);
423 000000,5.RT,5.SHIFT,2.AC,11111001,111100:POOL32A:32::EXTR_S.H
424 "extr_s.h r<RT>, ac<AC>, <SHIFT>"
427 do_h_extr (SD_, RT, AC, SHIFT);
430 000000,5.RT,5.RS,2.AC,00111010,111100:POOL32A:32::EXTRV.W
431 "extrv.w r<RT>, ac<AC>, r<RS>"
434 do_extrv (SD_, RT, AC, RS, 0);
437 000000,5.RT,5.RS,2.AC,01111010,111100:POOL32A:32::EXTRV_R.W
438 "extrv_r.w r<RT>, ac<AC>, r<RS>"
441 do_extrv (SD_, RT, AC, RS, 1);
444 000000,5.RT,5.RS,2.AC,10111010,111100:POOL32A:32::EXTRV_RS.W
445 "extrv_rs.w r<RT>, ac<AC>, r<RS>"
448 do_extrv (SD_, RT, AC, RS, 2);
451 000000,5.RT,5.RS,2.AC,11111010,111100:POOL32A:32::EXTRV_S.H
452 "extrv_s.h r<RT>, ac<AC>, r<RS>"
455 do_extrv_s_h (SD_, RT, AC, RS);
458 000000,5.RT,5.RS,0100000100,111100:POOL32A:32::INSV
462 do_insv (SD_, RT, RS);
465 000000,5.INDEX,5.BASE,5.RD,01000,100101:POOL32A:32::LBUX
466 "lbux r<RD>, r<INDEX>(r<BASE>)"
469 do_lxx (SD_, RD, BASE, INDEX, 0);
472 000000,5.INDEX,5.BASE,5.RD,00101,100101:POOL32A:32::LHX
473 "lhx r<RD>, r<INDEX>(r<BASE>)"
476 do_lxx (SD_, RD, BASE, INDEX, 1);
479 000000,5.INDEX,5.BASE,5.RD,00110,100101:POOL32A:32::LWX
480 "lwx r<RD>, r<INDEX>(r<BASE>)"
483 do_lxx (SD_, RD, BASE, INDEX, 2);
486 000000,5.RT,5.RS,2.AC,00101010,111100:POOL32A:32::MADD_DSP
487 "madd ac<AC>, r<RS>, r<RT>"
490 do_dsp_madd (SD_, AC, RS, RT);
493 000000,5.RT,5.RS,2.AC,01101010,111100:POOL32A:32::MADDU_DSP
494 "maddu ac<AC>, r<RS>, r<RT>"
497 do_dsp_maddu (SD_, AC, RS, RT);
500 000000,5.RT,5.RS,2.AC,01101001,111100:POOL32A:32::MAQ_S.W.PHL
501 "maq_s.w.phl ac<AC>, r<RS>, r<RT>"
504 do_ph_maq (SD_, AC, RS, RT, 0, 0);
507 000000,5.RT,5.RS,2.AC,11101001,111100:POOL32A:32::MAQ_SA.W.PHL
508 "maq_sa.w.phl ac<AC>, r<RS>, r<RT>"
511 do_ph_maq (SD_, AC, RS, RT, 1, 0);
514 000000,5.RT,5.RS,2.AC,00101001,111100:POOL32A:32::MAQ_S.W.PHR
515 "maq_s.w.phr ac<AC>, r<RS>, r<RT>"
518 do_ph_maq (SD_, AC, RS, RT, 0, 1);
521 000000,5.RT,5.RS,2.AC,10101001,111100:POOL32A:32::MAQ_SA.W.PHR
522 "maq_sa.w.phr ac<AC>, r<RS>, r<RT>"
525 do_ph_maq (SD_, AC, RS, RT, 1, 1);
528 000000,00000,5.RS,2.AC,00000001,111100:POOL32A:32::MFHI_DSP
532 do_dsp_mfhi (SD_, AC, RS);
535 000000,00000,5.RS,2.AC,01000001,111100:POOL32A:32::MFLO_DSP
539 do_dsp_mflo (SD_, AC, RS);
542 000000,5.RT,5.RS,5.RD,01010,010101:POOL32A:32::MODSUB
543 "modsub r<RD>, r<RS>, r<RT>"
546 do_modsub (SD_, RD, RS, RT);
549 000000,5.RT,5.RS,2.AC,10101010,111100:POOL32A:32::MSUB_DSP
550 "msub ac<AC>, r<RS>, r<RT>"
553 do_dsp_msub (SD_, AC, RS, RT);
556 000000,5.RT,5.RS,2.AC,11101010,111100:POOL32A:32::MSUBU_DSP
557 "msubu ac<AC>, r<RS>, r<RT>"
560 do_dsp_msubu (SD_, AC, RS, RT);
563 000000,00000,5.RS,2.AC,10000001,111100:POOL32A:32::MTHI_DSP
567 do_dsp_mthi (SD_, AC, RS);
570 000000,00000,5.RS,2.AC,00001001,111100:POOL32A:32::MTHLIP
571 "mthlip r<RS>, ac<AC>"
574 do_mthlip (SD_, RS, AC);
577 000000,00000,5.RS,2.AC,11000001,111100:POOL32A:32::MTLO_DSP
581 do_dsp_mtlo (SD_, AC, RS);
584 000000,5.RT,5.RS,5.RD,00000,101101:POOL32A:32::MUL.PH
585 "mul.ph r<RD>, r<RS>, r<RT>"
588 do_ph_op (SD_, RD, RS, RT, 2, 0);
591 000000,5.RT,5.RS,5.RD,10000,101101:POOL32A:32::MUL_S.PH
592 "mul_s.ph r<RD>, r<RS>, r<RT>"
595 do_ph_op (SD_, RD, RS, RT, 2, 1);
598 000000,5.RT,5.RS,5.RD,00000,100101:POOL32A:32::MULEQ_S.W.PHL
599 "muleq_s.w.phl r<RD>, r<RS>, r<RT>"
602 do_ph_muleq (SD_, RD, RS, RT, 0);
605 000000,5.RT,5.RS,5.RD,00001,100101:POOL32A:32::MULEQ_S.W.PHR
606 "muleq_s.w.phr r<RD>, r<RS>, r<RT>"
609 do_ph_muleq (SD_, RD, RS, RT, 1);
612 000000,5.RT,5.RS,5.RD,00010,010101:POOL32A:32::MULEU_S.PH.QBL
613 "muleu_s.ph.qbl r<RD>, r<RS>, r<RT>"
616 do_qb_muleu (SD_, RD, RS, RT, 0);
619 000000,5.RT,5.RS,5.RD,00011,010101:POOL32A:32::MULEU_S.PH.QBR
620 "muleu_s.ph.qbr r<RD>, r<RS>, r<RT>"
623 do_qb_muleu (SD_, RD, RS, RT, 1);
626 000000,5.RT,5.RS,5.RD,00100,010101:POOL32A:32::MULQ_RS.PH
627 "mulq_rs.ph r<RD>, r<RS>, r<RT>"
630 do_ph_mulq (SD_, RD, RS, RT, 1);
633 000000,5.RT,5.RS,5.RD,00110,010101:POOL32A:32::MULQ_RS.W
634 "mulq_rs.w r<RD>, r<RS>, r<RT>"
637 do_w_mulq (SD_, RD, RS, RT, 1);
640 000000,5.RT,5.RS,5.RD,00101,010101:POOL32A:32::MULQ_S.PH
641 "mulq_s.ph r<RD>, r<RS>, r<RT>"
644 do_ph_mulq (SD_, RD, RS, RT, 0);
647 000000,5.RT,5.RS,5.RD,00111,010101:POOL32A:32::MULQ_S.W
648 "mulq_s.w r<RD>, r<RS>, r<RT>"
651 do_w_mulq (SD_, RD, RS, RT, 0);
654 000000,5.RT,5.RS,2.AC,10110010,111100:POOL32A:32::MULSA.W.PH
655 "mulsa.w.ph ac<AC>, r<RS>, r<RT>"
658 do_ph_w_mulsa (SD_, AC, RS, RT);
661 000000,5.RT,5.RS,2.AC,11110010,111100:POOL32A:32::MULSAQ_S.W.PH
662 "mulsaq_s.w.ph ac<AC>, r<RS>, r<RT>"
665 do_mulsaq_s_w_ph (SD_, AC, RS, RT);
668 000000,5.RT,5.RS,2.AC,00110010,111100:POOL32A:32::MULT_DSP
669 "mult ac<AC>, r<RS>, r<RT>"
672 do_dsp_mult (SD_, AC, RS, RT);
675 000000,5.RT,5.RS,2.AC,01110010,111100:POOL32A:32::MULTU_DSP
676 "multu ac<AC>, r<RS>, r<RT>"
679 do_dsp_multu (SD_, AC, RS, RT);
682 000000,5.RT,5.RS,5.RD,00110,101101:POOL32A:32::PACKRL.PH
683 "packrl.ph r<RD>, r<RS>, r<RT>"
686 do_ph_packrl (SD_, RD, RS, RT);
689 000000,5.RT,5.RS,5.RD,01000,101101:POOL32A:32::PICK.PH
690 "pick.ph r<RD>, r<RS>, r<RT>"
693 do_ph_pick (SD_, RD, RS, RT);
696 000000,5.RT,5.RS,5.RD,00111,101101:POOL32A:32::PICK.QB
697 "pick.qb r<RD>, r<RS>, r<RT>"
700 do_qb_pick (SD_, RD, RS, RT);
703 000000,5.RT,5.RS,0101000100,111100:POOL32A:32::PRECEQ.W.PHL
704 "preceq.w.phl r<RT>, r<RS>"
707 do_w_preceq (SD_, RT, RS, 0);
710 000000,5.RT,5.RS,0110000100,111100:POOL32A:32::PRECEQ.W.PHR
711 "preceq.w.phr r<RT>, r<RS>"
714 do_w_preceq (SD_, RT, RS, 1);
717 000000,5.RT,5.RS,0111000100,111100:POOL32A:32::PRECEQU.PH.QBL
718 "precequ.ph.qbl r<RT>, r<RS>"
721 do_qb_ph_precequ (SD_, RT, RS, 2);
724 000000,5.RT,5.RS,0111001100,111100:POOL32A:32::PRECEQU.PH.QBLA
725 "precequ.ph.qbla r<RT>, r<RS>"
728 do_qb_ph_precequ (SD_, RT, RS, 3);
731 000000,5.RT,5.RS,1001000100,111100:POOL32A:32::PRECEQU.PH.QBR
732 "precequ.ph.qbr r<RT>, r<RS>"
735 do_qb_ph_precequ (SD_, RT, RS, 0);
738 000000,5.RT,5.RS,1001001100,111100:POOL32A:32::PRECEQU.PH.QBRA
739 "precequ.ph.qbra r<RT>, r<RS>"
742 do_qb_ph_precequ (SD_, RT, RS, 1);
745 000000,5.RT,5.RS,1011000100,111100:POOL32A:32::PRECEU.PH.QBL
746 "preceu.ph.qbl r<RT>, r<RS>"
749 do_qb_ph_preceu (SD_, RT, RS, 2);
752 000000,5.RT,5.RS,1011001100,111100:POOL32A:32::PRECEU.PH.QBLA
753 "preceu.ph.qbla r<RT>, r<RS>"
756 do_qb_ph_preceu (SD_, RT, RS, 3);
759 000000,5.RT,5.RS,1101000100,111100:POOL32A:32::PRECEU.PH.QBR
760 "preceu.ph.qbr r<RT>, r<RS>"
763 do_qb_ph_preceu (SD_, RT, RS, 0);
766 000000,5.RT,5.RS,1101001100,111100:POOL32A:32::PRECEU.PH.QBRA
767 "preceu.ph.qbra r<RT>, r<RS>"
770 do_qb_ph_preceu (SD_, RT, RS, 1);
773 000000,5.RT,5.RS,5.RD,00001,101101:POOL32A:32::PRECR.QB.PH
774 "precr.qb.ph r<RD>, r<RS>, r<RT>"
777 do_ph_qb_precr (SD_, RD, RS, RT);
780 000000,5.RT,5.RS,5.SA,01111,001101:POOL32A:32::PRECR_SRA.PH.W
781 "precr_sra.ph.w r<RT>, r<RS>, <SA>"
784 do_precr_sra (SD_, RT, RS, SA, 0);
787 000000,5.RT,5.RS,5.SA,11111,001101:POOL32A:32::PRECR_SRA_R.PH.W
788 "precr_sra_r.ph.w r<RT>, r<RS>, <SA>"
791 do_precr_sra (SD_, RT, RS, SA, 1);
794 000000,5.RT,5.RS,5.RD,00011,101101:POOL32A:32::PRECRQ.PH.W
795 "precrq.ph.w r<RD>, r<RS>, r<RT>"
798 do_w_ph_precrq (SD_, RD, RS, RT);
801 000000,5.RT,5.RS,5.RD,00010,101101:POOL32A:32::PRECRQ.QB.PH
802 "precrq.qb.ph r<RD>, r<RS>, r<RT>"
805 do_ph_qb_precrq (SD_, RD, RS, RT, 0);
808 000000,5.RT,5.RS,5.RD,00101,101101:POOL32A:32::PRECRQU_S.QB.PH
809 "precrqu_s.qb.ph r<RD>, r<RS>, r<RT>"
812 do_ph_qb_precrq (SD_, RD, RS, RT, 1);
815 000000,5.RT,5.RS,5.RD,00100,101101:POOL32A:32::PRECRQ_RS.PH.W
816 "precrq_rs.ph.w r<RD>, r<RS>, r<RT>"
819 do_w_ph_rs_precrq (SD_, RD, RS, RT);
822 000000,5.RT,5.RS,5.SA,01001,010101:POOL32A:32::PREPEND
823 "prepend r<RT>, r<RS>, <SA>"
826 do_prepend (SD_, RT, RS, SA);
829 000000,5.RT,5.RS,1111000100,111100:POOL32A:32::RADDU.W.QB
830 "raddu.w.qb r<RT>, r<RS>"
833 do_qb_w_raddu (SD_, RT, RS);
836 000000,5.RT,7.CONTROL_MASK,00011001,111100:POOL32A:32::RDDSP
837 "rddsp r<RT>":CONTROL_MASK == 1111111111
838 "rddsp r<RT>, <CONTROL_MASK>"
841 do_rddsp (SD_, RT, CONTROL_MASK);
844 000000,10.IMMEDIATE,5.RD,00000,111101:POOL32A:32::REPL.PH
845 "repl.ph r<RD>, <IMMEDIATE>"
848 do_repl (SD_, RD, IMMEDIATE, 2);
851 000000,5.RT,8.IMMEDIATE,0010111,111100:POOL32A:32::REPL.QB
852 "repl.qb r<RT>, <IMMEDIATE>"
855 do_repl (SD_, RT, IMMEDIATE, 0);
858 000000,5.RT,5.RS,0000001100,111100:POOL32A:32::REPLV.PH
859 "replv.ph r<RT>, r<RS>"
862 do_repl (SD_, RT, RS, 3);
865 000000,5.RT,5.RS,0001001100,111100:POOL32A:32::REPLV.QB
866 "replv.qb r<RT>, r<RS>"
869 do_repl (SD_, RT, RS, 1);
872 000000,0000,6.IMMEDIATE,2.AC,00000000,011101:POOL32A:32::SHILO
873 "shilo ac<AC>, <IMMEDIATE>"
876 do_shilo (SD_, AC, IMMEDIATE);
879 000000,00000,5.RS,2.AC,01001001,111100:POOL32A:32::SHILOV
880 "shilov ac<AC>, r<RS>"
883 do_shilov (SD_, AC, RS);
886 000000,5.RT,5.RS,4.SHIFT,001110,110101:POOL32A:32::SHLL.PH
887 "shll.ph r<RT>, r<RS>, <SHIFT>"
890 do_ph_shift (SD_, RT, RS, SHIFT, 0, 0);
893 000000,5.RT,5.RS,4.SHIFT,101110,110101:POOL32A:32::SHLL_S.PH
894 "shll_s.ph r<RT>, r<RS>, <SHIFT>"
897 do_ph_shift (SD_, RT, RS, SHIFT, 0, 1);
900 000000,5.RT,5.RS,3.SHIFT,0100001,111100:POOL32A:32::SHLL.QB
901 "shll.qb r<RT>, r<RS>, <SHIFT>"
904 do_qb_shift (SD_, RT, RS, SHIFT, 0);
907 000000,5.RT,5.RS,5.RD,01110,001101:POOL32A:32::SHLLV.PH
908 "shllv.ph r<RD>, r<RT>, r<RS>"
911 do_ph_shl (SD_, RD, RT, RS, 0, 0);
914 000000,5.RT,5.RS,5.RD,11110,001101:POOL32A:32::SHLLV_S.PH
915 "shllv_s.ph r<RD>, r<RD>, r<RS>"
918 do_ph_shl (SD_, RD, RT, RS, 0, 1);
921 000000,5.RT,5.RS,5.RD,01110,010101:POOL32A:32::SHLLV.QB
922 "shllv.qb r<RD>, r<RT>, r<RS>"
925 do_qb_shl (SD_, RD, RT, RS, 0);
928 000000,5.RT,5.RS,5.RD,01111,010101:POOL32A:32::SHLLV_S.W
929 "shllv_s.w r<RD>, r<RT>, r<RS>"
932 do_w_s_shllv (SD_, RD, RT, RS);
935 000000,5.RT,5.RS,5.SHIFT,01111,110101:POOL32A:32::SHLL_S.W
936 "shll_s.w r<RT>, r<RS>, <SHIFT>"
939 do_w_shll (SD_, RT, RS, SHIFT);
942 000000,5.RT,5.RS,3.SHIFT,0000111,111100:POOL32A:32::SHRA.QB
943 "shra.qb r<RT>, r<RS>, <SHIFT>"
946 do_qb_shra (SD_, RT, RS, SHIFT, 0);
949 000000,5.RT,5.RS,3.SHIFT,1000111,111100:POOL32A:32::SHRA_R.QB
950 "shra_r.qb r<RT>, r<RS>, <SHIFT>"
953 do_qb_shra (SD_, RT, RS, SHIFT, 1);
956 000000,5.RT,5.RS,4.SHIFT,001100,110101:POOL32A:32::SHRA.PH
957 "shra.ph r<RT>, r<RS>, <SHIFT>"
960 do_ph_shift (SD_, RT, RS, SHIFT, 1, 0);
963 000000,5.RT,5.RS,4.SHIFT,011100,110101:POOL32A:32::SHRA_R.PH
964 "shra_r.ph r<RT>, r<RS>, <SHIFT>"
967 do_ph_shift (SD_, RT, RS, SHIFT, 1, 1);
970 000000,5.RT,5.RS,5.RD,00110,001101:POOL32A:32::SHRAV.PH
971 "shrav.ph r<RD>, r<RT>, r<RS>"
974 do_ph_shl (SD_, RD, RT, RS, 1, 0);
977 000000,5.RT,5.RS,5.RD,10110,001101:POOL32A:32::SHRAV_R.PH
978 "shrav_r.ph r<RD>, r<RT>, r<RS>"
981 do_ph_shl (SD_, RD, RT, RS, 1, 1);
984 000000,5.RT,5.RS,5.RD,00111,001101:POOL32A:32::SHRAV.QB
985 "shrav.qb r<RD>, r<RT>, r<RS>"
988 do_qb_shrav (SD_, RD, RT, RS, 0);
991 000000,5.RT,5.RS,5.RD,10111,001101:POOL32A:32::SHRAV_R.QB
992 "shrav_r.qb r<RD>, r<RT>, r<RS>"
995 do_qb_shrav (SD_, RD, RT, RS, 1);
998 000000,5.RT,5.RS,5.RD,01011,010101:POOL32A:32::SHRAV_R.W
999 "shrav_r.w r<RD>, r<RT>, r<RS>"
1002 do_w_r_shrav (SD_, RD, RT, RS);
1005 000000,5.RT,5.RS,5.SHIFT,01011,110101:POOL32A:32::SHRA_R.W
1006 "shra_r.w r<RT>, r<RS>, <SHIFT>"
1009 do_w_shra (SD_, RT, RS, SHIFT);
1012 000000,5.RT,5.RS,4.SHIFT,001111,111100:POOL32A:32::SHRL.PH
1013 "shrl.ph r<RT>, r<RS>, <SHIFT>"
1016 do_ph_shrl (SD_, RT, RS, SHIFT);
1019 000000,5.RT,5.RS,3.SHIFT,1100001,111100:POOL32A:32::SHRL.QB
1020 "shrl.qb r<RT>, r<RS>, <SHIFT>"
1023 do_qb_shift (SD_, RT, RS, SHIFT, 1);
1026 000000,5.RT,5.RS,5.RD,01100,010101:POOL32A:32::SHRLV.PH
1027 "shrlv.ph r<RD>, r<RT>, r<RS>"
1030 do_ph_shrlv (SD_, RD, RT, RS);
1033 000000,5.RT,5.RS,5.RD,01101,010101:POOL32A:32::SHRLV.QB
1034 "shrlv.qb r<RD>, r<RT>, r<RS>"
1037 do_qb_shl (SD_, RD, RT, RS, 1);
1040 000000,5.RT,5.RS,5.RD,01000,001101:POOL32A:32::SUBQ.PH
1041 "subq.ph r<RD>, r<RS>, r<RT>"
1044 do_ph_op (SD_, RD, RS, RT, 1, 0);
1047 000000,5.RT,5.RS,5.RD,11000,001101:POOL32A:32::SUBQ_S.PH
1048 "subq_s.ph r<RD>, r<RS>, r<RT>"
1051 do_ph_op (SD_, RD, RS, RT, 1, 1);
1054 000000,5.RT,5.RS,5.RD,01101,000101:POOL32A:32::SUBQ_S.W
1055 "subq_s.w r<RD>, r<RS>, r<RT>"
1058 do_w_op (SD_, RD, RS, RT, 1);
1061 000000,5.RT,5.RS,5.RD,01001,001101:POOL32A:32::SUBQH.PH
1062 "subqh.ph r<RD>, r<RS>, r<RT>"
1065 do_qh_ph_op (SD_, RD, RS, RT, 1, 0);
1068 000000,5.RT,5.RS,5.RD,11001,001101:POOL32A:32::SUBQH_R.PH
1069 "subqh_r.ph r<RD>, r<RS>, r<RT>"
1072 do_qh_ph_op (SD_, RD, RS, RT, 1, 1);
1075 000000,5.RT,5.RS,5.RD,01010,001101:POOL32A:32::SUBQH.W
1076 "subqh.w r<RD>, r<RS>, r<RT>"
1079 do_qh_w_op (SD_, RD, RS, RT, 1, 0);
1082 000000,5.RT,5.RS,5.RD,11010,001101:POOL32A:32::SUBQH_R.W
1083 "subqh_r.w r<RD>, r<RS>, r<RT>"
1086 do_qh_w_op (SD_, RD, RS, RT, 1, 1);
1089 000000,5.RT,5.RS,5.RD,01100,001101:POOL32A:32::SUBU.PH
1090 "subu.ph r<RD>, r<RS>, r<RT>"
1093 do_u_ph_op (SD_, RD, RS, RT, 1, 0);
1096 000000,5.RT,5.RS,5.RD,11100,001101:POOL32A:32::SUBU_S.PH
1097 "subu_s.ph r<RD>, r<RS>, r<RT>"
1100 do_u_ph_op (SD_, RD, RS, RT, 1, 1);
1103 000000,5.RT,5.RS,5.RD,01011,001101:POOL32A:32::SUBU.QB
1104 "subu.qb r<RD>, r<RS>, r<RT>"
1107 do_qb_op (SD_, RD, RS, RT, 1, 0);
1110 000000,5.RT,5.RS,5.RD,11011,001101:POOL32A:32::SUBU_S.QB
1111 "subu_s.qb r<RD>, r<RS>, r<RT>"
1114 do_qb_op (SD_, RD, RS, RT, 1, 1);
1117 000000,5.RT,5.RS,5.RD,01101,001101:POOL32A:32::SUBUH.QB
1118 "subuh.qb r<RD>, r<RS>, r<RT>"
1121 do_uh_qb_op (SD_, RD, RS, RT, 1, 0);
1124 000000,5.RT,5.RS,5.RD,11101,001101:POOL32A:32::SUBUH_R.QB
1125 "subuh_r.qb r<RD>, r<RS>, r<RT>"
1128 do_uh_qb_op (SD_, RD, RS, RT, 1, 1);
1131 000000,5.RT,7.CONTROL_MASK,01011001,111100:POOL32A:32::WRDSP
1132 "wrdsp r<RT>":CONTROL_MASK == 1111111111
1133 "wrdsp r<RT>, <CONTROL_MASK>"
1136 do_wrdsp (SD_, RT, CONTROL_MASK);