1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22#include "disas/bfd.h"
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80#define OP_MASK_OP 0x3f
81#define OP_SH_OP 26
82#define OP_MASK_RS 0x1f
83#define OP_SH_RS 21
84#define OP_MASK_FR 0x1f
85#define OP_SH_FR 21
86#define OP_MASK_FMT 0x1f
87#define OP_SH_FMT 21
88#define OP_MASK_BCC 0x7
89#define OP_SH_BCC 18
90#define OP_MASK_CODE 0x3ff
91#define OP_SH_CODE 16
92#define OP_MASK_CODE2 0x3ff
93#define OP_SH_CODE2 6
94#define OP_MASK_RT 0x1f
95#define OP_SH_RT 16
96#define OP_MASK_FT 0x1f
97#define OP_SH_FT 16
98#define OP_MASK_CACHE 0x1f
99#define OP_SH_CACHE 16
100#define OP_MASK_RD 0x1f
101#define OP_SH_RD 11
102#define OP_MASK_FS 0x1f
103#define OP_SH_FS 11
104#define OP_MASK_PREFX 0x1f
105#define OP_SH_PREFX 11
106#define OP_MASK_CCC 0x7
107#define OP_SH_CCC 8
108#define OP_MASK_CODE20 0xfffff
109#define OP_SH_CODE20 6
110#define OP_MASK_SHAMT 0x1f
111#define OP_SH_SHAMT 6
112#define OP_MASK_FD 0x1f
113#define OP_SH_FD 6
114#define OP_MASK_TARGET 0x3ffffff
115#define OP_SH_TARGET 0
116#define OP_MASK_COPZ 0x1ffffff
117#define OP_SH_COPZ 0
118#define OP_MASK_IMMEDIATE 0xffff
119#define OP_SH_IMMEDIATE 0
120#define OP_MASK_DELTA 0xffff
121#define OP_SH_DELTA 0
122#define OP_MASK_DELTA_R6 0x1ff
123#define OP_SH_DELTA_R6 7
124#define OP_MASK_FUNCT 0x3f
125#define OP_SH_FUNCT 0
126#define OP_MASK_SPEC 0x3f
127#define OP_SH_SPEC 0
128#define OP_SH_LOCC 8
129#define OP_SH_HICC 18
130#define OP_MASK_CC 0x7
131#define OP_SH_COP1NORM 25
132#define OP_MASK_COP1NORM 0x1
133#define OP_SH_COP1SPEC 21
134#define OP_MASK_COP1SPEC 0xf
135#define OP_MASK_COP1SCLR 0x4
136#define OP_MASK_COP1CMP 0x3
137#define OP_SH_COP1CMP 4
138#define OP_SH_FORMAT 21
139#define OP_MASK_FORMAT 0x7
140#define OP_SH_TRUE 16
141#define OP_MASK_TRUE 0x1
142#define OP_SH_GE 17
143#define OP_MASK_GE 0x01
144#define OP_SH_UNSIGNED 16
145#define OP_MASK_UNSIGNED 0x1
146#define OP_SH_HINT 16
147#define OP_MASK_HINT 0x1f
148#define OP_SH_MMI 0
149#define OP_MASK_MMI 0x3f
150#define OP_SH_MMISUB 6
151#define OP_MASK_MMISUB 0x1f
152#define OP_MASK_PERFREG 0x1f
153#define OP_SH_PERFREG 1
154#define OP_SH_SEL 0
155#define OP_MASK_SEL 0x7
156#define OP_SH_CODE19 6
157#define OP_MASK_CODE19 0x7ffff
158#define OP_SH_ALN 21
159#define OP_MASK_ALN 0x7
160#define OP_SH_VSEL 21
161#define OP_MASK_VSEL 0x1f
162#define OP_MASK_VECBYTE 0x7
163
164#define OP_SH_VECBYTE 22
165#define OP_MASK_VECALIGN 0x7
166#define OP_SH_VECALIGN 21
167#define OP_MASK_INSMSB 0x1f
168#define OP_SH_INSMSB 11
169#define OP_MASK_EXTMSBD 0x1f
170#define OP_SH_EXTMSBD 11
171
172#define OP_OP_COP0 0x10
173#define OP_OP_COP1 0x11
174#define OP_OP_COP2 0x12
175#define OP_OP_COP3 0x13
176#define OP_OP_LWC1 0x31
177#define OP_OP_LWC2 0x32
178#define OP_OP_LWC3 0x33
179#define OP_OP_LDC1 0x35
180#define OP_OP_LDC2 0x36
181#define OP_OP_LDC3 0x37
182#define OP_OP_SWC1 0x39
183#define OP_OP_SWC2 0x3a
184#define OP_OP_SWC3 0x3b
185#define OP_OP_SDC1 0x3d
186#define OP_OP_SDC2 0x3e
187#define OP_OP_SDC3 0x3f
188
189
190#define OP_SH_DSPACC 11
191#define OP_MASK_DSPACC 0x3
192#define OP_SH_DSPACC_S 21
193#define OP_MASK_DSPACC_S 0x3
194#define OP_SH_DSPSFT 20
195#define OP_MASK_DSPSFT 0x3f
196#define OP_SH_DSPSFT_7 19
197#define OP_MASK_DSPSFT_7 0x7f
198#define OP_SH_SA3 21
199#define OP_MASK_SA3 0x7
200#define OP_SH_SA4 21
201#define OP_MASK_SA4 0xf
202#define OP_SH_IMM8 16
203#define OP_MASK_IMM8 0xff
204#define OP_SH_IMM10 16
205#define OP_MASK_IMM10 0x3ff
206#define OP_SH_WRDSP 11
207#define OP_MASK_WRDSP 0x3f
208#define OP_SH_RDDSP 16
209#define OP_MASK_RDDSP 0x3f
210#define OP_SH_BP 11
211#define OP_MASK_BP 0x3
212
213
214#define OP_SH_MT_U 5
215#define OP_MASK_MT_U 0x1
216#define OP_SH_MT_H 4
217#define OP_MASK_MT_H 0x1
218#define OP_SH_MTACC_T 18
219#define OP_MASK_MTACC_T 0x3
220#define OP_SH_MTACC_D 13
221#define OP_MASK_MTACC_D 0x3
222
223
224#define OP_MASK_1BIT 0x1
225#define OP_SH_1BIT 16
226#define OP_MASK_2BIT 0x3
227#define OP_SH_2BIT 16
228#define OP_MASK_3BIT 0x7
229#define OP_SH_3BIT 16
230#define OP_MASK_4BIT 0xf
231#define OP_SH_4BIT 16
232#define OP_MASK_5BIT 0x1f
233#define OP_SH_5BIT 16
234#define OP_MASK_10BIT 0x3ff
235#define OP_SH_10BIT 11
236#define OP_MASK_MSACR11 0x1f
237#define OP_SH_MSACR11 11
238#define OP_MASK_MSACR6 0x1f
239#define OP_SH_MSACR6 6
240#define OP_MASK_GPR 0x1f
241#define OP_SH_GPR 6
242#define OP_MASK_1_TO_4 0x3
243#define OP_SH_1_TO_4 6
244
245#define OP_OP_COP0 0x10
246#define OP_OP_COP1 0x11
247#define OP_OP_COP2 0x12
248#define OP_OP_COP3 0x13
249#define OP_OP_LWC1 0x31
250#define OP_OP_LWC2 0x32
251#define OP_OP_LWC3 0x33
252#define OP_OP_LDC1 0x35
253#define OP_OP_LDC2 0x36
254#define OP_OP_LDC3 0x37
255#define OP_OP_SWC1 0x39
256#define OP_OP_SWC2 0x3a
257#define OP_OP_SWC3 0x3b
258#define OP_OP_SDC1 0x3d
259#define OP_OP_SDC2 0x3e
260#define OP_OP_SDC3 0x3f
261
262
263#define MDMX_FMTSEL_IMM_QH 0x1d
264#define MDMX_FMTSEL_IMM_OB 0x1e
265#define MDMX_FMTSEL_VEC_QH 0x15
266#define MDMX_FMTSEL_VEC_OB 0x16
267
268
269#define OP_SH_UDI1 6
270#define OP_MASK_UDI1 0x1f
271#define OP_SH_UDI2 6
272#define OP_MASK_UDI2 0x3ff
273#define OP_SH_UDI3 6
274#define OP_MASK_UDI3 0x7fff
275#define OP_SH_UDI4 6
276#define OP_MASK_UDI4 0xfffff
277
278
279struct mips_opcode
280{
281
282 const char *name;
283
284 const char *args;
285
286
287
288 unsigned long match;
289
290
291
292
293
294 unsigned long mask;
295
296
297
298 unsigned long pinfo;
299
300 unsigned long pinfo2;
301
302
303 unsigned long membership;
304};
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461#define INSN_WRITE_GPR_D 0x00000001
462
463#define INSN_WRITE_GPR_T 0x00000002
464
465#define INSN_WRITE_GPR_31 0x00000004
466
467#define INSN_WRITE_FPR_D 0x00000008
468
469#define INSN_WRITE_FPR_S 0x00000010
470
471#define INSN_WRITE_FPR_T 0x00000020
472
473#define INSN_READ_GPR_S 0x00000040
474
475#define INSN_READ_GPR_T 0x00000080
476
477#define INSN_READ_FPR_S 0x00000100
478
479#define INSN_READ_FPR_T 0x00000200
480
481#define INSN_READ_FPR_R 0x00000400
482
483#define INSN_WRITE_COND_CODE 0x00000800
484
485#define INSN_READ_COND_CODE 0x00001000
486
487#define INSN_TLB 0x00002000
488
489#define INSN_COP 0x00004000
490
491#define INSN_LOAD_MEMORY_DELAY 0x00008000
492
493#define INSN_LOAD_COPROC_DELAY 0x00010000
494
495#define INSN_UNCOND_BRANCH_DELAY 0x00020000
496
497#define INSN_COND_BRANCH_DELAY 0x00040000
498
499#define INSN_COND_BRANCH_LIKELY 0x00080000
500
501#define INSN_COPROC_MOVE_DELAY 0x00100000
502
503#define INSN_COPROC_MEMORY_DELAY 0x00200000
504
505#define INSN_READ_HI 0x00400000
506
507#define INSN_READ_LO 0x00800000
508
509#define INSN_WRITE_HI 0x01000000
510
511#define INSN_WRITE_LO 0x02000000
512
513#define INSN_TRAP 0x04000000
514
515#define INSN_STORE_MEMORY 0x08000000
516
517#define FP_S 0x10000000
518
519#define FP_D 0x20000000
520
521#define INSN_MULT 0x40000000
522
523#define INSN_SYNC 0x80000000
524
525
526
527
528
529#define INSN2_ALIAS 0x00000001
530
531#define INSN2_READ_MDMX_ACC 0x00000002
532
533#define INSN2_WRITE_MDMX_ACC 0x00000004
534
535
536#define INSN2_READ_GPR_D 0x00000200
537
538
539
540#define INSN_MACRO 0xffffffff
541
542
543
544
545
546
547#define INSN_ISA_MASK 0x00000fff
548#define INSN_ISA1 0x00000001
549#define INSN_ISA2 0x00000002
550#define INSN_ISA3 0x00000004
551#define INSN_ISA4 0x00000008
552#define INSN_ISA5 0x00000010
553#define INSN_ISA32 0x00000020
554#define INSN_ISA64 0x00000040
555#define INSN_ISA32R2 0x00000080
556#define INSN_ISA64R2 0x00000100
557#define INSN_ISA32R6 0x00000200
558#define INSN_ISA64R6 0x00000400
559
560
561#define INSN_ASE_MASK 0x0000f000
562
563
564#define INSN_DSP 0x00001000
565#define INSN_DSP64 0x00002000
566
567#define INSN_MIPS16 0x00004000
568
569#define INSN_MIPS3D 0x00008000
570
571
572
573
574#define INSN_4650 0x00010000
575
576#define INSN_4010 0x00020000
577
578#define INSN_4100 0x00040000
579
580#define INSN_3900 0x00080000
581
582#define INSN_10000 0x00100000
583
584#define INSN_SB1 0x00200000
585
586#define INSN_4111 0x00400000
587
588#define INSN_4120 0x00800000
589
590#define INSN_5400 0x01000000
591
592#define INSN_5500 0x02000000
593
594
595#define INSN_MDMX 0x00000000
596
597
598#define INSN_MSA 0x04000000
599#define INSN_MSA64 0x04000000
600
601
602#define INSN_MT 0x08000000
603
604#define INSN_SMARTMIPS 0x10000000
605
606#define INSN_DSPR2 0x20000000
607
608
609#define INSN_LOONGSON_2E 0x40000000
610
611#define INSN_LOONGSON_2F 0x80000000
612
613
614
615#define ISA_UNKNOWN 0
616#define ISA_MIPS1 (INSN_ISA1)
617#define ISA_MIPS2 (ISA_MIPS1 | INSN_ISA2)
618#define ISA_MIPS3 (ISA_MIPS2 | INSN_ISA3)
619#define ISA_MIPS4 (ISA_MIPS3 | INSN_ISA4)
620#define ISA_MIPS5 (ISA_MIPS4 | INSN_ISA5)
621
622#define ISA_MIPS32 (ISA_MIPS2 | INSN_ISA32)
623#define ISA_MIPS64 (ISA_MIPS5 | INSN_ISA32 | INSN_ISA64)
624
625#define ISA_MIPS32R2 (ISA_MIPS32 | INSN_ISA32R2)
626#define ISA_MIPS64R2 (ISA_MIPS64 | INSN_ISA32R2 | INSN_ISA64R2)
627
628#define ISA_MIPS32R6 (ISA_MIPS32R2 | INSN_ISA32R6)
629#define ISA_MIPS64R6 (ISA_MIPS64R2 | INSN_ISA32R6 | INSN_ISA64R6)
630
631
632
633#define CPU_UNKNOWN 0
634#define CPU_R3000 3000
635#define CPU_R3900 3900
636#define CPU_R4000 4000
637#define CPU_R4010 4010
638#define CPU_VR4100 4100
639#define CPU_R4111 4111
640#define CPU_VR4120 4120
641#define CPU_R4300 4300
642#define CPU_R4400 4400
643#define CPU_R4600 4600
644#define CPU_R4650 4650
645#define CPU_R5000 5000
646#define CPU_VR5400 5400
647#define CPU_VR5500 5500
648#define CPU_R6000 6000
649#define CPU_RM7000 7000
650#define CPU_R8000 8000
651#define CPU_R10000 10000
652#define CPU_R12000 12000
653#define CPU_MIPS16 16
654#define CPU_MIPS32 32
655#define CPU_MIPS32R2 33
656#define CPU_MIPS5 5
657#define CPU_MIPS64 64
658#define CPU_MIPS64R2 65
659#define CPU_SB1 12310201
660
661
662
663
664
665
666#if 0
667#define OPCODE_IS_MEMBER(insn, isa, cpu) \
668 (((insn)->membership & isa) != 0 \
669 || (cpu == CPU_R4650 && ((insn)->membership & INSN_4650) != 0) \
670 || (cpu == CPU_RM7000 && ((insn)->membership & INSN_4650) != 0) \
671 || (cpu == CPU_RM9000 && ((insn)->membership & INSN_4650) != 0) \
672 || (cpu == CPU_R4010 && ((insn)->membership & INSN_4010) != 0) \
673 || (cpu == CPU_VR4100 && ((insn)->membership & INSN_4100) != 0) \
674 || (cpu == CPU_R3900 && ((insn)->membership & INSN_3900) != 0) \
675 || ((cpu == CPU_R10000 || cpu == CPU_R12000) \
676 && ((insn)->membership & INSN_10000) != 0) \
677 || (cpu == CPU_SB1 && ((insn)->membership & INSN_SB1) != 0) \
678 || (cpu == CPU_R4111 && ((insn)->membership & INSN_4111) != 0) \
679 || (cpu == CPU_VR4120 && ((insn)->membership & INSN_4120) != 0) \
680 || (cpu == CPU_VR5400 && ((insn)->membership & INSN_5400) != 0) \
681 || (cpu == CPU_VR5500 && ((insn)->membership & INSN_5500) != 0) \
682 || 0)
683#else
684#define OPCODE_IS_MEMBER(insn, isa, cpu) \
685 (1 != 0)
686#endif
687
688
689
690
691
692
693
694
695
696enum
697{
698 M_ABS,
699 M_ADD_I,
700 M_ADDU_I,
701 M_AND_I,
702 M_BALIGN,
703 M_BEQ,
704 M_BEQ_I,
705 M_BEQL_I,
706 M_BGE,
707 M_BGEL,
708 M_BGE_I,
709 M_BGEL_I,
710 M_BGEU,
711 M_BGEUL,
712 M_BGEU_I,
713 M_BGEUL_I,
714 M_BGT,
715 M_BGTL,
716 M_BGT_I,
717 M_BGTL_I,
718 M_BGTU,
719 M_BGTUL,
720 M_BGTU_I,
721 M_BGTUL_I,
722 M_BLE,
723 M_BLEL,
724 M_BLE_I,
725 M_BLEL_I,
726 M_BLEU,
727 M_BLEUL,
728 M_BLEU_I,
729 M_BLEUL_I,
730 M_BLT,
731 M_BLTL,
732 M_BLT_I,
733 M_BLTL_I,
734 M_BLTU,
735 M_BLTUL,
736 M_BLTU_I,
737 M_BLTUL_I,
738 M_BNE,
739 M_BNE_I,
740 M_BNEL_I,
741 M_CACHE_AB,
742 M_DABS,
743 M_DADD_I,
744 M_DADDU_I,
745 M_DDIV_3,
746 M_DDIV_3I,
747 M_DDIVU_3,
748 M_DDIVU_3I,
749 M_DEXT,
750 M_DINS,
751 M_DIV_3,
752 M_DIV_3I,
753 M_DIVU_3,
754 M_DIVU_3I,
755 M_DLA_AB,
756 M_DLCA_AB,
757 M_DLI,
758 M_DMUL,
759 M_DMUL_I,
760 M_DMULO,
761 M_DMULO_I,
762 M_DMULOU,
763 M_DMULOU_I,
764 M_DREM_3,
765 M_DREM_3I,
766 M_DREMU_3,
767 M_DREMU_3I,
768 M_DSUB_I,
769 M_DSUBU_I,
770 M_DSUBU_I_2,
771 M_J_A,
772 M_JAL_1,
773 M_JAL_2,
774 M_JAL_A,
775 M_L_DOB,
776 M_L_DAB,
777 M_LA_AB,
778 M_LB_A,
779 M_LB_AB,
780 M_LBU_A,
781 M_LBU_AB,
782 M_LCA_AB,
783 M_LD_A,
784 M_LD_OB,
785 M_LD_AB,
786 M_LDC1_AB,
787 M_LDC2_AB,
788 M_LDC3_AB,
789 M_LDL_AB,
790 M_LDR_AB,
791 M_LH_A,
792 M_LH_AB,
793 M_LHU_A,
794 M_LHU_AB,
795 M_LI,
796 M_LI_D,
797 M_LI_DD,
798 M_LI_S,
799 M_LI_SS,
800 M_LL_AB,
801 M_LLD_AB,
802 M_LS_A,
803 M_LW_A,
804 M_LW_AB,
805 M_LWC0_A,
806 M_LWC0_AB,
807 M_LWC1_A,
808 M_LWC1_AB,
809 M_LWC2_A,
810 M_LWC2_AB,
811 M_LWC3_A,
812 M_LWC3_AB,
813 M_LWL_A,
814 M_LWL_AB,
815 M_LWR_A,
816 M_LWR_AB,
817 M_LWU_AB,
818 M_MOVE,
819 M_MUL,
820 M_MUL_I,
821 M_MULO,
822 M_MULO_I,
823 M_MULOU,
824 M_MULOU_I,
825 M_NOR_I,
826 M_OR_I,
827 M_REM_3,
828 M_REM_3I,
829 M_REMU_3,
830 M_REMU_3I,
831 M_DROL,
832 M_ROL,
833 M_DROL_I,
834 M_ROL_I,
835 M_DROR,
836 M_ROR,
837 M_DROR_I,
838 M_ROR_I,
839 M_S_DA,
840 M_S_DOB,
841 M_S_DAB,
842 M_S_S,
843 M_SC_AB,
844 M_SCD_AB,
845 M_SD_A,
846 M_SD_OB,
847 M_SD_AB,
848 M_SDC1_AB,
849 M_SDC2_AB,
850 M_SDC3_AB,
851 M_SDL_AB,
852 M_SDR_AB,
853 M_SEQ,
854 M_SEQ_I,
855 M_SGE,
856 M_SGE_I,
857 M_SGEU,
858 M_SGEU_I,
859 M_SGT,
860 M_SGT_I,
861 M_SGTU,
862 M_SGTU_I,
863 M_SLE,
864 M_SLE_I,
865 M_SLEU,
866 M_SLEU_I,
867 M_SLT_I,
868 M_SLTU_I,
869 M_SNE,
870 M_SNE_I,
871 M_SB_A,
872 M_SB_AB,
873 M_SH_A,
874 M_SH_AB,
875 M_SW_A,
876 M_SW_AB,
877 M_SWC0_A,
878 M_SWC0_AB,
879 M_SWC1_A,
880 M_SWC1_AB,
881 M_SWC2_A,
882 M_SWC2_AB,
883 M_SWC3_A,
884 M_SWC3_AB,
885 M_SWL_A,
886 M_SWL_AB,
887 M_SWR_A,
888 M_SWR_AB,
889 M_SUB_I,
890 M_SUBU_I,
891 M_SUBU_I_2,
892 M_TEQ_I,
893 M_TGE_I,
894 M_TGEU_I,
895 M_TLT_I,
896 M_TLTU_I,
897 M_TNE_I,
898 M_TRUNCWD,
899 M_TRUNCWS,
900 M_ULD,
901 M_ULD_A,
902 M_ULH,
903 M_ULH_A,
904 M_ULHU,
905 M_ULHU_A,
906 M_ULW,
907 M_ULW_A,
908 M_USH,
909 M_USH_A,
910 M_USW,
911 M_USW_A,
912 M_USD,
913 M_USD_A,
914 M_XOR_I,
915 M_COP0,
916 M_COP1,
917 M_COP2,
918 M_COP3,
919 M_NUM_MACROS
920};
921
922
923
924
925
926
927
928
929
930
931
932
933extern const struct mips_opcode mips_builtin_opcodes[];
934extern const int bfd_mips_num_builtin_opcodes;
935extern struct mips_opcode *mips_opcodes;
936extern int bfd_mips_num_opcodes;
937#define NUMOPCODES bfd_mips_num_opcodes
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973#define MIPS16OP_MASK_OP 0x1f
974#define MIPS16OP_SH_OP 11
975#define MIPS16OP_MASK_IMM11 0x7ff
976#define MIPS16OP_SH_IMM11 0
977#define MIPS16OP_MASK_RX 0x7
978#define MIPS16OP_SH_RX 8
979#define MIPS16OP_MASK_IMM8 0xff
980#define MIPS16OP_SH_IMM8 0
981#define MIPS16OP_MASK_RY 0x7
982#define MIPS16OP_SH_RY 5
983#define MIPS16OP_MASK_IMM5 0x1f
984#define MIPS16OP_SH_IMM5 0
985#define MIPS16OP_MASK_RZ 0x7
986#define MIPS16OP_SH_RZ 2
987#define MIPS16OP_MASK_IMM4 0xf
988#define MIPS16OP_SH_IMM4 0
989#define MIPS16OP_MASK_REGR32 0x1f
990#define MIPS16OP_SH_REGR32 0
991#define MIPS16OP_MASK_REG32R 0x1f
992#define MIPS16OP_SH_REG32R 3
993#define MIPS16OP_EXTRACT_REG32R(i) ((((i) >> 5) & 7) | ((i) & 0x18))
994#define MIPS16OP_MASK_MOVE32Z 0x7
995#define MIPS16OP_SH_MOVE32Z 0
996#define MIPS16OP_MASK_IMM6 0x3f
997#define MIPS16OP_SH_IMM6 5
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050#define MIPS16_ALL_ARGS 0xe
1051#define MIPS16_ALL_STATICS 0xb
1052
1053
1054
1055
1056
1057#define MIPS16_INSN_WRITE_X 0x00000001
1058
1059#define MIPS16_INSN_WRITE_Y 0x00000002
1060
1061#define MIPS16_INSN_WRITE_Z 0x00000004
1062
1063#define MIPS16_INSN_WRITE_T 0x00000008
1064
1065#define MIPS16_INSN_WRITE_SP 0x00000010
1066
1067#define MIPS16_INSN_WRITE_31 0x00000020
1068
1069#define MIPS16_INSN_WRITE_GPR_Y 0x00000040
1070
1071#define MIPS16_INSN_READ_X 0x00000080
1072
1073#define MIPS16_INSN_READ_Y 0x00000100
1074
1075#define MIPS16_INSN_READ_Z 0x00000200
1076
1077#define MIPS16_INSN_READ_T 0x00000400
1078
1079#define MIPS16_INSN_READ_SP 0x00000800
1080
1081#define MIPS16_INSN_READ_31 0x00001000
1082
1083#define MIPS16_INSN_READ_PC 0x00002000
1084
1085#define MIPS16_INSN_READ_GPR_X 0x00004000
1086
1087#define MIPS16_INSN_BRANCH 0x00010000
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102extern const struct mips_opcode mips16_opcodes[];
1103extern const int bfd_mips16_num_opcodes;
1104
1105
1106
1107#define LDD INSN_LOAD_MEMORY_DELAY
1108#define LCD INSN_LOAD_COPROC_DELAY
1109#define UBD INSN_UNCOND_BRANCH_DELAY
1110#define CBD INSN_COND_BRANCH_DELAY
1111#define COD INSN_COPROC_MOVE_DELAY
1112#define CLD INSN_COPROC_MEMORY_DELAY
1113#define CBL INSN_COND_BRANCH_LIKELY
1114#define TRAP INSN_TRAP
1115#define SM INSN_STORE_MEMORY
1116
1117#define WR_d INSN_WRITE_GPR_D
1118#define WR_t INSN_WRITE_GPR_T
1119#define WR_31 INSN_WRITE_GPR_31
1120#define WR_D INSN_WRITE_FPR_D
1121#define WR_T INSN_WRITE_FPR_T
1122#define WR_S INSN_WRITE_FPR_S
1123#define RD_s INSN_READ_GPR_S
1124#define RD_b INSN_READ_GPR_S
1125#define RD_t INSN_READ_GPR_T
1126#define RD_S INSN_READ_FPR_S
1127#define RD_T INSN_READ_FPR_T
1128#define RD_R INSN_READ_FPR_R
1129#define WR_CC INSN_WRITE_COND_CODE
1130#define RD_CC INSN_READ_COND_CODE
1131#define RD_C0 INSN_COP
1132#define RD_C1 INSN_COP
1133#define RD_C2 INSN_COP
1134#define RD_C3 INSN_COP
1135#define WR_C0 INSN_COP
1136#define WR_C1 INSN_COP
1137#define WR_C2 INSN_COP
1138#define WR_C3 INSN_COP
1139
1140#define WR_HI INSN_WRITE_HI
1141#define RD_HI INSN_READ_HI
1142#define MOD_HI WR_HI|RD_HI
1143
1144#define WR_LO INSN_WRITE_LO
1145#define RD_LO INSN_READ_LO
1146#define MOD_LO WR_LO|RD_LO
1147
1148#define WR_HILO WR_HI|WR_LO
1149#define RD_HILO RD_HI|RD_LO
1150#define MOD_HILO WR_HILO|RD_HILO
1151
1152#define IS_M INSN_MULT
1153
1154#define WR_MACC INSN2_WRITE_MDMX_ACC
1155#define RD_MACC INSN2_READ_MDMX_ACC
1156
1157#define I1 INSN_ISA1
1158#define I2 INSN_ISA2
1159#define I3 INSN_ISA3
1160#define I4 INSN_ISA4
1161#define I5 INSN_ISA5
1162#define I32 INSN_ISA32
1163#define I64 INSN_ISA64
1164#define I33 INSN_ISA32R2
1165#define I65 INSN_ISA64R2
1166#define I32R6 INSN_ISA32R6
1167#define I64R6 INSN_ISA64R6
1168
1169
1170#define I16 INSN_MIPS16
1171
1172
1173#define SMT INSN_SMARTMIPS
1174
1175
1176#define M3D INSN_MIPS3D
1177
1178
1179#define MX INSN_MDMX
1180
1181#define IL2E (INSN_LOONGSON_2E)
1182#define IL2F (INSN_LOONGSON_2F)
1183
1184#define P3 INSN_4650
1185#define L1 INSN_4010
1186#define V1 (INSN_4100 | INSN_4111 | INSN_4120)
1187#define T3 INSN_3900
1188#define M1 INSN_10000
1189#define SB1 INSN_SB1
1190#define N411 INSN_4111
1191#define N412 INSN_4120
1192#define N5 (INSN_5400 | INSN_5500)
1193#define N54 INSN_5400
1194#define N55 INSN_5500
1195
1196#define G1 (T3 \
1197 )
1198
1199#define G2 (T3 \
1200 )
1201
1202#define G3 (I4 \
1203 )
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226#define WR_a WR_HILO
1227#define RD_a RD_HILO
1228#define MOD_a WR_a|RD_a
1229#define DSP_VOLA INSN_TRAP
1230#define D32 INSN_DSP
1231#define D33 INSN_DSPR2
1232#define D64 INSN_DSP64
1233
1234
1235#define MT32 INSN_MT
1236
1237
1238#define MSA INSN_MSA
1239#define MSA64 INSN_MSA64
1240#define WR_VD INSN_WRITE_FPR_D
1241#define RD_VD WR_VD
1242#define RD_VT INSN_READ_FPR_T
1243#define RD_VS INSN_READ_FPR_S
1244#define RD_d INSN2_READ_GPR_D
1245
1246#define RD_rd6 0
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261const struct mips_opcode mips_builtin_opcodes[] =
1262{
1263
1264
1265
1266
1267{"lwpc", "s,+o2", 0xec080000, 0xfc180000, WR_d, 0, I32R6},
1268{"lwupc", "s,+o2", 0xec100000, 0xfc180000, WR_d, 0, I64R6},
1269{"ldpc", "s,+o1", 0xec180000, 0xfc1c0000, WR_d, 0, I64R6},
1270{"addiupc", "s,+o2", 0xec000000, 0xfc180000, WR_d, 0, I32R6},
1271{"auipc", "s,u", 0xec1e0000, 0xfc1f0000, WR_d, 0, I32R6},
1272{"aluipc", "s,u", 0xec1f0000, 0xfc1f0000, WR_d, 0, I32R6},
1273{"daui", "s,t,u", 0x74000000, 0xfc000000, RD_s|WR_t, 0, I64R6},
1274{"dahi", "s,u", 0x04060000, 0xfc1f0000, RD_s, 0, I64R6},
1275{"dati", "s,u", 0x041e0000, 0xfc1f0000, RD_s, 0, I64R6},
1276{"lsa", "d,s,t", 0x00000005, 0xfc00073f, WR_d|RD_s|RD_t, 0, I32R6},
1277{"dlsa", "d,s,t", 0x00000015, 0xfc00073f, WR_d|RD_s|RD_t, 0, I64R6},
1278{"clz", "U,s", 0x00000050, 0xfc1f07ff, WR_d|RD_s, 0, I32R6},
1279{"clo", "U,s", 0x00000051, 0xfc1f07ff, WR_d|RD_s, 0, I32R6},
1280{"dclz", "U,s", 0x00000052, 0xfc1f07ff, WR_d|RD_s, 0, I64R6},
1281{"dclo", "U,s", 0x00000053, 0xfc1f07ff, WR_d|RD_s, 0, I64R6},
1282{"sdbbp", "B", 0x0000000e, 0xfc00003f, TRAP, 0, I32R6},
1283{"mul", "d,s,t", 0x00000098, 0xfc0007ff, WR_d|RD_s|RD_t, 0, I32R6},
1284{"muh", "d,s,t", 0x000000d8, 0xfc0007ff, WR_d|RD_s|RD_t, 0, I32R6},
1285{"mulu", "d,s,t", 0x00000099, 0xfc0007ff, WR_d|RD_s|RD_t, 0, I32R6},
1286{"muhu", "d,s,t", 0x000000d9, 0xfc0007ff, WR_d|RD_s|RD_t, 0, I32R6},
1287{"div", "d,s,t", 0x0000009a, 0xfc0007ff, WR_d|RD_s|RD_t, 0, I32R6},
1288{"mod", "d,s,t", 0x000000da, 0xfc0007ff, WR_d|RD_s|RD_t, 0, I32R6},
1289{"divu", "d,s,t", 0x0000009b, 0xfc0007ff, WR_d|RD_s|RD_t, 0, I32R6},
1290{"modu", "d,s,t", 0x000000db, 0xfc0007ff, WR_d|RD_s|RD_t, 0, I32R6},
1291{"dmul", "d,s,t", 0x0000009c, 0xfc0007ff, WR_d|RD_s|RD_t, 0, I64R6},
1292{"dmuh", "d,s,t", 0x000000dc, 0xfc0007ff, WR_d|RD_s|RD_t, 0, I64R6},
1293{"dmulu", "d,s,t", 0x0000009d, 0xfc0007ff, WR_d|RD_s|RD_t, 0, I64R6},
1294{"dmuhu", "d,s,t", 0x000000dd, 0xfc0007ff, WR_d|RD_s|RD_t, 0, I64R6},
1295{"ddiv", "d,s,t", 0x0000009e, 0xfc0007ff, WR_d|RD_s|RD_t, 0, I64R6},
1296{"dmod", "d,s,t", 0x000000de, 0xfc0007ff, WR_d|RD_s|RD_t, 0, I64R6},
1297{"ddivu", "d,s,t", 0x0000009f, 0xfc0007ff, WR_d|RD_s|RD_t, 0, I64R6},
1298{"dmodu", "d,s,t", 0x000000df, 0xfc0007ff, WR_d|RD_s|RD_t, 0, I64R6},
1299{"ll", "t,+o(b)", 0x7c000036, 0xfc00007f, LDD|RD_b|WR_t, 0, I32R6},
1300{"sc", "t,+o(b)", 0x7c000026, 0xfc00007f, LDD|RD_b|WR_t, 0, I32R6},
1301{"lld", "t,+o(b)", 0x7c000037, 0xfc00007f, LDD|RD_b|WR_t, 0, I64R6},
1302{"scd", "t,+o(b)", 0x7c000027, 0xfc00007f, LDD|RD_b|WR_t, 0, I64R6},
1303{"pref", "h,+o(b)", 0x7c000035, 0xfc00007f, RD_b, 0, I32R6},
1304{"cache", "k,+o(b)", 0x7c000025, 0xfc00007f, RD_b, 0, I32R6},
1305{"seleqz", "d,v,t", 0x00000035, 0xfc0007ff, WR_d|RD_s|RD_t, 0, I32R6},
1306{"selnez", "d,v,t", 0x00000037, 0xfc0007ff, WR_d|RD_s|RD_t, 0, I32R6},
1307{"maddf.s", "D,S,T", 0x46000018, 0xffe0003f, WR_D|RD_S|RD_T|FP_S, 0, I32R6},
1308{"maddf.d", "D,S,T", 0x46200018, 0xffe0003f, WR_D|RD_S|RD_T|FP_D, 0, I32R6},
1309{"msubf.s", "D,S,T", 0x46000019, 0xffe0003f, WR_D|RD_S|RD_T|FP_S, 0, I32R6},
1310{"msubf.d", "D,S,T", 0x46200019, 0xffe0003f, WR_D|RD_S|RD_T|FP_D, 0, I32R6},
1311{"max.s", "D,S,T", 0x4600001e, 0xffe0003f, WR_D|RD_S|RD_T|FP_S, 0, I32R6},
1312{"max.d", "D,S,T", 0x4620001e, 0xffe0003f, WR_D|RD_S|RD_T|FP_D, 0, I32R6},
1313{"maxa.s", "D,S,T", 0x4600001f, 0xffe0003f, WR_D|RD_S|RD_T|FP_S, 0, I32R6},
1314{"maxa.d", "D,S,T", 0x4620001f, 0xffe0003f, WR_D|RD_S|RD_T|FP_D, 0, I32R6},
1315{"rint.s", "D,S", 0x4600001a, 0xffff003f, WR_D|RD_S|FP_S, 0, I32R6},
1316{"rint.d", "D,S", 0x4620001a, 0xffff003f, WR_D|RD_S|FP_D, 0, I32R6},
1317{"class.s", "D,S", 0x4600001b, 0xffff003f, WR_D|RD_S|FP_S, 0, I32R6},
1318{"class.d", "D,S", 0x4620001b, 0xffff003f, WR_D|RD_S|FP_D, 0, I32R6},
1319{"min.s", "D,S,T", 0x4600001c, 0xffe0003f, WR_D|RD_S|RD_T|FP_S, 0, I32R6},
1320{"min.d", "D,S,T", 0x4620001c, 0xffe0003f, WR_D|RD_S|RD_T|FP_D, 0, I32R6},
1321{"mina.s", "D,S,T", 0x4600001d, 0xffe0003f, WR_D|RD_S|RD_T|FP_S, 0, I32R6},
1322{"mina.d", "D,S,T", 0x4620001d, 0xffe0003f, WR_D|RD_S|RD_T|FP_D, 0, I32R6},
1323{"sel.s", "D,S,T", 0x46000010, 0xffe0003f, WR_D|RD_S|RD_T|FP_S, 0, I32R6},
1324{"sel.d", "D,S,T", 0x46200010, 0xffe0003f, WR_D|RD_S|RD_T|FP_D, 0, I32R6},
1325{"seleqz.s", "D,S,T", 0x46000014, 0xffe0003f, WR_D|RD_S|RD_T|FP_S, 0, I32R6},
1326{"seleqz.d", "D,S,T", 0x46200014, 0xffe0003f, WR_D|RD_S|RD_T|FP_D, 0, I32R6},
1327{"selnez.s", "D,S,T", 0x46000017, 0xffe0003f, WR_D|RD_S|RD_T|FP_S, 0, I32R6},
1328{"selnez.d", "D,S,T", 0x46200017, 0xffe0003f, WR_D|RD_S|RD_T|FP_D, 0, I32R6},
1329{"align", "d,v,t", 0x7c000220, 0xfc00073f, WR_d|RD_s|RD_t, 0, I32R6},
1330{"dalign", "d,v,t", 0x7c000224, 0xfc00063f, WR_d|RD_s|RD_t, 0, I64R6},
1331{"bitswap", "d,w", 0x7c000020, 0xffe007ff, WR_d|RD_t, 0, I32R6},
1332{"dbitswap","d,w", 0x7c000024, 0xffe007ff, WR_d|RD_t, 0, I64R6},
1333{"balc", "+p", 0xe8000000, 0xfc000000, UBD|WR_31, 0, I32R6},
1334{"bc", "+p", 0xc8000000, 0xfc000000, UBD|WR_31, 0, I32R6},
1335{"jic", "t,o", 0xd8000000, 0xffe00000, UBD|RD_t, 0, I32R6},
1336{"beqzc", "s,+p", 0xd8000000, 0xfc000000, CBD|RD_s, 0, I32R6},
1337{"jialc", "t,o", 0xf8000000, 0xffe00000, UBD|RD_t, 0, I32R6},
1338{"bnezc", "s,+p", 0xf8000000, 0xfc000000, CBD|RD_s, 0, I32R6},
1339{"beqzalc", "s,t,p", 0x20000000, 0xffe00000, CBD|RD_s|RD_t, 0, I32R6},
1340{"bovc", "s,t,p", 0x20000000, 0xfc000000, CBD|RD_s|RD_t, 0, I32R6},
1341{"beqc", "s,t,p", 0x20000000, 0xfc000000, CBD|RD_s|RD_t, 0, I32R6},
1342{"bnezalc", "s,t,p", 0x60000000, 0xffe00000, CBD|RD_s|RD_t, 0, I32R6},
1343{"bnvc", "s,t,p", 0x60000000, 0xfc000000, CBD|RD_s|RD_t, 0, I32R6},
1344{"bnec", "s,t,p", 0x60000000, 0xfc000000, CBD|RD_s|RD_t, 0, I32R6},
1345{"blezc", "s,t,p", 0x58000000, 0xffe00000, CBD|RD_s|RD_t, 0, I32R6},
1346{"bgezc", "s,t,p", 0x58000000, 0xfc000000, CBD|RD_s|RD_t, 0, I32R6},
1347{"bgec", "s,t,p", 0x58000000, 0xfc000000, CBD|RD_s|RD_t, 0, I32R6},
1348{"bgtzc", "s,t,p", 0x5c000000, 0xffe00000, CBD|RD_s|RD_t, 0, I32R6},
1349{"bltzc", "s,t,p", 0x5c000000, 0xfc000000, CBD|RD_s|RD_t, 0, I32R6},
1350{"bltc", "s,t,p", 0x5c000000, 0xfc000000, CBD|RD_s|RD_t, 0, I32R6},
1351{"blezalc", "s,t,p", 0x18000000, 0xffe00000, CBD|RD_s|RD_t, 0, I32R6},
1352{"bgezalc", "s,t,p", 0x18000000, 0xfc000000, CBD|RD_s|RD_t, 0, I32R6},
1353{"bgeuc", "s,t,p", 0x18000000, 0xfc000000, CBD|RD_s|RD_t, 0, I32R6},
1354{"bgtzalc", "s,t,p", 0x1c000000, 0xffe00000, CBD|RD_s|RD_t, 0, I32R6},
1355{"bltzalc", "s,t,p", 0x1c000000, 0xfc000000, CBD|RD_s|RD_t, 0, I32R6},
1356{"bltuc", "s,t,p", 0x1c000000, 0xfc000000, CBD|RD_s|RD_t, 0, I32R6},
1357{"nal", "p", 0x04100000, 0xffff0000, WR_31, 0, I32R6},
1358{"bal", "p", 0x04110000, 0xffff0000, UBD|WR_31, 0, I32R6},
1359{"bc1eqz", "T,p", 0x45200000, 0xffe00000, CBD|RD_T|FP_S|FP_D, 0, I32R6},
1360{"bc1nez", "T,p", 0x45a00000, 0xffe00000, CBD|RD_T|FP_S|FP_D, 0, I32R6},
1361{"bc2eqz", "E,p", 0x49200000, 0xffe00000, CBD|RD_C2, 0, I32R6},
1362{"bc2nez", "E,p", 0x49a00000, 0xffe00000, CBD|RD_C2, 0, I32R6},
1363{"cmp.af.s", "D,S,T", 0x46800000, 0xffe0003f, RD_S|RD_T|WR_D|FP_S, 0, I32R6},
1364{"cmp.un.s", "D,S,T", 0x46800001, 0xffe0003f, RD_S|RD_T|WR_D|FP_S, 0, I32R6},
1365{"cmp.eq.s", "D,S,T", 0x46800002, 0xffe0003f, RD_S|RD_T|WR_D|FP_S, 0, I32R6},
1366{"cmp.ueq.s", "D,S,T", 0x46800003, 0xffe0003f, RD_S|RD_T|WR_D|FP_S, 0, I32R6},
1367{"cmp.lt.s", "D,S,T", 0x46800004, 0xffe0003f, RD_S|RD_T|WR_D|FP_S, 0, I32R6},
1368{"cmp.ult.s", "D,S,T", 0x46800005, 0xffe0003f, RD_S|RD_T|WR_D|FP_S, 0, I32R6},
1369{"cmp.le.s", "D,S,T", 0x46800006, 0xffe0003f, RD_S|RD_T|WR_D|FP_S, 0, I32R6},
1370{"cmp.ule.s", "D,S,T", 0x46800007, 0xffe0003f, RD_S|RD_T|WR_D|FP_S, 0, I32R6},
1371{"cmp.saf.s", "D,S,T", 0x46800008, 0xffe0003f, RD_S|RD_T|WR_D|FP_S, 0, I32R6},
1372{"cmp.sun.s", "D,S,T", 0x46800009, 0xffe0003f, RD_S|RD_T|WR_D|FP_S, 0, I32R6},
1373{"cmp.seq.s", "D,S,T", 0x4680000a, 0xffe0003f, RD_S|RD_T|WR_D|FP_S, 0, I32R6},
1374{"cmp.sueq.s", "D,S,T", 0x4680000b, 0xffe0003f, RD_S|RD_T|WR_D|FP_S, 0, I32R6},
1375{"cmp.slt.s", "D,S,T", 0x4680000c, 0xffe0003f, RD_S|RD_T|WR_D|FP_S, 0, I32R6},
1376{"cmp.sult.s", "D,S,T", 0x4680000d, 0xffe0003f, RD_S|RD_T|WR_D|FP_S, 0, I32R6},
1377{"cmp.sle.s", "D,S,T", 0x4680000e, 0xffe0003f, RD_S|RD_T|WR_D|FP_S, 0, I32R6},
1378{"cmp.sule.s", "D,S,T", 0x4680000f, 0xffe0003f, RD_S|RD_T|WR_D|FP_S, 0, I32R6},
1379{"cmp.or.s", "D,S,T", 0x46800011, 0xffe0003f, RD_S|RD_T|WR_D|FP_S, 0, I32R6},
1380{"cmp.une.s", "D,S,T", 0x46800012, 0xffe0003f, RD_S|RD_T|WR_D|FP_S, 0, I32R6},
1381{"cmp.ne.s", "D,S,T", 0x46800013, 0xffe0003f, RD_S|RD_T|WR_D|FP_S, 0, I32R6},
1382{"cmp.sor.s", "D,S,T", 0x46800019, 0xffe0003f, RD_S|RD_T|WR_D|FP_S, 0, I32R6},
1383{"cmp.sune.s", "D,S,T", 0x4680001a, 0xffe0003f, RD_S|RD_T|WR_D|FP_S, 0, I32R6},
1384{"cmp.sne.s", "D,S,T", 0x4680001b, 0xffe0003f, RD_S|RD_T|WR_D|FP_S, 0, I32R6},
1385{"cmp.af.d", "D,S,T", 0x46a00000, 0xffe0003f, RD_S|RD_T|WR_D|FP_D, 0, I32R6},
1386{"cmp.un.d", "D,S,T", 0x46a00001, 0xffe0003f, RD_S|RD_T|WR_D|FP_D, 0, I32R6},
1387{"cmp.eq.d", "D,S,T", 0x46a00002, 0xffe0003f, RD_S|RD_T|WR_D|FP_D, 0, I32R6},
1388{"cmp.ueq.d", "D,S,T", 0x46a00003, 0xffe0003f, RD_S|RD_T|WR_D|FP_D, 0, I32R6},
1389{"cmp.lt.d", "D,S,T", 0x46a00004, 0xffe0003f, RD_S|RD_T|WR_D|FP_D, 0, I32R6},
1390{"cmp.ult.d", "D,S,T", 0x46a00005, 0xffe0003f, RD_S|RD_T|WR_D|FP_D, 0, I32R6},
1391{"cmp.le.d", "D,S,T", 0x46a00006, 0xffe0003f, RD_S|RD_T|WR_D|FP_D, 0, I32R6},
1392{"cmp.ule.d", "D,S,T", 0x46a00007, 0xffe0003f, RD_S|RD_T|WR_D|FP_D, 0, I32R6},
1393{"cmp.saf.d", "D,S,T", 0x46a00008, 0xffe0003f, RD_S|RD_T|WR_D|FP_D, 0, I32R6},
1394{"cmp.sun.d", "D,S,T", 0x46a00009, 0xffe0003f, RD_S|RD_T|WR_D|FP_D, 0, I32R6},
1395{"cmp.seq.d", "D,S,T", 0x46a0000a, 0xffe0003f, RD_S|RD_T|WR_D|FP_D, 0, I32R6},
1396{"cmp.sueq.d", "D,S,T", 0x46a0000b, 0xffe0003f, RD_S|RD_T|WR_D|FP_D, 0, I32R6},
1397{"cmp.slt.d", "D,S,T", 0x46a0000c, 0xffe0003f, RD_S|RD_T|WR_D|FP_D, 0, I32R6},
1398{"cmp.sult.d", "D,S,T", 0x46a0000d, 0xffe0003f, RD_S|RD_T|WR_D|FP_D, 0, I32R6},
1399{"cmp.sle.d", "D,S,T", 0x46a0000e, 0xffe0003f, RD_S|RD_T|WR_D|FP_D, 0, I32R6},
1400{"cmp.sule.d", "D,S,T", 0x46a0000f, 0xffe0003f, RD_S|RD_T|WR_D|FP_D, 0, I32R6},
1401{"cmp.or.d", "D,S,T", 0x46a00011, 0xffe0003f, RD_S|RD_T|WR_D|FP_D, 0, I32R6},
1402{"cmp.une.d", "D,S,T", 0x46a00012, 0xffe0003f, RD_S|RD_T|WR_D|FP_D, 0, I32R6},
1403{"cmp.ne.d", "D,S,T", 0x46a00013, 0xffe0003f, RD_S|RD_T|WR_D|FP_D, 0, I32R6},
1404{"cmp.sor.d", "D,S,T", 0x46a00019, 0xffe0003f, RD_S|RD_T|WR_D|FP_D, 0, I32R6},
1405{"cmp.sune.d", "D,S,T", 0x46a0001a, 0xffe0003f, RD_S|RD_T|WR_D|FP_D, 0, I32R6},
1406{"cmp.sne.d", "D,S,T", 0x46a0001b, 0xffe0003f, RD_S|RD_T|WR_D|FP_D, 0, I32R6},
1407
1408
1409{"sll.b", "+d,+e,+f", 0x7800000d, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1410{"sll.h", "+d,+e,+f", 0x7820000d, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1411{"sll.w", "+d,+e,+f", 0x7840000d, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1412{"sll.d", "+d,+e,+f", 0x7860000d, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1413{"slli.b", "+d,+e,+7", 0x78700009, 0xfff8003f, WR_VD|RD_VS, 0, MSA},
1414{"slli.h", "+d,+e,+8", 0x78600009, 0xfff0003f, WR_VD|RD_VS, 0, MSA},
1415{"slli.w", "+d,+e,+9", 0x78400009, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1416{"slli.d", "+d,+e,'", 0x78000009, 0xffc0003f, WR_VD|RD_VS, 0, MSA},
1417{"sra.b", "+d,+e,+f", 0x7880000d, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1418{"sra.h", "+d,+e,+f", 0x78a0000d, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1419{"sra.w", "+d,+e,+f", 0x78c0000d, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1420{"sra.d", "+d,+e,+f", 0x78e0000d, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1421{"srai.b", "+d,+e,+7", 0x78f00009, 0xfff8003f, WR_VD|RD_VS, 0, MSA},
1422{"srai.h", "+d,+e,+8", 0x78e00009, 0xfff0003f, WR_VD|RD_VS, 0, MSA},
1423{"srai.w", "+d,+e,+9", 0x78c00009, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1424{"srai.d", "+d,+e,'", 0x78800009, 0xffc0003f, WR_VD|RD_VS, 0, MSA},
1425{"srl.b", "+d,+e,+f", 0x7900000d, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1426{"srl.h", "+d,+e,+f", 0x7920000d, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1427{"srl.w", "+d,+e,+f", 0x7940000d, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1428{"srl.d", "+d,+e,+f", 0x7960000d, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1429{"srli.b", "+d,+e,+7", 0x79700009, 0xfff8003f, WR_VD|RD_VS, 0, MSA},
1430{"srli.h", "+d,+e,+8", 0x79600009, 0xfff0003f, WR_VD|RD_VS, 0, MSA},
1431{"srli.w", "+d,+e,+9", 0x79400009, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1432{"srli.d", "+d,+e,'", 0x79000009, 0xffc0003f, WR_VD|RD_VS, 0, MSA},
1433{"bclr.b", "+d,+e,+f", 0x7980000d, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1434{"bclr.h", "+d,+e,+f", 0x79a0000d, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1435{"bclr.w", "+d,+e,+f", 0x79c0000d, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1436{"bclr.d", "+d,+e,+f", 0x79e0000d, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1437{"bclri.b", "+d,+e,+7", 0x79f00009, 0xfff8003f, WR_VD|RD_VS, 0, MSA},
1438{"bclri.h", "+d,+e,+8", 0x79e00009, 0xfff0003f, WR_VD|RD_VS, 0, MSA},
1439{"bclri.w", "+d,+e,+9", 0x79c00009, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1440{"bclri.d", "+d,+e,'", 0x79800009, 0xffc0003f, WR_VD|RD_VS, 0, MSA},
1441{"bset.b", "+d,+e,+f", 0x7a00000d, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1442{"bset.h", "+d,+e,+f", 0x7a20000d, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1443{"bset.w", "+d,+e,+f", 0x7a40000d, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1444{"bset.d", "+d,+e,+f", 0x7a60000d, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1445{"bseti.b", "+d,+e,+7", 0x7a700009, 0xfff8003f, WR_VD|RD_VS, 0, MSA},
1446{"bseti.h", "+d,+e,+8", 0x7a600009, 0xfff0003f, WR_VD|RD_VS, 0, MSA},
1447{"bseti.w", "+d,+e,+9", 0x7a400009, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1448{"bseti.d", "+d,+e,'", 0x7a000009, 0xffc0003f, WR_VD|RD_VS, 0, MSA},
1449{"bneg.b", "+d,+e,+f", 0x7a80000d, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1450{"bneg.h", "+d,+e,+f", 0x7aa0000d, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1451{"bneg.w", "+d,+e,+f", 0x7ac0000d, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1452{"bneg.d", "+d,+e,+f", 0x7ae0000d, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1453{"bnegi.b", "+d,+e,+7", 0x7af00009, 0xfff8003f, WR_VD|RD_VS, 0, MSA},
1454{"bnegi.h", "+d,+e,+8", 0x7ae00009, 0xfff0003f, WR_VD|RD_VS, 0, MSA},
1455{"bnegi.w", "+d,+e,+9", 0x7ac00009, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1456{"bnegi.d", "+d,+e,'", 0x7a800009, 0xffc0003f, WR_VD|RD_VS, 0, MSA},
1457{"binsl.b", "+d,+e,+f", 0x7b00000d, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1458{"binsl.h", "+d,+e,+f", 0x7b20000d, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1459{"binsl.w", "+d,+e,+f", 0x7b40000d, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1460{"binsl.d", "+d,+e,+f", 0x7b60000d, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1461{"binsli.b", "+d,+e,+7", 0x7b700009, 0xfff8003f, WR_VD|RD_VS, 0, MSA},
1462{"binsli.h", "+d,+e,+8", 0x7b600009, 0xfff0003f, WR_VD|RD_VS, 0, MSA},
1463{"binsli.w", "+d,+e,+9", 0x7b400009, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1464{"binsli.d", "+d,+e,'", 0x7b000009, 0xffc0003f, WR_VD|RD_VS, 0, MSA},
1465{"binsr.b", "+d,+e,+f", 0x7b80000d, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1466{"binsr.h", "+d,+e,+f", 0x7ba0000d, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1467{"binsr.w", "+d,+e,+f", 0x7bc0000d, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1468{"binsr.d", "+d,+e,+f", 0x7be0000d, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1469{"binsri.b", "+d,+e,+7", 0x7bf00009, 0xfff8003f, WR_VD|RD_VS, 0, MSA},
1470{"binsri.h", "+d,+e,+8", 0x7be00009, 0xfff0003f, WR_VD|RD_VS, 0, MSA},
1471{"binsri.w", "+d,+e,+9", 0x7bc00009, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1472{"binsri.d", "+d,+e,'", 0x7b800009, 0xffc0003f, WR_VD|RD_VS, 0, MSA},
1473{"addv.b", "+d,+e,+f", 0x7800000e, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1474{"addv.h", "+d,+e,+f", 0x7820000e, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1475{"addv.w", "+d,+e,+f", 0x7840000e, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1476{"addv.d", "+d,+e,+f", 0x7860000e, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1477{"addvi.b", "+d,+e,k", 0x78000006, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1478{"addvi.h", "+d,+e,k", 0x78200006, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1479{"addvi.w", "+d,+e,k", 0x78400006, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1480{"addvi.d", "+d,+e,k", 0x78600006, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1481{"subv.b", "+d,+e,+f", 0x7880000e, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1482{"subv.h", "+d,+e,+f", 0x78a0000e, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1483{"subv.w", "+d,+e,+f", 0x78c0000e, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1484{"subv.d", "+d,+e,+f", 0x78e0000e, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1485{"subvi.b", "+d,+e,k", 0x78800006, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1486{"subvi.h", "+d,+e,k", 0x78a00006, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1487{"subvi.w", "+d,+e,k", 0x78c00006, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1488{"subvi.d", "+d,+e,k", 0x78e00006, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1489{"max_s.b", "+d,+e,+f", 0x7900000e, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1490{"max_s.h", "+d,+e,+f", 0x7920000e, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1491{"max_s.w", "+d,+e,+f", 0x7940000e, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1492{"max_s.d", "+d,+e,+f", 0x7960000e, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1493{"maxi_s.b", "+d,+e,+5", 0x79000006, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1494{"maxi_s.h", "+d,+e,+5", 0x79200006, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1495{"maxi_s.w", "+d,+e,+5", 0x79400006, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1496{"maxi_s.d", "+d,+e,+5", 0x79600006, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1497{"max_u.b", "+d,+e,+f", 0x7980000e, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1498{"max_u.h", "+d,+e,+f", 0x79a0000e, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1499{"max_u.w", "+d,+e,+f", 0x79c0000e, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1500{"max_u.d", "+d,+e,+f", 0x79e0000e, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1501{"maxi_u.b", "+d,+e,k", 0x79800006, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1502{"maxi_u.h", "+d,+e,k", 0x79a00006, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1503{"maxi_u.w", "+d,+e,k", 0x79c00006, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1504{"maxi_u.d", "+d,+e,k", 0x79e00006, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1505{"min_s.b", "+d,+e,+f", 0x7a00000e, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1506{"min_s.h", "+d,+e,+f", 0x7a20000e, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1507{"min_s.w", "+d,+e,+f", 0x7a40000e, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1508{"min_s.d", "+d,+e,+f", 0x7a60000e, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1509{"mini_s.b", "+d,+e,+5", 0x7a000006, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1510{"mini_s.h", "+d,+e,+5", 0x7a200006, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1511{"mini_s.w", "+d,+e,+5", 0x7a400006, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1512{"mini_s.d", "+d,+e,+5", 0x7a600006, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1513{"min_u.b", "+d,+e,+f", 0x7a80000e, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1514{"min_u.h", "+d,+e,+f", 0x7aa0000e, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1515{"min_u.w", "+d,+e,+f", 0x7ac0000e, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1516{"min_u.d", "+d,+e,+f", 0x7ae0000e, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1517{"mini_u.b", "+d,+e,k", 0x7a800006, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1518{"mini_u.h", "+d,+e,k", 0x7aa00006, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1519{"mini_u.w", "+d,+e,k", 0x7ac00006, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1520{"mini_u.d", "+d,+e,k", 0x7ae00006, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1521{"max_a.b", "+d,+e,+f", 0x7b00000e, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1522{"max_a.h", "+d,+e,+f", 0x7b20000e, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1523{"max_a.w", "+d,+e,+f", 0x7b40000e, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1524{"max_a.d", "+d,+e,+f", 0x7b60000e, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1525{"min_a.b", "+d,+e,+f", 0x7b80000e, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1526{"min_a.h", "+d,+e,+f", 0x7ba0000e, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1527{"min_a.w", "+d,+e,+f", 0x7bc0000e, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1528{"min_a.d", "+d,+e,+f", 0x7be0000e, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1529{"ceq.b", "+d,+e,+f", 0x7800000f, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1530{"ceq.h", "+d,+e,+f", 0x7820000f, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1531{"ceq.w", "+d,+e,+f", 0x7840000f, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1532{"ceq.d", "+d,+e,+f", 0x7860000f, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1533{"ceqi.b", "+d,+e,+5", 0x78000007, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1534{"ceqi.h", "+d,+e,+5", 0x78200007, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1535{"ceqi.w", "+d,+e,+5", 0x78400007, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1536{"ceqi.d", "+d,+e,+5", 0x78600007, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1537{"clt_s.b", "+d,+e,+f", 0x7900000f, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1538{"clt_s.h", "+d,+e,+f", 0x7920000f, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1539{"clt_s.w", "+d,+e,+f", 0x7940000f, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1540{"clt_s.d", "+d,+e,+f", 0x7960000f, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1541{"clti_s.b", "+d,+e,+5", 0x79000007, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1542{"clti_s.h", "+d,+e,+5", 0x79200007, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1543{"clti_s.w", "+d,+e,+5", 0x79400007, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1544{"clti_s.d", "+d,+e,+5", 0x79600007, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1545{"clt_u.b", "+d,+e,+f", 0x7980000f, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1546{"clt_u.h", "+d,+e,+f", 0x79a0000f, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1547{"clt_u.w", "+d,+e,+f", 0x79c0000f, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1548{"clt_u.d", "+d,+e,+f", 0x79e0000f, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1549{"clti_u.b", "+d,+e,k", 0x79800007, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1550{"clti_u.h", "+d,+e,k", 0x79a00007, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1551{"clti_u.w", "+d,+e,k", 0x79c00007, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1552{"clti_u.d", "+d,+e,k", 0x79e00007, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1553{"cle_s.b", "+d,+e,+f", 0x7a00000f, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1554{"cle_s.h", "+d,+e,+f", 0x7a20000f, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1555{"cle_s.w", "+d,+e,+f", 0x7a40000f, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1556{"cle_s.d", "+d,+e,+f", 0x7a60000f, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1557{"clei_s.b", "+d,+e,+5", 0x7a000007, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1558{"clei_s.h", "+d,+e,+5", 0x7a200007, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1559{"clei_s.w", "+d,+e,+5", 0x7a400007, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1560{"clei_s.d", "+d,+e,+5", 0x7a600007, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1561{"cle_u.b", "+d,+e,+f", 0x7a80000f, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1562{"cle_u.h", "+d,+e,+f", 0x7aa0000f, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1563{"cle_u.w", "+d,+e,+f", 0x7ac0000f, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1564{"cle_u.d", "+d,+e,+f", 0x7ae0000f, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1565{"clei_u.b", "+d,+e,k", 0x7a800007, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1566{"clei_u.h", "+d,+e,k", 0x7aa00007, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1567{"clei_u.w", "+d,+e,k", 0x7ac00007, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1568{"clei_u.d", "+d,+e,k", 0x7ae00007, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1569{"ld.b", "+d,+^(d)", 0x78000020, 0xfc00003f, WR_VD|LDD, RD_d, MSA},
1570{"ld.h", "+d,+#(d)", 0x78000021, 0xfc00003f, WR_VD|LDD, RD_d, MSA},
1571{"ld.w", "+d,+$(d)", 0x78000022, 0xfc00003f, WR_VD|LDD, RD_d, MSA},
1572{"ld.d", "+d,+%(d)", 0x78000023, 0xfc00003f, WR_VD|LDD, RD_d, MSA},
1573{"st.b", "+d,+^(d)", 0x78000024, 0xfc00003f, RD_VD|SM, RD_d, MSA},
1574{"st.h", "+d,+#(d)", 0x78000025, 0xfc00003f, RD_VD|SM, RD_d, MSA},
1575{"st.w", "+d,+$(d)", 0x78000026, 0xfc00003f, RD_VD|SM, RD_d, MSA},
1576{"st.d", "+d,+%(d)", 0x78000027, 0xfc00003f, RD_VD|SM, RD_d, MSA},
1577{"sat_s.b", "+d,+e,+7", 0x7870000a, 0xfff8003f, WR_VD|RD_VS, 0, MSA},
1578{"sat_s.h", "+d,+e,+8", 0x7860000a, 0xfff0003f, WR_VD|RD_VS, 0, MSA},
1579{"sat_s.w", "+d,+e,+9", 0x7840000a, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1580{"sat_s.d", "+d,+e,'", 0x7800000a, 0xffc0003f, WR_VD|RD_VS, 0, MSA},
1581{"sat_u.b", "+d,+e,+7", 0x78f0000a, 0xfff8003f, WR_VD|RD_VS, 0, MSA},
1582{"sat_u.h", "+d,+e,+8", 0x78e0000a, 0xfff0003f, WR_VD|RD_VS, 0, MSA},
1583{"sat_u.w", "+d,+e,+9", 0x78c0000a, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1584{"sat_u.d", "+d,+e,'", 0x7880000a, 0xffc0003f, WR_VD|RD_VS, 0, MSA},
1585{"add_a.b", "+d,+e,+f", 0x78000010, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1586{"add_a.h", "+d,+e,+f", 0x78200010, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1587{"add_a.w", "+d,+e,+f", 0x78400010, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1588{"add_a.d", "+d,+e,+f", 0x78600010, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1589{"adds_a.b", "+d,+e,+f", 0x78800010, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1590{"adds_a.h", "+d,+e,+f", 0x78a00010, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1591{"adds_a.w", "+d,+e,+f", 0x78c00010, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1592{"adds_a.d", "+d,+e,+f", 0x78e00010, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1593{"adds_s.b", "+d,+e,+f", 0x79000010, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1594{"adds_s.h", "+d,+e,+f", 0x79200010, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1595{"adds_s.w", "+d,+e,+f", 0x79400010, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1596{"adds_s.d", "+d,+e,+f", 0x79600010, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1597{"adds_u.b", "+d,+e,+f", 0x79800010, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1598{"adds_u.h", "+d,+e,+f", 0x79a00010, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1599{"adds_u.w", "+d,+e,+f", 0x79c00010, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1600{"adds_u.d", "+d,+e,+f", 0x79e00010, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1601{"ave_s.b", "+d,+e,+f", 0x7a000010, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1602{"ave_s.h", "+d,+e,+f", 0x7a200010, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1603{"ave_s.w", "+d,+e,+f", 0x7a400010, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1604{"ave_s.d", "+d,+e,+f", 0x7a600010, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1605{"ave_u.b", "+d,+e,+f", 0x7a800010, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1606{"ave_u.h", "+d,+e,+f", 0x7aa00010, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1607{"ave_u.w", "+d,+e,+f", 0x7ac00010, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1608{"ave_u.d", "+d,+e,+f", 0x7ae00010, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1609{"aver_s.b", "+d,+e,+f", 0x7b000010, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1610{"aver_s.h", "+d,+e,+f", 0x7b200010, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1611{"aver_s.w", "+d,+e,+f", 0x7b400010, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1612{"aver_s.d", "+d,+e,+f", 0x7b600010, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1613{"aver_u.b", "+d,+e,+f", 0x7b800010, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1614{"aver_u.h", "+d,+e,+f", 0x7ba00010, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1615{"aver_u.w", "+d,+e,+f", 0x7bc00010, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1616{"aver_u.d", "+d,+e,+f", 0x7be00010, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1617{"subs_s.b", "+d,+e,+f", 0x78000011, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1618{"subs_s.h", "+d,+e,+f", 0x78200011, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1619{"subs_s.w", "+d,+e,+f", 0x78400011, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1620{"subs_s.d", "+d,+e,+f", 0x78600011, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1621{"subs_u.b", "+d,+e,+f", 0x78800011, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1622{"subs_u.h", "+d,+e,+f", 0x78a00011, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1623{"subs_u.w", "+d,+e,+f", 0x78c00011, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1624{"subs_u.d", "+d,+e,+f", 0x78e00011, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1625{"subsus_u.b", "+d,+e,+f", 0x79000011, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1626{"subsus_u.h", "+d,+e,+f", 0x79200011, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1627{"subsus_u.w", "+d,+e,+f", 0x79400011, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1628{"subsus_u.d", "+d,+e,+f", 0x79600011, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1629{"subsuu_s.b", "+d,+e,+f", 0x79800011, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1630{"subsuu_s.h", "+d,+e,+f", 0x79a00011, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1631{"subsuu_s.w", "+d,+e,+f", 0x79c00011, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1632{"subsuu_s.d", "+d,+e,+f", 0x79e00011, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1633{"asub_s.b", "+d,+e,+f", 0x7a000011, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1634{"asub_s.h", "+d,+e,+f", 0x7a200011, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1635{"asub_s.w", "+d,+e,+f", 0x7a400011, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1636{"asub_s.d", "+d,+e,+f", 0x7a600011, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1637{"asub_u.b", "+d,+e,+f", 0x7a800011, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1638{"asub_u.h", "+d,+e,+f", 0x7aa00011, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1639{"asub_u.w", "+d,+e,+f", 0x7ac00011, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1640{"asub_u.d", "+d,+e,+f", 0x7ae00011, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1641{"mulv.b", "+d,+e,+f", 0x78000012, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1642{"mulv.h", "+d,+e,+f", 0x78200012, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1643{"mulv.w", "+d,+e,+f", 0x78400012, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1644{"mulv.d", "+d,+e,+f", 0x78600012, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1645{"maddv.b", "+d,+e,+f", 0x78800012, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1646{"maddv.h", "+d,+e,+f", 0x78a00012, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1647{"maddv.w", "+d,+e,+f", 0x78c00012, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1648{"maddv.d", "+d,+e,+f", 0x78e00012, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1649{"msubv.b", "+d,+e,+f", 0x79000012, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1650{"msubv.h", "+d,+e,+f", 0x79200012, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1651{"msubv.w", "+d,+e,+f", 0x79400012, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1652{"msubv.d", "+d,+e,+f", 0x79600012, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1653{"div_s.b", "+d,+e,+f", 0x7a000012, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1654{"div_s.h", "+d,+e,+f", 0x7a200012, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1655{"div_s.w", "+d,+e,+f", 0x7a400012, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1656{"div_s.d", "+d,+e,+f", 0x7a600012, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1657{"div_u.b", "+d,+e,+f", 0x7a800012, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1658{"div_u.h", "+d,+e,+f", 0x7aa00012, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1659{"div_u.w", "+d,+e,+f", 0x7ac00012, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1660{"div_u.d", "+d,+e,+f", 0x7ae00012, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1661{"mod_s.b", "+d,+e,+f", 0x7b000012, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1662{"mod_s.h", "+d,+e,+f", 0x7b200012, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1663{"mod_s.w", "+d,+e,+f", 0x7b400012, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1664{"mod_s.d", "+d,+e,+f", 0x7b600012, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1665{"mod_u.b", "+d,+e,+f", 0x7b800012, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1666{"mod_u.h", "+d,+e,+f", 0x7ba00012, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1667{"mod_u.w", "+d,+e,+f", 0x7bc00012, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1668{"mod_u.d", "+d,+e,+f", 0x7be00012, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1669{"dotp_s.h", "+d,+e,+f", 0x78200013, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1670{"dotp_s.w", "+d,+e,+f", 0x78400013, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1671{"dotp_s.d", "+d,+e,+f", 0x78600013, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1672{"dotp_u.h", "+d,+e,+f", 0x78a00013, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1673{"dotp_u.w", "+d,+e,+f", 0x78c00013, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1674{"dotp_u.d", "+d,+e,+f", 0x78e00013, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1675{"dpadd_s.h", "+d,+e,+f", 0x79200013, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1676{"dpadd_s.w", "+d,+e,+f", 0x79400013, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1677{"dpadd_s.d", "+d,+e,+f", 0x79600013, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1678{"dpadd_u.h", "+d,+e,+f", 0x79a00013, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1679{"dpadd_u.w", "+d,+e,+f", 0x79c00013, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1680{"dpadd_u.d", "+d,+e,+f", 0x79e00013, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1681{"dpsub_s.h", "+d,+e,+f", 0x7a200013, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1682{"dpsub_s.w", "+d,+e,+f", 0x7a400013, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1683{"dpsub_s.d", "+d,+e,+f", 0x7a600013, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1684{"dpsub_u.h", "+d,+e,+f", 0x7aa00013, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1685{"dpsub_u.w", "+d,+e,+f", 0x7ac00013, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1686{"dpsub_u.d", "+d,+e,+f", 0x7ae00013, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1687{"sld.b", "+d,+e[t]", 0x78000014, 0xffe0003f, WR_VD|RD_VS|RD_t, 0, MSA},
1688{"sld.h", "+d,+e[t]", 0x78200014, 0xffe0003f, WR_VD|RD_VS|RD_t, 0, MSA},
1689{"sld.w", "+d,+e[t]", 0x78400014, 0xffe0003f, WR_VD|RD_VS|RD_t, 0, MSA},
1690{"sld.d", "+d,+e[t]", 0x78600014, 0xffe0003f, WR_VD|RD_VS|RD_t, 0, MSA},
1691{"sldi.b", "+d,+e[+9]", 0x78000019, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1692{"sldi.h", "+d,+e[+8]", 0x78200019, 0xfff0003f, WR_VD|RD_VS, 0, MSA},
1693{"sldi.w", "+d,+e[+7]", 0x78300019, 0xfff8003f, WR_VD|RD_VS, 0, MSA},
1694{"sldi.d", "+d,+e[+6]", 0x78380019, 0xfffc003f, WR_VD|RD_VS, 0, MSA},
1695{"splat.b", "+d,+e[t]", 0x78800014, 0xffe0003f, WR_VD|RD_VS|RD_t, 0, MSA},
1696{"splat.h", "+d,+e[t]", 0x78a00014, 0xffe0003f, WR_VD|RD_VS|RD_t, 0, MSA},
1697{"splat.w", "+d,+e[t]", 0x78c00014, 0xffe0003f, WR_VD|RD_VS|RD_t, 0, MSA},
1698{"splat.d", "+d,+e[t]", 0x78e00014, 0xffe0003f, WR_VD|RD_VS|RD_t, 0, MSA},
1699{"splati.b", "+d,+e[+9]", 0x78400019, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1700{"splati.h", "+d,+e[+8]", 0x78600019, 0xfff0003f, WR_VD|RD_VS, 0, MSA},
1701{"splati.w", "+d,+e[+7]", 0x78700019, 0xfff8003f, WR_VD|RD_VS, 0, MSA},
1702{"splati.d", "+d,+e[+6]", 0x78780019, 0xfffc003f, WR_VD|RD_VS, 0, MSA},
1703{"pckev.b", "+d,+e,+f", 0x79000014, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1704{"pckev.h", "+d,+e,+f", 0x79200014, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1705{"pckev.w", "+d,+e,+f", 0x79400014, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1706{"pckev.d", "+d,+e,+f", 0x79600014, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1707{"pckod.b", "+d,+e,+f", 0x79800014, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1708{"pckod.h", "+d,+e,+f", 0x79a00014, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1709{"pckod.w", "+d,+e,+f", 0x79c00014, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1710{"pckod.d", "+d,+e,+f", 0x79e00014, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1711{"ilvl.b", "+d,+e,+f", 0x7a000014, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1712{"ilvl.h", "+d,+e,+f", 0x7a200014, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1713{"ilvl.w", "+d,+e,+f", 0x7a400014, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1714{"ilvl.d", "+d,+e,+f", 0x7a600014, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1715{"ilvr.b", "+d,+e,+f", 0x7a800014, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1716{"ilvr.h", "+d,+e,+f", 0x7aa00014, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1717{"ilvr.w", "+d,+e,+f", 0x7ac00014, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1718{"ilvr.d", "+d,+e,+f", 0x7ae00014, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1719{"ilvev.b", "+d,+e,+f", 0x7b000014, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1720{"ilvev.h", "+d,+e,+f", 0x7b200014, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1721{"ilvev.w", "+d,+e,+f", 0x7b400014, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1722{"ilvev.d", "+d,+e,+f", 0x7b600014, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1723{"ilvod.b", "+d,+e,+f", 0x7b800014, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1724{"ilvod.h", "+d,+e,+f", 0x7ba00014, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1725{"ilvod.w", "+d,+e,+f", 0x7bc00014, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1726{"ilvod.d", "+d,+e,+f", 0x7be00014, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1727{"vshf.b", "+d,+e,+f", 0x78000015, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1728{"vshf.h", "+d,+e,+f", 0x78200015, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1729{"vshf.w", "+d,+e,+f", 0x78400015, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1730{"vshf.d", "+d,+e,+f", 0x78600015, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1731{"srar.b", "+d,+e,+f", 0x78800015, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1732{"srar.h", "+d,+e,+f", 0x78a00015, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1733{"srar.w", "+d,+e,+f", 0x78c00015, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1734{"srar.d", "+d,+e,+f", 0x78e00015, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1735{"srari.b", "+d,+e,+7", 0x7970000a, 0xfff8003f, WR_VD|RD_VS, 0, MSA},
1736{"srari.h", "+d,+e,+8", 0x7960000a, 0xfff0003f, WR_VD|RD_VS, 0, MSA},
1737{"srari.w", "+d,+e,+9", 0x7940000a, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1738{"srari.d", "+d,+e,'", 0x7900000a, 0xffc0003f, WR_VD|RD_VS, 0, MSA},
1739{"srlr.b", "+d,+e,+f", 0x79000015, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1740{"srlr.h", "+d,+e,+f", 0x79200015, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1741{"srlr.w", "+d,+e,+f", 0x79400015, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1742{"srlr.d", "+d,+e,+f", 0x79600015, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1743{"srlri.b", "+d,+e,+7", 0x79f0000a, 0xfff8003f, WR_VD|RD_VS, 0, MSA},
1744{"srlri.h", "+d,+e,+8", 0x79e0000a, 0xfff0003f, WR_VD|RD_VS, 0, MSA},
1745{"srlri.w", "+d,+e,+9", 0x79c0000a, 0xffe0003f, WR_VD|RD_VS, 0, MSA},
1746{"srlri.d", "+d,+e,'", 0x7980000a, 0xffc0003f, WR_VD|RD_VS, 0, MSA},
1747{"hadd_s.h", "+d,+e,+f", 0x7a200015, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1748{"hadd_s.w", "+d,+e,+f", 0x7a400015, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1749{"hadd_s.d", "+d,+e,+f", 0x7a600015, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1750{"hadd_u.h", "+d,+e,+f", 0x7aa00015, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1751{"hadd_u.w", "+d,+e,+f", 0x7ac00015, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1752{"hadd_u.d", "+d,+e,+f", 0x7ae00015, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1753{"hsub_s.h", "+d,+e,+f", 0x7b200015, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1754{"hsub_s.w", "+d,+e,+f", 0x7b400015, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1755{"hsub_s.d", "+d,+e,+f", 0x7b600015, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1756{"hsub_u.h", "+d,+e,+f", 0x7ba00015, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1757{"hsub_u.w", "+d,+e,+f", 0x7bc00015, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1758{"hsub_u.d", "+d,+e,+f", 0x7be00015, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1759{"and.v", "+d,+e,+f", 0x7800001e, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1760{"andi.b", "+d,+e,5", 0x78000000, 0xff00003f, WR_VD|RD_VS, 0, MSA},
1761{"or.v", "+d,+e,+f", 0x7820001e, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1762{"ori.b", "+d,+e,5", 0x79000000, 0xff00003f, WR_VD|RD_VS, 0, MSA},
1763{"nor.v", "+d,+e,+f", 0x7840001e, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1764{"nori.b", "+d,+e,5", 0x7a000000, 0xff00003f, WR_VD|RD_VS, 0, MSA},
1765{"xor.v", "+d,+e,+f", 0x7860001e, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1766{"xori.b", "+d,+e,5", 0x7b000000, 0xff00003f, WR_VD|RD_VS, 0, MSA},
1767{"bmnz.v", "+d,+e,+f", 0x7880001e, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1768{"bmnzi.b", "+d,+e,5", 0x78000001, 0xff00003f, WR_VD|RD_VS, 0, MSA},
1769{"bmz.v", "+d,+e,+f", 0x78a0001e, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1770{"bmzi.b", "+d,+e,5", 0x79000001, 0xff00003f, WR_VD|RD_VS, 0, MSA},
1771{"bsel.v", "+d,+e,+f", 0x78c0001e, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1772{"bseli.b", "+d,+e,5", 0x7a000001, 0xff00003f, WR_VD|RD_VS, 0, MSA},
1773{"shf.b", "+d,+e,5", 0x78000002, 0xff00003f, WR_VD|RD_VS, 0, MSA},
1774{"shf.h", "+d,+e,5", 0x79000002, 0xff00003f, WR_VD|RD_VS, 0, MSA},
1775{"shf.w", "+d,+e,5", 0x7a000002, 0xff00003f, WR_VD|RD_VS, 0, MSA},
1776{"bnz.v", "+f,p", 0x45e00000, 0xffe00000, CBD|RD_VT, 0, MSA},
1777{"bz.v", "+f,p", 0x45600000, 0xffe00000, CBD|RD_VT, 0, MSA},
1778{"fill.b", "+d,d", 0x7b00001e, 0xffff003f, WR_VD, RD_d, MSA},
1779{"fill.h", "+d,d", 0x7b01001e, 0xffff003f, WR_VD, RD_d, MSA},
1780{"fill.w", "+d,d", 0x7b02001e, 0xffff003f, WR_VD, RD_d, MSA},
1781{"fill.d", "+d,d", 0x7b03001e, 0xffff003f, WR_VD, RD_d, MSA64},
1782{"pcnt.b", "+d,+e", 0x7b04001e, 0xffff003f, WR_VD|RD_VS, 0, MSA},
1783{"pcnt.h", "+d,+e", 0x7b05001e, 0xffff003f, WR_VD|RD_VS, 0, MSA},
1784{"pcnt.w", "+d,+e", 0x7b06001e, 0xffff003f, WR_VD|RD_VS, 0, MSA},
1785{"pcnt.d", "+d,+e", 0x7b07001e, 0xffff003f, WR_VD|RD_VS, 0, MSA},
1786{"nloc.b", "+d,+e", 0x7b08001e, 0xffff003f, WR_VD|RD_VS, 0, MSA},
1787{"nloc.h", "+d,+e", 0x7b09001e, 0xffff003f, WR_VD|RD_VS, 0, MSA},
1788{"nloc.w", "+d,+e", 0x7b0a001e, 0xffff003f, WR_VD|RD_VS, 0, MSA},
1789{"nloc.d", "+d,+e", 0x7b0b001e, 0xffff003f, WR_VD|RD_VS, 0, MSA},
1790{"nlzc.b", "+d,+e", 0x7b0c001e, 0xffff003f, WR_VD|RD_VS, 0, MSA},
1791{"nlzc.h", "+d,+e", 0x7b0d001e, 0xffff003f, WR_VD|RD_VS, 0, MSA},
1792{"nlzc.w", "+d,+e", 0x7b0e001e, 0xffff003f, WR_VD|RD_VS, 0, MSA},
1793{"nlzc.d", "+d,+e", 0x7b0f001e, 0xffff003f, WR_VD|RD_VS, 0, MSA},
1794{"copy_s.b", "+i,+e[+9]", 0x78800019, 0xffe0003f, RD_VS, RD_rd6, MSA},
1795{"copy_s.h", "+i,+e[+8]", 0x78a00019, 0xfff0003f, RD_VS, RD_rd6, MSA},
1796{"copy_s.w", "+i,+e[+7]", 0x78b00019, 0xfff8003f, RD_VS, RD_rd6, MSA},
1797{"copy_s.d", "+i,+e[+6]", 0x78b80019, 0xfffc003f, RD_VS, RD_rd6, MSA64},
1798{"copy_u.b", "+i,+e[+9]", 0x78c00019, 0xffe0003f, RD_VS, RD_rd6, MSA},
1799{"copy_u.h", "+i,+e[+8]", 0x78e00019, 0xfff0003f, RD_VS, RD_rd6, MSA},
1800{"copy_u.w", "+i,+e[+7]", 0x78f00019, 0xfff8003f, RD_VS, RD_rd6, MSA},
1801{"copy_u.d", "+i,+e[+6]", 0x78f80019, 0xfffc003f, RD_VS, RD_rd6, MSA64},
1802{"insert.b", "+d[+9],d", 0x79000019, 0xffe0003f, WR_VD|RD_VD, RD_d, MSA},
1803{"insert.h", "+d[+8],d", 0x79200019, 0xfff0003f, WR_VD|RD_VD, RD_d, MSA},
1804{"insert.w", "+d[+7],d", 0x79300019, 0xfff8003f, WR_VD|RD_VD, RD_d, MSA},
1805{"insert.d", "+d[+6],d", 0x79380019, 0xfffc003f, WR_VD|RD_VD, RD_d, MSA64},
1806{"insve.b", "+d[+9],+e[+~]", 0x79400019, 0xffe0003f, WR_VD|RD_VD|RD_VS, 0, MSA},
1807{"insve.h", "+d[+8],+e[+~]", 0x79600019, 0xfff0003f, WR_VD|RD_VD|RD_VS, 0, MSA},
1808{"insve.w", "+d[+7],+e[+~]", 0x79700019, 0xfff8003f, WR_VD|RD_VD|RD_VS, 0, MSA},
1809{"insve.d", "+d[+6],+e[+~]", 0x79780019, 0xfffc003f, WR_VD|RD_VD|RD_VS, 0, MSA},
1810{"bnz.b", "+f,p", 0x47800000, 0xffe00000, CBD|RD_VT, 0, MSA},
1811{"bnz.h", "+f,p", 0x47a00000, 0xffe00000, CBD|RD_VT, 0, MSA},
1812{"bnz.w", "+f,p", 0x47c00000, 0xffe00000, CBD|RD_VT, 0, MSA},
1813{"bnz.d", "+f,p", 0x47e00000, 0xffe00000, CBD|RD_VT, 0, MSA},
1814{"bz.b", "+f,p", 0x47000000, 0xffe00000, CBD|RD_VT, 0, MSA},
1815{"bz.h", "+f,p", 0x47200000, 0xffe00000, CBD|RD_VT, 0, MSA},
1816{"bz.w", "+f,p", 0x47400000, 0xffe00000, CBD|RD_VT, 0, MSA},
1817{"bz.d", "+f,p", 0x47600000, 0xffe00000, CBD|RD_VT, 0, MSA},
1818{"ldi.b", "+d,+0", 0x7b000007, 0xffe0003f, WR_VD, 0, MSA},
1819{"ldi.h", "+d,+0", 0x7b200007, 0xffe0003f, WR_VD, 0, MSA},
1820{"ldi.w", "+d,+0", 0x7b400007, 0xffe0003f, WR_VD, 0, MSA},
1821{"ldi.d", "+d,+0", 0x7b600007, 0xffe0003f, WR_VD, 0, MSA},
1822{"fcaf.w", "+d,+e,+f", 0x7800001a, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1823{"fcaf.d", "+d,+e,+f", 0x7820001a, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1824{"fcun.w", "+d,+e,+f", 0x7840001a, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1825{"fcun.d", "+d,+e,+f", 0x7860001a, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1826{"fceq.w", "+d,+e,+f", 0x7880001a, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1827{"fceq.d", "+d,+e,+f", 0x78a0001a, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1828{"fcueq.w", "+d,+e,+f", 0x78c0001a, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1829{"fcueq.d", "+d,+e,+f", 0x78e0001a, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1830{"fclt.w", "+d,+e,+f", 0x7900001a, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1831{"fclt.d", "+d,+e,+f", 0x7920001a, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1832{"fcult.w", "+d,+e,+f", 0x7940001a, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1833{"fcult.d", "+d,+e,+f", 0x7960001a, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1834{"fcle.w", "+d,+e,+f", 0x7980001a, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1835{"fcle.d", "+d,+e,+f", 0x79a0001a, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1836{"fcule.w", "+d,+e,+f", 0x79c0001a, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1837{"fcule.d", "+d,+e,+f", 0x79e0001a, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1838{"fsaf.w", "+d,+e,+f", 0x7a00001a, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1839{"fsaf.d", "+d,+e,+f", 0x7a20001a, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1840{"fsun.w", "+d,+e,+f", 0x7a40001a, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1841{"fsun.d", "+d,+e,+f", 0x7a60001a, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1842{"fseq.w", "+d,+e,+f", 0x7a80001a, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1843{"fseq.d", "+d,+e,+f", 0x7aa0001a, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1844{"fsueq.w", "+d,+e,+f", 0x7ac0001a, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1845{"fsueq.d", "+d,+e,+f", 0x7ae0001a, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1846{"fslt.w", "+d,+e,+f", 0x7b00001a, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1847{"fslt.d", "+d,+e,+f", 0x7b20001a, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1848{"fsult.w", "+d,+e,+f", 0x7b40001a, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1849{"fsult.d", "+d,+e,+f", 0x7b60001a, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1850{"fsle.w", "+d,+e,+f", 0x7b80001a, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1851{"fsle.d", "+d,+e,+f", 0x7ba0001a, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1852{"fsule.w", "+d,+e,+f", 0x7bc0001a, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1853{"fsule.d", "+d,+e,+f", 0x7be0001a, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1854{"fadd.w", "+d,+e,+f", 0x7800001b, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1855{"fadd.d", "+d,+e,+f", 0x7820001b, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1856{"fsub.w", "+d,+e,+f", 0x7840001b, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1857{"fsub.d", "+d,+e,+f", 0x7860001b, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1858{"fmul.w", "+d,+e,+f", 0x7880001b, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1859{"fmul.d", "+d,+e,+f", 0x78a0001b, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1860{"fdiv.w", "+d,+e,+f", 0x78c0001b, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1861{"fdiv.d", "+d,+e,+f", 0x78e0001b, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1862{"fmadd.w", "+d,+e,+f", 0x7900001b, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1863{"fmadd.d", "+d,+e,+f", 0x7920001b, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1864{"fmsub.w", "+d,+e,+f", 0x7940001b, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1865{"fmsub.d", "+d,+e,+f", 0x7960001b, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1866{"fexp2.w", "+d,+e,+f", 0x79c0001b, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1867{"fexp2.d", "+d,+e,+f", 0x79e0001b, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1868{"fexdo.h", "+d,+e,+f", 0x7a00001b, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1869{"fexdo.w", "+d,+e,+f", 0x7a20001b, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1870{"ftq.h", "+d,+e,+f", 0x7a80001b, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1871{"ftq.w", "+d,+e,+f", 0x7aa0001b, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1872{"fmin.w", "+d,+e,+f", 0x7b00001b, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1873{"fmin.d", "+d,+e,+f", 0x7b20001b, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1874{"fmin_a.w", "+d,+e,+f", 0x7b40001b, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1875{"fmin_a.d", "+d,+e,+f", 0x7b60001b, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1876{"fmax.w", "+d,+e,+f", 0x7b80001b, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1877{"fmax.d", "+d,+e,+f", 0x7ba0001b, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1878{"fmax_a.w", "+d,+e,+f", 0x7bc0001b, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1879{"fmax_a.d", "+d,+e,+f", 0x7be0001b, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1880{"fcor.w", "+d,+e,+f", 0x7840001c, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1881{"fcor.d", "+d,+e,+f", 0x7860001c, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1882{"fcune.w", "+d,+e,+f", 0x7880001c, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1883{"fcune.d", "+d,+e,+f", 0x78a0001c, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1884{"fcne.w", "+d,+e,+f", 0x78c0001c, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1885{"fcne.d", "+d,+e,+f", 0x78e0001c, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1886{"mul_q.h", "+d,+e,+f", 0x7900001c, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1887{"mul_q.w", "+d,+e,+f", 0x7920001c, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1888{"madd_q.h", "+d,+e,+f", 0x7940001c, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1889{"madd_q.w", "+d,+e,+f", 0x7960001c, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1890{"msub_q.h", "+d,+e,+f", 0x7980001c, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1891{"msub_q.w", "+d,+e,+f", 0x79a0001c, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1892{"fsor.w", "+d,+e,+f", 0x7a40001c, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1893{"fsor.d", "+d,+e,+f", 0x7a60001c, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1894{"fsune.w", "+d,+e,+f", 0x7a80001c, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1895{"fsune.d", "+d,+e,+f", 0x7aa0001c, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1896{"fsne.w", "+d,+e,+f", 0x7ac0001c, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1897{"fsne.d", "+d,+e,+f", 0x7ae0001c, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1898{"mulr_q.h", "+d,+e,+f", 0x7b00001c, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1899{"mulr_q.w", "+d,+e,+f", 0x7b20001c, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1900{"maddr_q.h", "+d,+e,+f", 0x7b40001c, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1901{"maddr_q.w", "+d,+e,+f", 0x7b60001c, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1902{"msubr_q.h", "+d,+e,+f", 0x7b80001c, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1903{"msubr_q.w", "+d,+e,+f", 0x7ba0001c, 0xffe0003f, WR_VD|RD_VS|RD_VT, 0, MSA},
1904{"fclass.w", "+d,+e", 0x7b20001e, 0xffff003f, WR_VD|RD_VS, 0, MSA},
1905{"fclass.d", "+d,+e", 0x7b21001e, 0xffff003f, WR_VD|RD_VS, 0, MSA},
1906{"fsqrt.w", "+d,+e", 0x7b26001e, 0xffff003f, WR_VD|RD_VS, 0, MSA},
1907{"fsqrt.d", "+d,+e", 0x7b27001e, 0xffff003f, WR_VD|RD_VS, 0, MSA},
1908{"frsqrt.w", "+d,+e", 0x7b28001e, 0xffff003f, WR_VD|RD_VS, 0, MSA},
1909{"frsqrt.d", "+d,+e", 0x7b29001e, 0xffff003f, WR_VD|RD_VS, 0, MSA},
1910{"frcp.w", "+d,+e", 0x7b2a001e, 0xffff003f, WR_VD|RD_VS, 0, MSA},
1911{"frcp.d", "+d,+e", 0x7b2b001e, 0xffff003f, WR_VD|RD_VS, 0, MSA},
1912{"frint.w", "+d,+e", 0x7b2c001e, 0xffff003f, WR_VD|RD_VS, 0, MSA},
1913{"frint.d", "+d,+e", 0x7b2d001e, 0xffff003f, WR_VD|RD_VS, 0, MSA},
1914{"flog2.w", "+d,+e", 0x7b2e001e, 0xffff003f, WR_VD|RD_VS, 0, MSA},
1915{"flog2.d", "+d,+e", 0x7b2f001e, 0xffff003f, WR_VD|RD_VS, 0, MSA},
1916{"fexupl.w", "+d,+e", 0x7b30001e, 0xffff003f, WR_VD|RD_VS, 0, MSA},
1917{"fexupl.d", "+d,+e", 0x7b31001e, 0xffff003f, WR_VD|RD_VS, 0, MSA},
1918{"fexupr.w", "+d,+e", 0x7b32001e, 0xffff003f, WR_VD|RD_VS, 0, MSA},
1919{"fexupr.d", "+d,+e", 0x7b33001e, 0xffff003f, WR_VD|RD_VS, 0, MSA},
1920{"ffql.w", "+d,+e", 0x7b34001e, 0xffff003f, WR_VD|RD_VS, 0, MSA},
1921{"ffql.d", "+d,+e", 0x7b35001e, 0xffff003f, WR_VD|RD_VS, 0, MSA},
1922{"ffqr.w", "+d,+e", 0x7b36001e, 0xffff003f, WR_VD|RD_VS, 0, MSA},
1923{"ffqr.d", "+d,+e", 0x7b37001e, 0xffff003f, WR_VD|RD_VS, 0, MSA},
1924{"ftint_s.w", "+d,+e", 0x7b38001e, 0xffff003f, WR_VD|RD_VS, 0, MSA},
1925{"ftint_s.d", "+d,+e", 0x7b39001e, 0xffff003f, WR_VD|RD_VS, 0, MSA},
1926{"ftint_u.w", "+d,+e", 0x7b3a001e, 0xffff003f, WR_VD|RD_VS, 0, MSA},
1927{"ftint_u.d", "+d,+e", 0x7b3b001e, 0xffff003f, WR_VD|RD_VS, 0, MSA},
1928{"ffint_s.w", "+d,+e", 0x7b3c001e, 0xffff003f, WR_VD|RD_VS, 0, MSA},
1929{"ffint_s.d", "+d,+e", 0x7b3d001e, 0xffff003f, WR_VD|RD_VS, 0, MSA},
1930{"ffint_u.w", "+d,+e", 0x7b3e001e, 0xffff003f, WR_VD|RD_VS, 0, MSA},
1931{"ffint_u.d", "+d,+e", 0x7b3f001e, 0xffff003f, WR_VD|RD_VS, 0, MSA},
1932{"ftrunc_s.w", "+d,+e", 0x7b40001e, 0xffff003f, WR_VD|RD_VS, 0, MSA},
1933{"ftrunc_s.d", "+d,+e", 0x7b41001e, 0xffff003f, WR_VD|RD_VS, 0, MSA},
1934{"ftrunc_u.w", "+d,+e", 0x7b42001e, 0xffff003f, WR_VD|RD_VS, 0, MSA},
1935{"ftrunc_u.d", "+d,+e", 0x7b43001e, 0xffff003f, WR_VD|RD_VS, 0, MSA},
1936{"ctcmsa", "+h,d", 0x783e0019, 0xffff003f, COD, RD_d, MSA},
1937{"cfcmsa", "+i,+g", 0x787e0019, 0xffff003f, COD, 0, MSA},
1938{"move.v", "+d,+e", 0x78be0019, 0xffff003f, WR_VD|RD_VS, 0, MSA},
1939{"lsa", "d,v,t,+@", 0x00000005, 0xfc00073f, WR_d|RD_s|RD_t, 0, MSA},
1940{"dlsa", "d,v,t,+@", 0x00000015, 0xfc00073f, WR_d|RD_s|RD_t, 0, MSA64},
1941
1942{"pref", "k,o(b)", 0xcc000000, 0xfc000000, RD_b, 0, I4|I32|G3 },
1943{"prefx", "h,t(b)", 0x4c00000f, 0xfc0007ff, RD_b|RD_t, 0, I4|I33 },
1944{"nop", "", 0x00000000, 0xffffffff, 0, INSN2_ALIAS, I1 },
1945{"ssnop", "", 0x00000040, 0xffffffff, 0, INSN2_ALIAS, I32|N55 },
1946{"ehb", "", 0x000000c0, 0xffffffff, 0, INSN2_ALIAS, I33 },
1947{"li", "t,j", 0x24000000, 0xffe00000, WR_t, INSN2_ALIAS, I1 },
1948{"li", "t,i", 0x34000000, 0xffe00000, WR_t, INSN2_ALIAS, I1 },
1949{"li", "t,I", 0, (int) M_LI, INSN_MACRO, 0, I1 },
1950{"move", "d,s", 0, (int) M_MOVE, INSN_MACRO, 0, I1 },
1951{"move", "d,s", 0x0000002d, 0xfc1f07ff, WR_d|RD_s, INSN2_ALIAS, I3 },
1952{"move", "d,s", 0x00000021, 0xfc1f07ff, WR_d|RD_s, INSN2_ALIAS, I1 },
1953{"move", "d,s", 0x00000025, 0xfc1f07ff, WR_d|RD_s, INSN2_ALIAS, I1 },
1954{"b", "p", 0x10000000, 0xffff0000, UBD, INSN2_ALIAS, I1 },
1955{"b", "p", 0x04010000, 0xffff0000, UBD, INSN2_ALIAS, I1 },
1956{"bal", "p", 0x04110000, 0xffff0000, UBD|WR_31, INSN2_ALIAS, I1 },
1957
1958{"abs", "d,v", 0, (int) M_ABS, INSN_MACRO, 0, I1 },
1959{"abs.s", "D,V", 0x46000005, 0xffff003f, WR_D|RD_S|FP_S, 0, I1 },
1960{"abs.d", "D,V", 0x46200005, 0xffff003f, WR_D|RD_S|FP_D, 0, I1 },
1961{"abs.ps", "D,V", 0x46c00005, 0xffff003f, WR_D|RD_S|FP_D, 0, I5|I33 },
1962{"add", "d,v,t", 0x00000020, 0xfc0007ff, WR_d|RD_s|RD_t, 0, I1 },
1963{"add", "t,r,I", 0, (int) M_ADD_I, INSN_MACRO, 0, I1 },
1964{"add.s", "D,V,T", 0x46000000, 0xffe0003f, WR_D|RD_S|RD_T|FP_S, 0, I1 },
1965{"add.d", "D,V,T", 0x46200000, 0xffe0003f, WR_D|RD_S|RD_T|FP_D, 0, I1 },
1966{"add.ob", "X,Y,Q", 0x7800000b, 0xfc20003f, WR_D|RD_S|RD_T|FP_D, 0, MX|SB1 },
1967{"add.ob", "D,S,T", 0x4ac0000b, 0xffe0003f, WR_D|RD_S|RD_T, 0, N54 },
1968{"add.ob", "D,S,T[e]", 0x4800000b, 0xfe20003f, WR_D|RD_S|RD_T, 0, N54 },
1969{"add.ob", "D,S,k", 0x4bc0000b, 0xffe0003f, WR_D|RD_S|RD_T, 0, N54 },
1970{"add.ps", "D,V,T", 0x46c00000, 0xffe0003f, WR_D|RD_S|RD_T|FP_D, 0, I5|I33 },
1971{"add.qh", "X,Y,Q", 0x7820000b, 0xfc20003f, WR_D|RD_S|RD_T|FP_D, 0, MX },
1972{"adda.ob", "Y,Q", 0x78000037, 0xfc2007ff, RD_S|RD_T|FP_D, WR_MACC, MX|SB1 },
1973{"adda.qh", "Y,Q", 0x78200037, 0xfc2007ff, RD_S|RD_T|FP_D, WR_MACC, MX },
1974{"addi", "t,r,j", 0x20000000, 0xfc000000, WR_t|RD_s, 0, I1 },
1975{"addiu", "t,r,j", 0x24000000, 0xfc000000, WR_t|RD_s, 0, I1 },
1976{"addl.ob", "Y,Q", 0x78000437, 0xfc2007ff, RD_S|RD_T|FP_D, WR_MACC, MX|SB1 },
1977{"addl.qh", "Y,Q", 0x78200437, 0xfc2007ff, RD_S|RD_T|FP_D, WR_MACC, MX },
1978{"addr.ps", "D,S,T", 0x46c00018, 0xffe0003f, WR_D|RD_S|RD_T|FP_D, 0, M3D },
1979{"addu", "d,v,t", 0x00000021, 0xfc0007ff, WR_d|RD_s|RD_t, 0, I1 },
1980{"addu", "t,r,I", 0, (int) M_ADDU_I, INSN_MACRO, 0, I1 },
1981{"alni.ob", "X,Y,Z,O", 0x78000018, 0xff00003f, WR_D|RD_S|RD_T|FP_D, 0, MX|SB1 },
1982{"alni.ob", "D,S,T,%", 0x48000018, 0xff00003f, WR_D|RD_S|RD_T, 0, N54 },
1983{"alni.qh", "X,Y,Z,O", 0x7800001a, 0xff00003f, WR_D|RD_S|RD_T|FP_D, 0, MX },
1984{"alnv.ps", "D,V,T,s", 0x4c00001e, 0xfc00003f, WR_D|RD_S|RD_T|FP_D, 0, I5|I33 },
1985{"alnv.ob", "X,Y,Z,s", 0x78000019, 0xfc00003f, WR_D|RD_S|RD_T|RD_s|FP_D, 0, MX|SB1 },
1986{"alnv.qh", "X,Y,Z,s", 0x7800001b, 0xfc00003f, WR_D|RD_S|RD_T|RD_s|FP_D, 0, MX },
1987{"and", "d,v,t", 0x00000024, 0xfc0007ff, WR_d|RD_s|RD_t, 0, I1 },
1988{"and", "t,r,I", 0, (int) M_AND_I, INSN_MACRO, 0, I1 },
1989{"and.ob", "X,Y,Q", 0x7800000c, 0xfc20003f, WR_D|RD_S|RD_T|FP_D, 0, MX|SB1 },
1990{"and.ob", "D,S,T", 0x4ac0000c, 0xffe0003f, WR_D|RD_S|RD_T, 0, N54 },
1991{"and.ob", "D,S,T[e]", 0x4800000c, 0xfe20003f, WR_D|RD_S|RD_T, 0, N54 },
1992{"and.ob", "D,S,k", 0x4bc0000c, 0xffe0003f, WR_D|RD_S|RD_T, 0, N54 },
1993{"and.qh", "X,Y,Q", 0x7820000c, 0xfc20003f, WR_D|RD_S|RD_T|FP_D, 0, MX },
1994{"andi", "t,r,i", 0x30000000, 0xfc000000, WR_t|RD_s, 0, I1 },
1995
1996
1997
1998{"bc1any2f", "N,p", 0x45200000, 0xffe30000, CBD|RD_CC|FP_S, 0, M3D },
1999{"bc1any2t", "N,p", 0x45210000, 0xffe30000, CBD|RD_CC|FP_S, 0, M3D },
2000{"bc1any4f", "N,p", 0x45400000, 0xffe30000, CBD|RD_CC|FP_S, 0, M3D },
2001{"bc1any4t", "N,p", 0x45410000, 0xffe30000, CBD|RD_CC|FP_S, 0, M3D },
2002{"bc1f", "p", 0x45000000, 0xffff0000, CBD|RD_CC|FP_S, 0, I1 },
2003{"bc1f", "N,p", 0x45000000, 0xffe30000, CBD|RD_CC|FP_S, 0, I4|I32 },
2004{"bc1fl", "p", 0x45020000, 0xffff0000, CBL|RD_CC|FP_S, 0, I2|T3 },
2005{"bc1fl", "N,p", 0x45020000, 0xffe30000, CBL|RD_CC|FP_S, 0, I4|I32 },
2006{"bc1t", "p", 0x45010000, 0xffff0000, CBD|RD_CC|FP_S, 0, I1 },
2007{"bc1t", "N,p", 0x45010000, 0xffe30000, CBD|RD_CC|FP_S, 0, I4|I32 },
2008{"bc1tl", "p", 0x45030000, 0xffff0000, CBL|RD_CC|FP_S, 0, I2|T3 },
2009{"bc1tl", "N,p", 0x45030000, 0xffe30000, CBL|RD_CC|FP_S, 0, I4|I32 },
2010
2011
2012{"beqz", "s,p", 0x10000000, 0xfc1f0000, CBD|RD_s, 0, I1 },
2013{"beqzl", "s,p", 0x50000000, 0xfc1f0000, CBL|RD_s, 0, I2|T3 },
2014{"beq", "s,t,p", 0x10000000, 0xfc000000, CBD|RD_s|RD_t, 0, I1 },
2015{"beq", "s,I,p", 0, (int) M_BEQ_I, INSN_MACRO, 0, I1 },
2016{"beql", "s,t,p", 0x50000000, 0xfc000000, CBL|RD_s|RD_t, 0, I2|T3 },
2017{"beql", "s,I,p", 0, (int) M_BEQL_I, INSN_MACRO, 0, I2|T3 },
2018{"bge", "s,t,p", 0, (int) M_BGE, INSN_MACRO, 0, I1 },
2019{"bge", "s,I,p", 0, (int) M_BGE_I, INSN_MACRO, 0, I1 },
2020{"bgel", "s,t,p", 0, (int) M_BGEL, INSN_MACRO, 0, I2|T3 },
2021{"bgel", "s,I,p", 0, (int) M_BGEL_I, INSN_MACRO, 0, I2|T3 },
2022{"bgeu", "s,t,p", 0, (int) M_BGEU, INSN_MACRO, 0, I1 },
2023{"bgeu", "s,I,p", 0, (int) M_BGEU_I, INSN_MACRO, 0, I1 },
2024{"bgeul", "s,t,p", 0, (int) M_BGEUL, INSN_MACRO, 0, I2|T3 },
2025{"bgeul", "s,I,p", 0, (int) M_BGEUL_I, INSN_MACRO, 0, I2|T3 },
2026{"bgez", "s,p", 0x04010000, 0xfc1f0000, CBD|RD_s, 0, I1 },
2027{"bgezl", "s,p", 0x04030000, 0xfc1f0000, CBL|RD_s, 0, I2|T3 },
2028{"bgezal", "s,p", 0x04110000, 0xfc1f0000, CBD|RD_s|WR_31, 0, I1 },
2029{"bgezall", "s,p", 0x04130000, 0xfc1f0000, CBL|RD_s|WR_31, 0, I2|T3 },
2030{"bgt", "s,t,p", 0, (int) M_BGT, INSN_MACRO, 0, I1 },
2031{"bgt", "s,I,p", 0, (int) M_BGT_I, INSN_MACRO, 0, I1 },
2032{"bgtl", "s,t,p", 0, (int) M_BGTL, INSN_MACRO, 0, I2|T3 },
2033{"bgtl", "s,I,p", 0, (int) M_BGTL_I, INSN_MACRO, 0, I2|T3 },
2034{"bgtu", "s,t,p", 0, (int) M_BGTU, INSN_MACRO, 0, I1 },
2035{"bgtu", "s,I,p", 0, (int) M_BGTU_I, INSN_MACRO, 0, I1 },
2036{"bgtul", "s,t,p", 0, (int) M_BGTUL, INSN_MACRO, 0, I2|T3 },
2037{"bgtul", "s,I,p", 0, (int) M_BGTUL_I, INSN_MACRO, 0, I2|T3 },
2038{"bgtz", "s,p", 0x1c000000, 0xfc1f0000, CBD|RD_s, 0, I1 },
2039{"bgtzl", "s,p", 0x5c000000, 0xfc1f0000, CBL|RD_s, 0, I2|T3 },
2040{"ble", "s,t,p", 0, (int) M_BLE, INSN_MACRO, 0, I1 },
2041{"ble", "s,I,p", 0, (int) M_BLE_I, INSN_MACRO, 0, I1 },
2042{"blel", "s,t,p", 0, (int) M_BLEL, INSN_MACRO, 0, I2|T3 },
2043{"blel", "s,I,p", 0, (int) M_BLEL_I, INSN_MACRO, 0, I2|T3 },
2044{"bleu", "s,t,p", 0, (int) M_BLEU, INSN_MACRO, 0, I1 },
2045{"bleu", "s,I,p", 0, (int) M_BLEU_I, INSN_MACRO, 0, I1 },
2046{"bleul", "s,t,p", 0, (int) M_BLEUL, INSN_MACRO, 0, I2|T3 },
2047{"bleul", "s,I,p", 0, (int) M_BLEUL_I, INSN_MACRO, 0, I2|T3 },
2048{"blez", "s,p", 0x18000000, 0xfc1f0000, CBD|RD_s, 0, I1 },
2049{"blezl", "s,p", 0x58000000, 0xfc1f0000, CBL|RD_s, 0, I2|T3 },
2050{"blt", "s,t,p", 0, (int) M_BLT, INSN_MACRO, 0, I1 },
2051{"blt", "s,I,p", 0, (int) M_BLT_I, INSN_MACRO, 0, I1 },
2052{"bltl", "s,t,p", 0, (int) M_BLTL, INSN_MACRO, 0, I2|T3 },
2053{"bltl", "s,I,p", 0, (int) M_BLTL_I, INSN_MACRO, 0, I2|T3 },
2054{"bltu", "s,t,p", 0, (int) M_BLTU, INSN_MACRO, 0, I1 },
2055{"bltu", "s,I,p", 0, (int) M_BLTU_I, INSN_MACRO, 0, I1 },
2056{"bltul", "s,t,p", 0, (int) M_BLTUL, INSN_MACRO, 0, I2|T3 },
2057{"bltul", "s,I,p", 0, (int) M_BLTUL_I, INSN_MACRO, 0, I2|T3 },
2058{"bltz", "s,p", 0x04000000, 0xfc1f0000, CBD|RD_s, 0, I1 },
2059{"bltzl", "s,p", 0x04020000, 0xfc1f0000, CBL|RD_s, 0, I2|T3 },
2060{"bltzal", "s,p", 0x04100000, 0xfc1f0000, CBD|RD_s|WR_31, 0, I1 },
2061{"bltzall", "s,p", 0x04120000, 0xfc1f0000, CBL|RD_s|WR_31, 0, I2|T3 },
2062{"bnez", "s,p", 0x14000000, 0xfc1f0000, CBD|RD_s, 0, I1 },
2063{"bnezl", "s,p", 0x54000000, 0xfc1f0000, CBL|RD_s, 0, I2|T3 },
2064{"bne", "s,t,p", 0x14000000, 0xfc000000, CBD|RD_s|RD_t, 0, I1 },
2065{"bne", "s,I,p", 0, (int) M_BNE_I, INSN_MACRO, 0, I1 },
2066{"bnel", "s,t,p", 0x54000000, 0xfc000000, CBL|RD_s|RD_t, 0, I2|T3 },
2067{"bnel", "s,I,p", 0, (int) M_BNEL_I, INSN_MACRO, 0, I2|T3 },
2068{"break", "", 0x0000000d, 0xffffffff, TRAP, 0, I1 },
2069{"break", "c", 0x0000000d, 0xfc00ffff, TRAP, 0, I1 },
2070{"break", "c,q", 0x0000000d, 0xfc00003f, TRAP, 0, I1 },
2071{"c.f.d", "S,T", 0x46200030, 0xffe007ff, RD_S|RD_T|WR_CC|FP_D, 0, I1 },
2072{"c.f.d", "M,S,T", 0x46200030, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, I4|I32 },
2073{"c.f.s", "S,T", 0x46000030, 0xffe007ff, RD_S|RD_T|WR_CC|FP_S, 0, I1 },
2074{"c.f.s", "M,S,T", 0x46000030, 0xffe000ff, RD_S|RD_T|WR_CC|FP_S, 0, I4|I32 },
2075{"c.f.ps", "S,T", 0x46c00030, 0xffe007ff, RD_S|RD_T|WR_CC|FP_D, 0, I5|I33 },
2076{"c.f.ps", "M,S,T", 0x46c00030, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, I5|I33 },
2077{"c.un.d", "S,T", 0x46200031, 0xffe007ff, RD_S|RD_T|WR_CC|FP_D, 0, I1 },
2078{"c.un.d", "M,S,T", 0x46200031, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, I4|I32 },
2079{"c.un.s", "S,T", 0x46000031, 0xffe007ff, RD_S|RD_T|WR_CC|FP_S, 0, I1 },
2080{"c.un.s", "M,S,T", 0x46000031, 0xffe000ff, RD_S|RD_T|WR_CC|FP_S, 0, I4|I32 },
2081{"c.un.ps", "S,T", 0x46c00031, 0xffe007ff, RD_S|RD_T|WR_CC|FP_D, 0, I5|I33 },
2082{"c.un.ps", "M,S,T", 0x46c00031, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, I5|I33 },
2083{"c.eq.d", "S,T", 0x46200032, 0xffe007ff, RD_S|RD_T|WR_CC|FP_D, 0, I1 },
2084{"c.eq.d", "M,S,T", 0x46200032, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, I4|I32 },
2085{"c.eq.s", "S,T", 0x46000032, 0xffe007ff, RD_S|RD_T|WR_CC|FP_S, 0, I1 },
2086{"c.eq.s", "M,S,T", 0x46000032, 0xffe000ff, RD_S|RD_T|WR_CC|FP_S, 0, I4|I32 },
2087{"c.eq.ob", "Y,Q", 0x78000001, 0xfc2007ff, WR_CC|RD_S|RD_T|FP_D, 0, MX|SB1 },
2088{"c.eq.ob", "S,T", 0x4ac00001, 0xffe007ff, WR_CC|RD_S|RD_T, 0, N54 },
2089{"c.eq.ob", "S,T[e]", 0x48000001, 0xfe2007ff, WR_CC|RD_S|RD_T, 0, N54 },
2090{"c.eq.ob", "S,k", 0x4bc00001, 0xffe007ff, WR_CC|RD_S|RD_T, 0, N54 },
2091{"c.eq.ps", "S,T", 0x46c00032, 0xffe007ff, RD_S|RD_T|WR_CC|FP_D, 0, I5|I33 },
2092{"c.eq.ps", "M,S,T", 0x46c00032, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, I5|I33 },
2093{"c.eq.qh", "Y,Q", 0x78200001, 0xfc2007ff, WR_CC|RD_S|RD_T|FP_D, 0, MX },
2094{"c.ueq.d", "S,T", 0x46200033, 0xffe007ff, RD_S|RD_T|WR_CC|FP_D, 0, I1 },
2095{"c.ueq.d", "M,S,T", 0x46200033, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, I4|I32 },
2096{"c.ueq.s", "S,T", 0x46000033, 0xffe007ff, RD_S|RD_T|WR_CC|FP_S, 0, I1 },
2097{"c.ueq.s", "M,S,T", 0x46000033, 0xffe000ff, RD_S|RD_T|WR_CC|FP_S, 0, I4|I32 },
2098{"c.ueq.ps","S,T", 0x46c00033, 0xffe007ff, RD_S|RD_T|WR_CC|FP_D, 0, I5|I33 },
2099{"c.ueq.ps","M,S,T", 0x46c00033, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, I5|I33 },
2100{"c.olt.d", "S,T", 0x46200034, 0xffe007ff, RD_S|RD_T|WR_CC|FP_D, 0, I1 },
2101{"c.olt.d", "M,S,T", 0x46200034, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, I4|I32 },
2102{"c.olt.s", "S,T", 0x46000034, 0xffe007ff, RD_S|RD_T|WR_CC|FP_S, 0, I1 },
2103{"c.olt.s", "M,S,T", 0x46000034, 0xffe000ff, RD_S|RD_T|WR_CC|FP_S, 0, I4|I32 },
2104{"c.olt.ps","S,T", 0x46c00034, 0xffe007ff, RD_S|RD_T|WR_CC|FP_D, 0, I5|I33 },
2105{"c.olt.ps","M,S,T", 0x46c00034, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, I5|I33 },
2106{"c.ult.d", "S,T", 0x46200035, 0xffe007ff, RD_S|RD_T|WR_CC|FP_D, 0, I1 },
2107{"c.ult.d", "M,S,T", 0x46200035, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, I4|I32 },
2108{"c.ult.s", "S,T", 0x46000035, 0xffe007ff, RD_S|RD_T|WR_CC|FP_S, 0, I1 },
2109{"c.ult.s", "M,S,T", 0x46000035, 0xffe000ff, RD_S|RD_T|WR_CC|FP_S, 0, I4|I32 },
2110{"c.ult.ps","S,T", 0x46c00035, 0xffe007ff, RD_S|RD_T|WR_CC|FP_D, 0, I5|I33 },
2111{"c.ult.ps","M,S,T", 0x46c00035, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, I5|I33 },
2112{"c.ole.d", "S,T", 0x46200036, 0xffe007ff, RD_S|RD_T|WR_CC|FP_D, 0, I1 },
2113{"c.ole.d", "M,S,T", 0x46200036, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, I4|I32 },
2114{"c.ole.s", "S,T", 0x46000036, 0xffe007ff, RD_S|RD_T|WR_CC|FP_S, 0, I1 },
2115{"c.ole.s", "M,S,T", 0x46000036, 0xffe000ff, RD_S|RD_T|WR_CC|FP_S, 0, I4|I32 },
2116{"c.ole.ps","S,T", 0x46c00036, 0xffe007ff, RD_S|RD_T|WR_CC|FP_D, 0, I5|I33 },
2117{"c.ole.ps","M,S,T", 0x46c00036, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, I5|I33 },
2118{"c.ule.d", "S,T", 0x46200037, 0xffe007ff, RD_S|RD_T|WR_CC|FP_D, 0, I1 },
2119{"c.ule.d", "M,S,T", 0x46200037, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, I4|I32 },
2120{"c.ule.s", "S,T", 0x46000037, 0xffe007ff, RD_S|RD_T|WR_CC|FP_S, 0, I1 },
2121{"c.ule.s", "M,S,T", 0x46000037, 0xffe000ff, RD_S|RD_T|WR_CC|FP_S, 0, I4|I32 },
2122{"c.ule.ps","S,T", 0x46c00037, 0xffe007ff, RD_S|RD_T|WR_CC|FP_D, 0, I5|I33 },
2123{"c.ule.ps","M,S,T", 0x46c00037, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, I5|I33 },
2124{"c.sf.d", "S,T", 0x46200038, 0xffe007ff, RD_S|RD_T|WR_CC|FP_D, 0, I1 },
2125{"c.sf.d", "M,S,T", 0x46200038, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, I4|I32 },
2126{"c.sf.s", "S,T", 0x46000038, 0xffe007ff, RD_S|RD_T|WR_CC|FP_S, 0, I1 },
2127{"c.sf.s", "M,S,T", 0x46000038, 0xffe000ff, RD_S|RD_T|WR_CC|FP_S, 0, I4|I32 },
2128{"c.sf.ps", "S,T", 0x46c00038, 0xffe007ff, RD_S|RD_T|WR_CC|FP_D, 0, I5|I33 },
2129{"c.sf.ps", "M,S,T", 0x46c00038, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, I5|I33 },
2130{"c.ngle.d","S,T", 0x46200039, 0xffe007ff, RD_S|RD_T|WR_CC|FP_D, 0, I1 },
2131{"c.ngle.d","M,S,T", 0x46200039, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, I4|I32 },
2132{"c.ngle.s","S,T", 0x46000039, 0xffe007ff, RD_S|RD_T|WR_CC|FP_S, 0, I1 },
2133{"c.ngle.s","M,S,T", 0x46000039, 0xffe000ff, RD_S|RD_T|WR_CC|FP_S, 0, I4|I32 },
2134{"c.ngle.ps","S,T", 0x46c00039, 0xffe007ff, RD_S|RD_T|WR_CC|FP_D, 0, I5|I33 },
2135{"c.ngle.ps","M,S,T", 0x46c00039, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, I5|I33 },
2136{"c.seq.d", "S,T", 0x4620003a, 0xffe007ff, RD_S|RD_T|WR_CC|FP_D, 0, I1 },
2137{"c.seq.d", "M,S,T", 0x4620003a, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, I4|I32 },
2138{"c.seq.s", "S,T", 0x4600003a, 0xffe007ff, RD_S|RD_T|WR_CC|FP_S, 0, I1 },
2139{"c.seq.s", "M,S,T", 0x4600003a, 0xffe000ff, RD_S|RD_T|WR_CC|FP_S, 0, I4|I32 },
2140{"c.seq.ps","S,T", 0x46c0003a, 0xffe007ff, RD_S|RD_T|WR_CC|FP_D, 0, I5|I33 },
2141{"c.seq.ps","M,S,T", 0x46c0003a, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, I5|I33 },
2142{"c.ngl.d", "S,T", 0x4620003b, 0xffe007ff, RD_S|RD_T|WR_CC|FP_D, 0, I1 },
2143{"c.ngl.d", "M,S,T", 0x4620003b, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, I4|I32 },
2144{"c.ngl.s", "S,T", 0x4600003b, 0xffe007ff, RD_S|RD_T|WR_CC|FP_S, 0, I1 },
2145{"c.ngl.s", "M,S,T", 0x4600003b, 0xffe000ff, RD_S|RD_T|WR_CC|FP_S, 0, I4|I32 },
2146{"c.ngl.ps","S,T", 0x46c0003b, 0xffe007ff, RD_S|RD_T|WR_CC|FP_D, 0, I5|I33 },
2147{"c.ngl.ps","M,S,T", 0x46c0003b, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, I5|I33 },
2148{"c.lt.d", "S,T", 0x4620003c, 0xffe007ff, RD_S|RD_T|WR_CC|FP_D, 0, I1 },
2149{"c.lt.d", "M,S,T", 0x4620003c, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, I4|I32 },
2150{"c.lt.s", "S,T", 0x4600003c, 0xffe007ff, RD_S|RD_T|WR_CC|FP_S, 0, I1 },
2151{"c.lt.s", "M,S,T", 0x4600003c, 0xffe000ff, RD_S|RD_T|WR_CC|FP_S, 0, I4|I32 },
2152{"c.lt.ob", "Y,Q", 0x78000004, 0xfc2007ff, WR_CC|RD_S|RD_T|FP_D, 0, MX|SB1 },
2153{"c.lt.ob", "S,T", 0x4ac00004, 0xffe007ff, WR_CC|RD_S|RD_T, 0, N54 },
2154{"c.lt.ob", "S,T[e]", 0x48000004, 0xfe2007ff, WR_CC|RD_S|RD_T, 0, N54 },
2155{"c.lt.ob", "S,k", 0x4bc00004, 0xffe007ff, WR_CC|RD_S|RD_T, 0, N54 },
2156{"c.lt.ps", "S,T", 0x46c0003c, 0xffe007ff, RD_S|RD_T|WR_CC|FP_D, 0, I5|I33 },
2157{"c.lt.ps", "M,S,T", 0x46c0003c, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, I5|I33 },
2158{"c.lt.qh", "Y,Q", 0x78200004, 0xfc2007ff, WR_CC|RD_S|RD_T|FP_D, 0, MX },
2159{"c.nge.d", "S,T", 0x4620003d, 0xffe007ff, RD_S|RD_T|WR_CC|FP_D, 0, I1 },
2160{"c.nge.d", "M,S,T", 0x4620003d, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, I4|I32 },
2161{"c.nge.s", "S,T", 0x4600003d, 0xffe007ff, RD_S|RD_T|WR_CC|FP_S, 0, I1 },
2162{"c.nge.s", "M,S,T", 0x4600003d, 0xffe000ff, RD_S|RD_T|WR_CC|FP_S, 0, I4|I32 },
2163{"c.nge.ps","S,T", 0x46c0003d, 0xffe007ff, RD_S|RD_T|WR_CC|FP_D, 0, I5|I33 },
2164{"c.nge.ps","M,S,T", 0x46c0003d, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, I5|I33 },
2165{"c.le.d", "S,T", 0x4620003e, 0xffe007ff, RD_S|RD_T|WR_CC|FP_D, 0, I1 },
2166{"c.le.d", "M,S,T", 0x4620003e, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, I4|I32 },
2167{"c.le.s", "S,T", 0x4600003e, 0xffe007ff, RD_S|RD_T|WR_CC|FP_S, 0, I1 },
2168{"c.le.s", "M,S,T", 0x4600003e, 0xffe000ff, RD_S|RD_T|WR_CC|FP_S, 0, I4|I32 },
2169{"c.le.ob", "Y,Q", 0x78000005, 0xfc2007ff, WR_CC|RD_S|RD_T|FP_D, 0, MX|SB1 },
2170{"c.le.ob", "S,T", 0x4ac00005, 0xffe007ff, WR_CC|RD_S|RD_T, 0, N54 },
2171{"c.le.ob", "S,T[e]", 0x48000005, 0xfe2007ff, WR_CC|RD_S|RD_T, 0, N54 },
2172{"c.le.ob", "S,k", 0x4bc00005, 0xffe007ff, WR_CC|RD_S|RD_T, 0, N54 },
2173{"c.le.ps", "S,T", 0x46c0003e, 0xffe007ff, RD_S|RD_T|WR_CC|FP_D, 0, I5|I33 },
2174{"c.le.ps", "M,S,T", 0x46c0003e, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, I5|I33 },
2175{"c.le.qh", "Y,Q", 0x78200005, 0xfc2007ff, WR_CC|RD_S|RD_T|FP_D, 0, MX },
2176{"c.ngt.d", "S,T", 0x4620003f, 0xffe007ff, RD_S|RD_T|WR_CC|FP_D, 0, I1 },
2177{"c.ngt.d", "M,S,T", 0x4620003f, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, I4|I32 },
2178{"c.ngt.s", "S,T", 0x4600003f, 0xffe007ff, RD_S|RD_T|WR_CC|FP_S, 0, I1 },
2179{"c.ngt.s", "M,S,T", 0x4600003f, 0xffe000ff, RD_S|RD_T|WR_CC|FP_S, 0, I4|I32 },
2180{"c.ngt.ps","S,T", 0x46c0003f, 0xffe007ff, RD_S|RD_T|WR_CC|FP_D, 0, I5|I33 },
2181{"c.ngt.ps","M,S,T", 0x46c0003f, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, I5|I33 },
2182{"cabs.eq.d", "M,S,T", 0x46200072, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, M3D },
2183{"cabs.eq.ps", "M,S,T", 0x46c00072, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, M3D },
2184{"cabs.eq.s", "M,S,T", 0x46000072, 0xffe000ff, RD_S|RD_T|WR_CC|FP_S, 0, M3D },
2185{"cabs.f.d", "M,S,T", 0x46200070, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, M3D },
2186{"cabs.f.ps", "M,S,T", 0x46c00070, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, M3D },
2187{"cabs.f.s", "M,S,T", 0x46000070, 0xffe000ff, RD_S|RD_T|WR_CC|FP_S, 0, M3D },
2188{"cabs.le.d", "M,S,T", 0x4620007e, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, M3D },
2189{"cabs.le.ps", "M,S,T", 0x46c0007e, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, M3D },
2190{"cabs.le.s", "M,S,T", 0x4600007e, 0xffe000ff, RD_S|RD_T|WR_CC|FP_S, 0, M3D },
2191{"cabs.lt.d", "M,S,T", 0x4620007c, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, M3D },
2192{"cabs.lt.ps", "M,S,T", 0x46c0007c, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, M3D },
2193{"cabs.lt.s", "M,S,T", 0x4600007c, 0xffe000ff, RD_S|RD_T|WR_CC|FP_S, 0, M3D },
2194{"cabs.nge.d", "M,S,T", 0x4620007d, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, M3D },
2195{"cabs.nge.ps","M,S,T", 0x46c0007d, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, M3D },
2196{"cabs.nge.s", "M,S,T", 0x4600007d, 0xffe000ff, RD_S|RD_T|WR_CC|FP_S, 0, M3D },
2197{"cabs.ngl.d", "M,S,T", 0x4620007b, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, M3D },
2198{"cabs.ngl.ps","M,S,T", 0x46c0007b, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, M3D },
2199{"cabs.ngl.s", "M,S,T", 0x4600007b, 0xffe000ff, RD_S|RD_T|WR_CC|FP_S, 0, M3D },
2200{"cabs.ngle.d","M,S,T", 0x46200079, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, M3D },
2201{"cabs.ngle.ps","M,S,T",0x46c00079, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, M3D },
2202{"cabs.ngle.s","M,S,T", 0x46000079, 0xffe000ff, RD_S|RD_T|WR_CC|FP_S, 0, M3D },
2203{"cabs.ngt.d", "M,S,T", 0x4620007f, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, M3D },
2204{"cabs.ngt.ps","M,S,T", 0x46c0007f, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, M3D },
2205{"cabs.ngt.s", "M,S,T", 0x4600007f, 0xffe000ff, RD_S|RD_T|WR_CC|FP_S, 0, M3D },
2206{"cabs.ole.d", "M,S,T", 0x46200076, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, M3D },
2207{"cabs.ole.ps","M,S,T", 0x46c00076, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, M3D },
2208{"cabs.ole.s", "M,S,T", 0x46000076, 0xffe000ff, RD_S|RD_T|WR_CC|FP_S, 0, M3D },
2209{"cabs.olt.d", "M,S,T", 0x46200074, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, M3D },
2210{"cabs.olt.ps","M,S,T", 0x46c00074, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, M3D },
2211{"cabs.olt.s", "M,S,T", 0x46000074, 0xffe000ff, RD_S|RD_T|WR_CC|FP_S, 0, M3D },
2212{"cabs.seq.d", "M,S,T", 0x4620007a, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, M3D },
2213{"cabs.seq.ps","M,S,T", 0x46c0007a, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, M3D },
2214{"cabs.seq.s", "M,S,T", 0x4600007a, 0xffe000ff, RD_S|RD_T|WR_CC|FP_S, 0, M3D },
2215{"cabs.sf.d", "M,S,T", 0x46200078, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, M3D },
2216{"cabs.sf.ps", "M,S,T", 0x46c00078, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, M3D },
2217{"cabs.sf.s", "M,S,T", 0x46000078, 0xffe000ff, RD_S|RD_T|WR_CC|FP_S, 0, M3D },
2218{"cabs.ueq.d", "M,S,T", 0x46200073, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, M3D },
2219{"cabs.ueq.ps","M,S,T", 0x46c00073, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, M3D },
2220{"cabs.ueq.s", "M,S,T", 0x46000073, 0xffe000ff, RD_S|RD_T|WR_CC|FP_S, 0, M3D },
2221{"cabs.ule.d", "M,S,T", 0x46200077, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, M3D },
2222{"cabs.ule.ps","M,S,T", 0x46c00077, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, M3D },
2223{"cabs.ule.s", "M,S,T", 0x46000077, 0xffe000ff, RD_S|RD_T|WR_CC|FP_S, 0, M3D },
2224{"cabs.ult.d", "M,S,T", 0x46200075, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, M3D },
2225{"cabs.ult.ps","M,S,T", 0x46c00075, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, M3D },
2226{"cabs.ult.s", "M,S,T", 0x46000075, 0xffe000ff, RD_S|RD_T|WR_CC|FP_S, 0, M3D },
2227{"cabs.un.d", "M,S,T", 0x46200071, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, M3D },
2228{"cabs.un.ps", "M,S,T", 0x46c00071, 0xffe000ff, RD_S|RD_T|WR_CC|FP_D, 0, M3D },
2229{"cabs.un.s", "M,S,T", 0x46000071, 0xffe000ff, RD_S|RD_T|WR_CC|FP_S, 0, M3D },
2230
2231{"flushi", "", 0xbc010000, 0xffffffff, 0, 0, L1 },
2232{"flushd", "", 0xbc020000, 0xffffffff, 0, 0, L1 },
2233{"flushid", "", 0xbc030000, 0xffffffff, 0, 0, L1 },
2234{"wb", "o(b)", 0xbc040000, 0xfc1f0000, SM|RD_b, 0, L1 },
2235{"cache", "k,o(b)", 0xbc000000, 0xfc000000, RD_b, 0, I3|I32|T3},
2236{"cache", "k,A(b)", 0, (int) M_CACHE_AB, INSN_MACRO, 0, I3|I32|T3},
2237{"ceil.l.d", "D,S", 0x4620000a, 0xffff003f, WR_D|RD_S|FP_D, 0, I3|I33 },
2238{"ceil.l.s", "D,S", 0x4600000a, 0xffff003f, WR_D|RD_S|FP_S|FP_D, 0, I3|I33 },
2239{"ceil.w.d", "D,S", 0x4620000e, 0xffff003f, WR_D|RD_S|FP_S|FP_D, 0, I2 },
2240{"ceil.w.s", "D,S", 0x4600000e, 0xffff003f, WR_D|RD_S|FP_S, 0, I2 },
2241{"mfhc0", "t,G,H", 0x40400000, 0xffe007f8, LCD|WR_t|RD_C0, 0, I33},
2242{"mthc0", "t,G,H", 0x40c00000, 0xffe007f8, COD|RD_t|WR_C0|WR_CC, 0, I33},
2243{"cfc0", "t,G", 0x40400000, 0xffe007ff, LCD|WR_t|RD_C0, 0, I1 },
2244{"cfc1", "t,G", 0x44400000, 0xffe007ff, LCD|WR_t|RD_C1|FP_S, 0, I1 },
2245{"cfc1", "t,S", 0x44400000, 0xffe007ff, LCD|WR_t|RD_C1|FP_S, 0, I1 },
2246
2247
2248{"cftc1", "d,E", 0x41000023, 0xffe007ff, TRAP|LCD|WR_d|RD_C1|FP_S, 0, MT32 },
2249{"cftc1", "d,T", 0x41000023, 0xffe007ff, TRAP|LCD|WR_d|RD_C1|FP_S, 0, MT32 },
2250{"cftc2", "d,E", 0x41000025, 0xffe007ff, TRAP|LCD|WR_d|RD_C2, 0, MT32 },
2251{"clo", "U,s", 0x70000021, 0xfc0007ff, WR_d|WR_t|RD_s, 0, I32|N55 },
2252{"clz", "U,s", 0x70000020, 0xfc0007ff, WR_d|WR_t|RD_s, 0, I32|N55 },
2253{"ctc0", "t,G", 0x40c00000, 0xffe007ff, COD|RD_t|WR_CC, 0, I1 },
2254{"ctc1", "t,G", 0x44c00000, 0xffe007ff, COD|RD_t|WR_CC|FP_S, 0, I1 },
2255{"ctc1", "t,S", 0x44c00000, 0xffe007ff, COD|RD_t|WR_CC|FP_S, 0, I1 },
2256
2257
2258{"cttc1", "t,g", 0x41800023, 0xffe007ff, TRAP|COD|RD_t|WR_CC|FP_S, 0, MT32 },
2259{"cttc1", "t,S", 0x41800023, 0xffe007ff, TRAP|COD|RD_t|WR_CC|FP_S, 0, MT32 },
2260{"cttc2", "t,g", 0x41800025, 0xffe007ff, TRAP|COD|RD_t|WR_CC, 0, MT32 },
2261{"cvt.d.l", "D,S", 0x46a00021, 0xffff003f, WR_D|RD_S|FP_D, 0, I3|I33 },
2262{"cvt.d.s", "D,S", 0x46000021, 0xffff003f, WR_D|RD_S|FP_S|FP_D, 0, I1 },
2263{"cvt.d.w", "D,S", 0x46800021, 0xffff003f, WR_D|RD_S|FP_S|FP_D, 0, I1 },
2264{"cvt.l.d", "D,S", 0x46200025, 0xffff003f, WR_D|RD_S|FP_D, 0, I3|I33 },
2265{"cvt.l.s", "D,S", 0x46000025, 0xffff003f, WR_D|RD_S|FP_S|FP_D, 0, I3|I33 },
2266{"cvt.s.l", "D,S", 0x46a00020, 0xffff003f, WR_D|RD_S|FP_S|FP_D, 0, I3|I33 },
2267{"cvt.s.d", "D,S", 0x46200020, 0xffff003f, WR_D|RD_S|FP_S|FP_D, 0, I1 },
2268{"cvt.s.w", "D,S", 0x46800020, 0xffff003f, WR_D|RD_S|FP_S, 0, I1 },
2269{"cvt.s.pl","D,S", 0x46c00028, 0xffff003f, WR_D|RD_S|FP_S|FP_D, 0, I5|I33 },
2270{"cvt.s.pu","D,S", 0x46c00020, 0xffff003f, WR_D|RD_S|FP_S|FP_D, 0, I5|I33 },
2271{"cvt.w.d", "D,S", 0x46200024, 0xffff003f, WR_D|RD_S|FP_S|FP_D, 0, I1 },
2272{"cvt.w.s", "D,S", 0x46000024, 0xffff003f, WR_D|RD_S|FP_S, 0, I1 },
2273{"cvt.ps.pw", "D,S", 0x46800026, 0xffff003f, WR_D|RD_S|FP_S|FP_D, 0, M3D },
2274{"cvt.ps.s","D,V,T", 0x46000026, 0xffe0003f, WR_D|RD_S|RD_T|FP_S|FP_D, 0, I5|I33 },
2275{"cvt.pw.ps", "D,S", 0x46c00024, 0xffff003f, WR_D|RD_S|FP_S|FP_D, 0, M3D },
2276{"dabs", "d,v", 0, (int) M_DABS, INSN_MACRO, 0, I3 },
2277{"dadd", "d,v,t", 0x0000002c, 0xfc0007ff, WR_d|RD_s|RD_t, 0, I3 },
2278{"dadd", "t,r,I", 0, (int) M_DADD_I, INSN_MACRO, 0, I3 },
2279{"daddi", "t,r,j", 0x60000000, 0xfc000000, WR_t|RD_s, 0, I3 },
2280{"daddiu", "t,r,j", 0x64000000, 0xfc000000, WR_t|RD_s, 0, I3 },
2281{"daddu", "d,v,t", 0x0000002d, 0xfc0007ff, WR_d|RD_s|RD_t, 0, I3 },
2282{"daddu", "t,r,I", 0, (int) M_DADDU_I, INSN_MACRO, 0, I3 },
2283{"dbreak", "", 0x7000003f, 0xffffffff, 0, 0, N5 },
2284{"dclo", "U,s", 0x70000025, 0xfc0007ff, RD_s|WR_d|WR_t, 0, I64|N55 },
2285{"dclz", "U,s", 0x70000024, 0xfc0007ff, RD_s|WR_d|WR_t, 0, I64|N55 },
2286
2287{"dctr", "o(b)", 0xbc050000, 0xfc1f0000, RD_b, 0, I3 },
2288{"dctw", "o(b)", 0xbc090000, 0xfc1f0000, RD_b, 0, I3 },
2289{"deret", "", 0x4200001f, 0xffffffff, 0, 0, I32|G2 },
2290{"dext", "t,r,I,+I", 0, (int) M_DEXT, INSN_MACRO, 0, I65 },
2291{"dext", "t,r,+A,+C", 0x7c000003, 0xfc00003f, WR_t|RD_s, 0, I65 },
2292{"dextm", "t,r,+A,+G", 0x7c000001, 0xfc00003f, WR_t|RD_s, 0, I65 },
2293{"dextu", "t,r,+E,+H", 0x7c000002, 0xfc00003f, WR_t|RD_s, 0, I65 },
2294
2295{"ddiv", "z,s,t", 0x0000001e, 0xfc00ffff, RD_s|RD_t|WR_HILO, 0, I3 },
2296{"ddiv", "d,v,t", 0, (int) M_DDIV_3, INSN_MACRO, 0, I3 },
2297{"ddiv", "d,v,I", 0, (int) M_DDIV_3I, INSN_MACRO, 0, I3 },
2298
2299{"ddivu", "z,s,t", 0x0000001f, 0xfc00ffff, RD_s|RD_t|WR_HILO, 0, I3 },
2300{"ddivu", "d,v,t", 0, (int) M_DDIVU_3, INSN_MACRO, 0, I3 },
2301{"ddivu", "d,v,I", 0, (int) M_DDIVU_3I, INSN_MACRO, 0, I3 },
2302{"di", "", 0x41606000, 0xffffffff, WR_t|WR_C0, 0, I33 },
2303{"di", "t", 0x41606000, 0xffe0ffff, WR_t|WR_C0, 0, I33 },
2304{"dins", "t,r,I,+I", 0, (int) M_DINS, INSN_MACRO, 0, I65 },
2305{"dins", "t,r,+A,+B", 0x7c000007, 0xfc00003f, WR_t|RD_s, 0, I65 },
2306{"dinsm", "t,r,+A,+F", 0x7c000005, 0xfc00003f, WR_t|RD_s, 0, I65 },
2307{"dinsu", "t,r,+E,+F", 0x7c000006, 0xfc00003f, WR_t|RD_s, 0, I65 },
2308
2309
2310
2311
2312{"div", "z,s,t", 0x0000001a, 0xfc00ffff, RD_s|RD_t|WR_HILO, 0, I1 },
2313{"div", "z,t", 0x0000001a, 0xffe0ffff, RD_s|RD_t|WR_HILO, 0, I1 },
2314{"div", "d,v,t", 0, (int) M_DIV_3, INSN_MACRO, 0, I1 },
2315{"div", "d,v,I", 0, (int) M_DIV_3I, INSN_MACRO, 0, I1 },
2316{"div.d", "D,V,T", 0x46200003, 0xffe0003f, WR_D|RD_S|RD_T|FP_D, 0, I1 },
2317{"div.s", "D,V,T", 0x46000003, 0xffe0003f, WR_D|RD_S|RD_T|FP_S, 0, I1 },
2318{"div.ps", "D,V,T", 0x46c00003, 0xffe0003f, WR_D|RD_S|RD_T|FP_D, 0, SB1 },
2319
2320{"divu", "z,s,t", 0x0000001b, 0xfc00ffff, RD_s|RD_t|WR_HILO, 0, I1 },
2321{"divu", "z,t", 0x0000001b, 0xffe0ffff, RD_s|RD_t|WR_HILO, 0, I1 },
2322{"divu", "d,v,t", 0, (int) M_DIVU_3, INSN_MACRO, 0, I1 },
2323{"divu", "d,v,I", 0, (int) M_DIVU_3I, INSN_MACRO, 0, I1 },
2324{"dla", "t,A(b)", 0, (int) M_DLA_AB, INSN_MACRO, 0, I3 },
2325{"dlca", "t,A(b)", 0, (int) M_DLCA_AB, INSN_MACRO, 0, I3 },
2326{"dli", "t,j", 0x24000000, 0xffe00000, WR_t, 0, I3 },
2327{"dli", "t,i", 0x34000000, 0xffe00000, WR_t, 0, I3 },
2328{"dli", "t,I", 0, (int) M_DLI, INSN_MACRO, 0, I3 },
2329{"dmacc", "d,s,t", 0x00000029, 0xfc0007ff, RD_s|RD_t|WR_LO|WR_d, 0, N412 },
2330{"dmacchi", "d,s,t", 0x00000229, 0xfc0007ff, RD_s|RD_t|WR_LO|WR_d, 0, N412 },
2331{"dmacchis", "d,s,t", 0x00000629, 0xfc0007ff, RD_s|RD_t|WR_LO|WR_d, 0, N412 },
2332{"dmacchiu", "d,s,t", 0x00000269, 0xfc0007ff, RD_s|RD_t|WR_LO|WR_d, 0, N412 },
2333{"dmacchius", "d,s,t", 0x00000669, 0xfc0007ff, RD_s|RD_t|WR_LO|WR_d, 0, N412 },
2334{"dmaccs", "d,s,t", 0x00000429, 0xfc0007ff, RD_s|RD_t|WR_LO|WR_d, 0, N412 },
2335{"dmaccu", "d,s,t", 0x00000069, 0xfc0007ff, RD_s|RD_t|WR_LO|WR_d, 0, N412 },
2336{"dmaccus", "d,s,t", 0x00000469, 0xfc0007ff, RD_s|RD_t|WR_LO|WR_d, 0, N412 },
2337{"dmadd16", "s,t", 0x00000029, 0xfc00ffff, RD_s|RD_t|MOD_LO, 0, N411 },
2338{"dmfc0", "t,G", 0x40200000, 0xffe007ff, LCD|WR_t|RD_C0, 0, I3 },
2339{"dmfc0", "t,+D", 0x40200000, 0xffe007f8, LCD|WR_t|RD_C0, 0, I64 },
2340{"dmfc0", "t,G,H", 0x40200000, 0xffe007f8, LCD|WR_t|RD_C0, 0, I64 },
2341{"dmt", "", 0x41600bc1, 0xffffffff, TRAP, 0, MT32 },
2342{"dmt", "t", 0x41600bc1, 0xffe0ffff, TRAP|WR_t, 0, MT32 },
2343{"dmtc0", "t,G", 0x40a00000, 0xffe007ff, COD|RD_t|WR_C0|WR_CC, 0, I3 },
2344{"dmtc0", "t,+D", 0x40a00000, 0xffe007f8, COD|RD_t|WR_C0|WR_CC, 0, I64 },
2345{"dmtc0", "t,G,H", 0x40a00000, 0xffe007f8, COD|RD_t|WR_C0|WR_CC, 0, I64 },
2346{"dmfc1", "t,S", 0x44200000, 0xffe007ff, LCD|WR_t|RD_S|FP_D, 0, I3 },
2347{"dmfc1", "t,G", 0x44200000, 0xffe007ff, LCD|WR_t|RD_S|FP_D, 0, I3 },
2348{"dmtc1", "t,S", 0x44a00000, 0xffe007ff, COD|RD_t|WR_S|FP_D, 0, I3 },
2349{"dmtc1", "t,G", 0x44a00000, 0xffe007ff, COD|RD_t|WR_S|FP_D, 0, I3 },
2350
2351
2352
2353
2354{"dmul", "d,v,t", 0, (int) M_DMUL, INSN_MACRO, 0, I3 },
2355{"dmul", "d,v,I", 0, (int) M_DMUL_I, INSN_MACRO, 0, I3 },
2356{"dmulo", "d,v,t", 0, (int) M_DMULO, INSN_MACRO, 0, I3 },
2357{"dmulo", "d,v,I", 0, (int) M_DMULO_I, INSN_MACRO, 0, I3 },
2358{"dmulou", "d,v,t", 0, (int) M_DMULOU, INSN_MACRO, 0, I3 },
2359{"dmulou", "d,v,I", 0, (int) M_DMULOU_I, INSN_MACRO, 0, I3 },
2360{"dmult", "s,t", 0x0000001c, 0xfc00ffff, RD_s|RD_t|WR_HILO, 0, I3 },
2361{"dmultu", "s,t", 0x0000001d, 0xfc00ffff, RD_s|RD_t|WR_HILO, 0, I3 },
2362{"dneg", "d,w", 0x0000002e, 0xffe007ff, WR_d|RD_t, 0, I3 },
2363{"dnegu", "d,w", 0x0000002f, 0xffe007ff, WR_d|RD_t, 0, I3 },
2364{"drem", "z,s,t", 0x0000001e, 0xfc00ffff, RD_s|RD_t|WR_HILO, 0, I3 },
2365{"drem", "d,v,t", 3, (int) M_DREM_3, INSN_MACRO, 0, I3 },
2366{"drem", "d,v,I", 3, (int) M_DREM_3I, INSN_MACRO, 0, I3 },
2367{"dremu", "z,s,t", 0x0000001f, 0xfc00ffff, RD_s|RD_t|WR_HILO, 0, I3 },
2368{"dremu", "d,v,t", 3, (int) M_DREMU_3, INSN_MACRO, 0, I3 },
2369{"dremu", "d,v,I", 3, (int) M_DREMU_3I, INSN_MACRO, 0, I3 },
2370{"dret", "", 0x7000003e, 0xffffffff, 0, 0, N5 },
2371{"drol", "d,v,t", 0, (int) M_DROL, INSN_MACRO, 0, I3 },
2372{"drol", "d,v,I", 0, (int) M_DROL_I, INSN_MACRO, 0, I3 },
2373{"dror", "d,v,t", 0, (int) M_DROR, INSN_MACRO, 0, I3 },
2374{"dror", "d,v,I", 0, (int) M_DROR_I, INSN_MACRO, 0, I3 },
2375{"dror", "d,w,<", 0x0020003a, 0xffe0003f, WR_d|RD_t, 0, N5|I65 },
2376{"drorv", "d,t,s", 0x00000056, 0xfc0007ff, RD_t|RD_s|WR_d, 0, N5|I65 },
2377{"dror32", "d,w,<", 0x0020003e, 0xffe0003f, WR_d|RD_t, 0, N5|I65 },
2378{"drotl", "d,v,t", 0, (int) M_DROL, INSN_MACRO, 0, I65 },
2379{"drotl", "d,v,I", 0, (int) M_DROL_I, INSN_MACRO, 0, I65 },
2380{"drotr", "d,v,t", 0, (int) M_DROR, INSN_MACRO, 0, I65 },
2381{"drotr", "d,v,I", 0, (int) M_DROR_I, INSN_MACRO, 0, I65 },
2382{"drotrv", "d,t,s", 0x00000056, 0xfc0007ff, RD_t|RD_s|WR_d, 0, I65 },
2383{"drotr32", "d,w,<", 0x0020003e, 0xffe0003f, WR_d|RD_t, 0, I65 },
2384{"dsbh", "d,w", 0x7c0000a4, 0xffe007ff, WR_d|RD_t, 0, I65 },
2385{"dshd", "d,w", 0x7c000164, 0xffe007ff, WR_d|RD_t, 0, I65 },
2386{"dsllv", "d,t,s", 0x00000014, 0xfc0007ff, WR_d|RD_t|RD_s, 0, I3 },
2387{"dsll32", "d,w,<", 0x0000003c, 0xffe0003f, WR_d|RD_t, 0, I3 },
2388{"dsll", "d,w,s", 0x00000014, 0xfc0007ff, WR_d|RD_t|RD_s, 0, I3 },
2389{"dsll", "d,w,>", 0x0000003c, 0xffe0003f, WR_d|RD_t, 0, I3 },
2390{"dsll", "d,w,<", 0x00000038, 0xffe0003f, WR_d|RD_t, 0, I3 },
2391{"dsrav", "d,t,s", 0x00000017, 0xfc0007ff, WR_d|RD_t|RD_s, 0, I3 },
2392{"dsra32", "d,w,<", 0x0000003f, 0xffe0003f, WR_d|RD_t, 0, I3 },
2393{"dsra", "d,w,s", 0x00000017, 0xfc0007ff, WR_d|RD_t|RD_s, 0, I3 },
2394{"dsra", "d,w,>", 0x0000003f, 0xffe0003f, WR_d|RD_t, 0, I3 },
2395{"dsra", "d,w,<", 0x0000003b, 0xffe0003f, WR_d|RD_t, 0, I3 },
2396{"dsrlv", "d,t,s", 0x00000016, 0xfc0007ff, WR_d|RD_t|RD_s, 0, I3 },
2397{"dsrl32", "d,w,<", 0x0000003e, 0xffe0003f, WR_d|RD_t, 0, I3 },
2398{"dsrl", "d,w,s", 0x00000016, 0xfc0007ff, WR_d|RD_t|RD_s, 0, I3 },
2399{"dsrl", "d,w,>", 0x0000003e, 0xffe0003f, WR_d|RD_t, 0, I3 },
2400{"dsrl", "d,w,<", 0x0000003a, 0xffe0003f, WR_d|RD_t, 0, I3 },
2401{"dsub", "d,v,t", 0x0000002e, 0xfc0007ff, WR_d|RD_s|RD_t, 0, I3 },
2402{"dsub", "d,v,I", 0, (int) M_DSUB_I, INSN_MACRO, 0, I3 },
2403{"dsubu", "d,v,t", 0x0000002f, 0xfc0007ff, WR_d|RD_s|RD_t, 0, I3 },
2404{"dsubu", "d,v,I", 0, (int) M_DSUBU_I, INSN_MACRO, 0, I3 },
2405{"dvpe", "", 0x41600001, 0xffffffff, TRAP, 0, MT32 },
2406{"dvpe", "t", 0x41600001, 0xffe0ffff, TRAP|WR_t, 0, MT32 },
2407{"ei", "", 0x41606020, 0xffffffff, WR_t|WR_C0, 0, I33 },
2408{"ei", "t", 0x41606020, 0xffe0ffff, WR_t|WR_C0, 0, I33 },
2409{"emt", "", 0x41600be1, 0xffffffff, TRAP, 0, MT32 },
2410{"emt", "t", 0x41600be1, 0xffe0ffff, TRAP|WR_t, 0, MT32 },
2411{"eret", "", 0x42000018, 0xffffffff, 0, 0, I3|I32 },
2412{"eretnc", "", 0x42000058, 0xffffffff, 0, 0, I33},
2413{"evpe", "", 0x41600021, 0xffffffff, TRAP, 0, MT32 },
2414{"evpe", "t", 0x41600021, 0xffe0ffff, TRAP|WR_t, 0, MT32 },
2415{"ext", "t,r,+A,+C", 0x7c000000, 0xfc00003f, WR_t|RD_s, 0, I33 },
2416{"floor.l.d", "D,S", 0x4620000b, 0xffff003f, WR_D|RD_S|FP_D, 0, I3|I33 },
2417{"floor.l.s", "D,S", 0x4600000b, 0xffff003f, WR_D|RD_S|FP_S|FP_D, 0, I3|I33 },
2418{"floor.w.d", "D,S", 0x4620000f, 0xffff003f, WR_D|RD_S|FP_S|FP_D, 0, I2 },
2419{"floor.w.s", "D,S", 0x4600000f, 0xffff003f, WR_D|RD_S|FP_S, 0, I2 },
2420{"hibernate","", 0x42000023, 0xffffffff, 0, 0, V1 },
2421{"ins", "t,r,+A,+B", 0x7c000004, 0xfc00003f, WR_t|RD_s, 0, I33 },
2422{"jr", "s", 0x00000008, 0xfc1fffff, UBD|RD_s, 0, I1 },
2423{"jr", "s", 0x00000009, 0xfc1fffff, UBD|RD_s, 0, I32R6 },
2424
2425
2426{"jr.hb", "s", 0x00000408, 0xfc1fffff, UBD|RD_s, 0, I32 },
2427{"jr.hb", "s", 0x00000409, 0xfc1fffff, UBD|RD_s, 0, I32R6 },
2428{"j", "s", 0x00000008, 0xfc1fffff, UBD|RD_s, 0, I1 },
2429
2430
2431{"j", "a", 0, (int) M_J_A, INSN_MACRO, 0, I1 },
2432
2433
2434
2435{"j", "a", 0x08000000, 0xfc000000, UBD, 0, I1 },
2436{"jalr", "s", 0x0000f809, 0xfc1fffff, UBD|RD_s|WR_d, 0, I1 },
2437{"jalr", "d,s", 0x00000009, 0xfc1f07ff, UBD|RD_s|WR_d, 0, I1 },
2438
2439
2440{"jalr.hb", "s", 0x0000fc09, 0xfc1fffff, UBD|RD_s|WR_d, 0, I32 },
2441{"jalr.hb", "d,s", 0x00000409, 0xfc1f07ff, UBD|RD_s|WR_d, 0, I32 },
2442
2443
2444{"jal", "d,s", 0, (int) M_JAL_2, INSN_MACRO, 0, I1 },
2445{"jal", "s", 0, (int) M_JAL_1, INSN_MACRO, 0, I1 },
2446{"jal", "a", 0, (int) M_JAL_A, INSN_MACRO, 0, I1 },
2447
2448
2449
2450{"jal", "a", 0x0c000000, 0xfc000000, UBD|WR_31, 0, I1 },
2451{"jalx", "a", 0x74000000, 0xfc000000, UBD|WR_31, 0, I16 },
2452{"la", "t,A(b)", 0, (int) M_LA_AB, INSN_MACRO, 0, I1 },
2453{"lb", "t,o(b)", 0x80000000, 0xfc000000, LDD|RD_b|WR_t, 0, I1 },
2454{"lb", "t,A(b)", 0, (int) M_LB_AB, INSN_MACRO, 0, I1 },
2455{"lbu", "t,o(b)", 0x90000000, 0xfc000000, LDD|RD_b|WR_t, 0, I1 },
2456{"lbu", "t,A(b)", 0, (int) M_LBU_AB, INSN_MACRO, 0, I1 },
2457{"lca", "t,A(b)", 0, (int) M_LCA_AB, INSN_MACRO, 0, I1 },
2458{"ld", "t,o(b)", 0xdc000000, 0xfc000000, WR_t|RD_b, 0, I3 },
2459{"ld", "t,o(b)", 0, (int) M_LD_OB, INSN_MACRO, 0, I1 },
2460{"ld", "t,A(b)", 0, (int) M_LD_AB, INSN_MACRO, 0, I1 },
2461{"ldc1", "T,o(b)", 0xd4000000, 0xfc000000, CLD|RD_b|WR_T|FP_D, 0, I2 },
2462{"ldc1", "E,o(b)", 0xd4000000, 0xfc000000, CLD|RD_b|WR_T|FP_D, 0, I2 },
2463{"ldc1", "T,A(b)", 0, (int) M_LDC1_AB, INSN_MACRO, 0, I2 },
2464{"ldc1", "E,A(b)", 0, (int) M_LDC1_AB, INSN_MACRO, 0, I2 },
2465{"l.d", "T,o(b)", 0xd4000000, 0xfc000000, CLD|RD_b|WR_T|FP_D, 0, I2 },
2466{"l.d", "T,o(b)", 0, (int) M_L_DOB, INSN_MACRO, 0, I1 },
2467{"l.d", "T,A(b)", 0, (int) M_L_DAB, INSN_MACRO, 0, I1 },
2468{"ldc2", "E,o(b)", 0xd8000000, 0xfc000000, CLD|RD_b|WR_CC, 0, I2 },
2469{"ldc2", "E,A(b)", 0, (int) M_LDC2_AB, INSN_MACRO, 0, I2 },
2470{"ldc3", "E,o(b)", 0xdc000000, 0xfc000000, CLD|RD_b|WR_CC, 0, I2 },
2471{"ldc3", "E,A(b)", 0, (int) M_LDC3_AB, INSN_MACRO, 0, I2 },
2472{"ldl", "t,o(b)", 0x68000000, 0xfc000000, LDD|WR_t|RD_b, 0, I3 },
2473{"ldl", "t,A(b)", 0, (int) M_LDL_AB, INSN_MACRO, 0, I3 },
2474{"ldr", "t,o(b)", 0x6c000000, 0xfc000000, LDD|WR_t|RD_b, 0, I3 },
2475{"ldr", "t,A(b)", 0, (int) M_LDR_AB, INSN_MACRO, 0, I3 },
2476{"ldxc1", "D,t(b)", 0x4c000001, 0xfc00f83f, LDD|WR_D|RD_t|RD_b|FP_D, 0, I4|I33 },
2477{"lh", "t,o(b)", 0x84000000, 0xfc000000, LDD|RD_b|WR_t, 0, I1 },
2478{"lh", "t,A(b)", 0, (int) M_LH_AB, INSN_MACRO, 0, I1 },
2479{"lhu", "t,o(b)", 0x94000000, 0xfc000000, LDD|RD_b|WR_t, 0, I1 },
2480{"lhu", "t,A(b)", 0, (int) M_LHU_AB, INSN_MACRO, 0, I1 },
2481
2482{"li.d", "t,F", 0, (int) M_LI_D, INSN_MACRO, 0, I1 },
2483{"li.d", "T,L", 0, (int) M_LI_DD, INSN_MACRO, 0, I1 },
2484{"li.s", "t,f", 0, (int) M_LI_S, INSN_MACRO, 0, I1 },
2485{"li.s", "T,l", 0, (int) M_LI_SS, INSN_MACRO, 0, I1 },
2486{"ll", "t,o(b)", 0xc0000000, 0xfc000000, LDD|RD_b|WR_t, 0, I2 },
2487{"ll", "t,A(b)", 0, (int) M_LL_AB, INSN_MACRO, 0, I2 },
2488{"lld", "t,o(b)", 0xd0000000, 0xfc000000, LDD|RD_b|WR_t, 0, I3 },
2489{"lld", "t,A(b)", 0, (int) M_LLD_AB, INSN_MACRO, 0, I3 },
2490{"lui", "t,u", 0x3c000000, 0xffe00000, WR_t, 0, I1 },
2491{"aui", "s,t,u", 0x3c000000, 0xfc000000, RD_s|WR_t, 0, I32R6},
2492{"luxc1", "D,t(b)", 0x4c000005, 0xfc00f83f, LDD|WR_D|RD_t|RD_b|FP_D, 0, I5|I33|N55},
2493{"lw", "t,o(b)", 0x8c000000, 0xfc000000, LDD|RD_b|WR_t, 0, I1 },
2494{"lw", "t,A(b)", 0, (int) M_LW_AB, INSN_MACRO, 0, I1 },
2495{"lwc0", "E,o(b)", 0xc0000000, 0xfc000000, CLD|RD_b|WR_CC, 0, I1 },
2496{"lwc0", "E,A(b)", 0, (int) M_LWC0_AB, INSN_MACRO, 0, I1 },
2497{"lwc1", "T,o(b)", 0xc4000000, 0xfc000000, CLD|RD_b|WR_T|FP_S, 0, I1 },
2498{"lwc1", "E,o(b)", 0xc4000000, 0xfc000000, CLD|RD_b|WR_T|FP_S, 0, I1 },
2499{"lwc1", "T,A(b)", 0, (int) M_LWC1_AB, INSN_MACRO, 0, I1 },
2500{"lwc1", "E,A(b)", 0, (int) M_LWC1_AB, INSN_MACRO, 0, I1 },
2501{"l.s", "T,o(b)", 0xc4000000, 0xfc000000, CLD|RD_b|WR_T|FP_S, 0, I1 },
2502{"l.s", "T,A(b)", 0, (int) M_LWC1_AB, INSN_MACRO, 0, I1 },
2503{"lwc2", "E,o(b)", 0xc8000000, 0xfc000000, CLD|RD_b|WR_CC, 0, I1 },
2504{"lwc2", "E,A(b)", 0, (int) M_LWC2_AB, INSN_MACRO, 0, I1 },
2505{"lwc3", "E,o(b)", 0xcc000000, 0xfc000000, CLD|RD_b|WR_CC, 0, I1 },
2506{"lwc3", "E,A(b)", 0, (int) M_LWC3_AB, INSN_MACRO, 0, I1 },
2507{"lwl", "t,o(b)", 0x88000000, 0xfc000000, LDD|RD_b|WR_t, 0, I1 },
2508{"lwl", "t,A(b)", 0, (int) M_LWL_AB, INSN_MACRO, 0, I1 },
2509{"lcache", "t,o(b)", 0x88000000, 0xfc000000, LDD|RD_b|WR_t, 0, I2 },
2510{"lcache", "t,A(b)", 0, (int) M_LWL_AB, INSN_MACRO, 0, I2 },
2511{"lwr", "t,o(b)", 0x98000000, 0xfc000000, LDD|RD_b|WR_t, 0, I1 },
2512{"lwr", "t,A(b)", 0, (int) M_LWR_AB, INSN_MACRO, 0, I1 },
2513{"flush", "t,o(b)", 0x98000000, 0xfc000000, LDD|RD_b|WR_t, 0, I2 },
2514{"flush", "t,A(b)", 0, (int) M_LWR_AB, INSN_MACRO, 0, I2 },
2515{"fork", "d,s,t", 0x7c000008, 0xfc0007ff, TRAP|WR_d|RD_s|RD_t, 0, MT32 },
2516{"lwu", "t,o(b)", 0x9c000000, 0xfc000000, LDD|RD_b|WR_t, 0, I3 },
2517{"lwu", "t,A(b)", 0, (int) M_LWU_AB, INSN_MACRO, 0, I3 },
2518{"lwxc1", "D,t(b)", 0x4c000000, 0xfc00f83f, LDD|WR_D|RD_t|RD_b|FP_D, 0, I4|I33 },
2519{"lwxs", "d,t(b)", 0x70000088, 0xfc0007ff, LDD|RD_b|RD_t|WR_d, 0, SMT },
2520{"macc", "d,s,t", 0x00000028, 0xfc0007ff, RD_s|RD_t|WR_HILO|WR_d, 0, N412 },
2521{"macc", "d,s,t", 0x00000158, 0xfc0007ff, RD_s|RD_t|WR_HILO|WR_d, 0, N5 },
2522{"maccs", "d,s,t", 0x00000428, 0xfc0007ff, RD_s|RD_t|WR_HILO|WR_d, 0, N412 },
2523{"macchi", "d,s,t", 0x00000228, 0xfc0007ff, RD_s|RD_t|WR_HILO|WR_d, 0, N412 },
2524{"macchi", "d,s,t", 0x00000358, 0xfc0007ff, RD_s|RD_t|WR_HILO|WR_d, 0, N5 },
2525{"macchis", "d,s,t", 0x00000628, 0xfc0007ff, RD_s|RD_t|WR_HILO|WR_d, 0, N412 },
2526{"macchiu", "d,s,t", 0x00000268, 0xfc0007ff, RD_s|RD_t|WR_HILO|WR_d, 0, N412 },
2527{"macchiu", "d,s,t", 0x00000359, 0xfc0007ff, RD_s|RD_t|WR_HILO|WR_d, 0, N5 },
2528{"macchius","d,s,t", 0x00000668, 0xfc0007ff, RD_s|RD_t|WR_HILO|WR_d, 0, N412 },
2529{"maccu", "d,s,t", 0x00000068, 0xfc0007ff, RD_s|RD_t|WR_HILO|WR_d, 0, N412 },
2530{"maccu", "d,s,t", 0x00000159, 0xfc0007ff, RD_s|RD_t|WR_HILO|WR_d, 0, N5 },
2531{"maccus", "d,s,t", 0x00000468, 0xfc0007ff, RD_s|RD_t|WR_HILO|WR_d, 0, N412 },
2532{"mad", "s,t", 0x70000000, 0xfc00ffff, RD_s|RD_t|MOD_HILO, 0, P3 },
2533{"madu", "s,t", 0x70000001, 0xfc00ffff, RD_s|RD_t|MOD_HILO, 0, P3 },
2534{"madd.d", "D,R,S,T", 0x4c000021, 0xfc00003f, RD_R|RD_S|RD_T|WR_D|FP_D, 0, I4|I33 },
2535{"madd.s", "D,R,S,T", 0x4c000020, 0xfc00003f, RD_R|RD_S|RD_T|WR_D|FP_S, 0, I4|I33 },
2536{"madd.ps", "D,R,S,T", 0x4c000026, 0xfc00003f, RD_R|RD_S|RD_T|WR_D|FP_D, 0, I5|I33 },
2537{"madd", "s,t", 0x0000001c, 0xfc00ffff, RD_s|RD_t|WR_HILO, 0, L1 },
2538{"madd", "s,t", 0x70000000, 0xfc00ffff, RD_s|RD_t|MOD_HILO, 0, I32|N55 },
2539{"madd", "s,t", 0x70000000, 0xfc00ffff, RD_s|RD_t|WR_HILO|IS_M, 0, G1 },
2540{"madd", "7,s,t", 0x70000000, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D33 },
2541{"madd", "d,s,t", 0x70000000, 0xfc0007ff, RD_s|RD_t|WR_HILO|WR_d|IS_M, 0, G1 },
2542{"maddp", "s,t", 0x70000441, 0xfc00ffff, RD_s|RD_t|MOD_HILO, 0, SMT },
2543{"maddu", "s,t", 0x0000001d, 0xfc00ffff, RD_s|RD_t|WR_HILO, 0, L1 },
2544{"maddu", "s,t", 0x70000001, 0xfc00ffff, RD_s|RD_t|MOD_HILO, 0, I32|N55 },
2545{"maddu", "s,t", 0x70000001, 0xfc00ffff, RD_s|RD_t|WR_HILO|IS_M, 0, G1 },
2546{"maddu", "7,s,t", 0x70000001, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D33 },
2547{"maddu", "d,s,t", 0x70000001, 0xfc0007ff, RD_s|RD_t|WR_HILO|WR_d|IS_M, 0, G1 },
2548{"madd16", "s,t", 0x00000028, 0xfc00ffff, RD_s|RD_t|MOD_HILO, 0, N411 },
2549{"max.ob", "X,Y,Q", 0x78000007, 0xfc20003f, WR_D|RD_S|RD_T|FP_D, 0, MX|SB1 },
2550{"max.ob", "D,S,T", 0x4ac00007, 0xffe0003f, WR_D|RD_S|RD_T, 0, N54 },
2551{"max.ob", "D,S,T[e]", 0x48000007, 0xfe20003f, WR_D|RD_S|RD_T, 0, N54 },
2552{"max.ob", "D,S,k", 0x4bc00007, 0xffe0003f, WR_D|RD_S|RD_T, 0, N54 },
2553{"max.qh", "X,Y,Q", 0x78200007, 0xfc20003f, WR_D|RD_S|RD_T|FP_D, 0, MX },
2554{"mfpc", "t,P", 0x4000c801, 0xffe0ffc1, LCD|WR_t|RD_C0, 0, M1|N5 },
2555{"mfps", "t,P", 0x4000c800, 0xffe0ffc1, LCD|WR_t|RD_C0, 0, M1|N5 },
2556{"mftacx", "d", 0x41020021, 0xffff07ff, TRAP|WR_d|RD_a, 0, MT32 },
2557{"mftacx", "d,*", 0x41020021, 0xfff307ff, TRAP|WR_d|RD_a, 0, MT32 },
2558{"mftc0", "d,+t", 0x41000000, 0xffe007ff, TRAP|LCD|WR_d|RD_C0, 0, MT32 },
2559{"mftc0", "d,+T", 0x41000000, 0xffe007f8, TRAP|LCD|WR_d|RD_C0, 0, MT32 },
2560{"mftc0", "d,E,H", 0x41000000, 0xffe007f8, TRAP|LCD|WR_d|RD_C0, 0, MT32 },
2561{"mftc1", "d,T", 0x41000022, 0xffe007ff, TRAP|LCD|WR_d|RD_T|FP_S, 0, MT32 },
2562{"mftc1", "d,E", 0x41000022, 0xffe007ff, TRAP|LCD|WR_d|RD_T|FP_S, 0, MT32 },
2563{"mftc2", "d,E", 0x41000024, 0xffe007ff, TRAP|LCD|WR_d|RD_C2, 0, MT32 },
2564{"mftdsp", "d", 0x41100021, 0xffff07ff, TRAP|WR_d, 0, MT32 },
2565{"mftgpr", "d,t", 0x41000020, 0xffe007ff, TRAP|WR_d|RD_t, 0, MT32 },
2566{"mfthc1", "d,T", 0x41000032, 0xffe007ff, TRAP|LCD|WR_d|RD_T|FP_D, 0, MT32 },
2567{"mfthc1", "d,E", 0x41000032, 0xffe007ff, TRAP|LCD|WR_d|RD_T|FP_D, 0, MT32 },
2568{"mfthc2", "d,E", 0x41000034, 0xffe007ff, TRAP|LCD|WR_d|RD_C2, 0, MT32 },
2569{"mfthi", "d", 0x41010021, 0xffff07ff, TRAP|WR_d|RD_a, 0, MT32 },
2570{"mfthi", "d,*", 0x41010021, 0xfff307ff, TRAP|WR_d|RD_a, 0, MT32 },
2571{"mftlo", "d", 0x41000021, 0xffff07ff, TRAP|WR_d|RD_a, 0, MT32 },
2572{"mftlo", "d,*", 0x41000021, 0xfff307ff, TRAP|WR_d|RD_a, 0, MT32 },
2573{"mftr", "d,t,!,H,$", 0x41000000, 0xffe007c8, TRAP|WR_d, 0, MT32 },
2574{"mfc0", "t,G", 0x40000000, 0xffe007ff, LCD|WR_t|RD_C0, 0, I1 },
2575{"mfc0", "t,+D", 0x40000000, 0xffe007f8, LCD|WR_t|RD_C0, 0, I32 },
2576{"mfc0", "t,G,H", 0x40000000, 0xffe007f8, LCD|WR_t|RD_C0, 0, I32 },
2577{"mfc1", "t,S", 0x44000000, 0xffe007ff, LCD|WR_t|RD_S|FP_S, 0, I1 },
2578{"mfc1", "t,G", 0x44000000, 0xffe007ff, LCD|WR_t|RD_S|FP_S, 0, I1 },
2579{"mfhc1", "t,S", 0x44600000, 0xffe007ff, LCD|WR_t|RD_S|FP_D, 0, I33 },
2580{"mfhc1", "t,G", 0x44600000, 0xffe007ff, LCD|WR_t|RD_S|FP_D, 0, I33 },
2581
2582
2583
2584{"mfdr", "t,G", 0x7000003d, 0xffe007ff, LCD|WR_t|RD_C0, 0, N5 },
2585{"mfhi", "d", 0x00000010, 0xffff07ff, WR_d|RD_HI, 0, I1 },
2586{"mfhi", "d,9", 0x00000010, 0xff9f07ff, WR_d|RD_HI, 0, D32 },
2587{"mflo", "d", 0x00000012, 0xffff07ff, WR_d|RD_LO, 0, I1 },
2588{"mflo", "d,9", 0x00000012, 0xff9f07ff, WR_d|RD_LO, 0, D32 },
2589{"mflhxu", "d", 0x00000052, 0xffff07ff, WR_d|MOD_HILO, 0, SMT },
2590{"min.ob", "X,Y,Q", 0x78000006, 0xfc20003f, WR_D|RD_S|RD_T|FP_D, 0, MX|SB1 },
2591{"min.ob", "D,S,T", 0x4ac00006, 0xffe0003f, WR_D|RD_S|RD_T, 0, N54 },
2592{"min.ob", "D,S,T[e]", 0x48000006, 0xfe20003f, WR_D|RD_S|RD_T, 0, N54 },
2593{"min.ob", "D,S,k", 0x4bc00006, 0xffe0003f, WR_D|RD_S|RD_T, 0, N54 },
2594{"min.qh", "X,Y,Q", 0x78200006, 0xfc20003f, WR_D|RD_S|RD_T|FP_D, 0, MX },
2595{"mov.d", "D,S", 0x46200006, 0xffff003f, WR_D|RD_S|FP_D, 0, I1 },
2596{"mov.s", "D,S", 0x46000006, 0xffff003f, WR_D|RD_S|FP_S, 0, I1 },
2597{"mov.ps", "D,S", 0x46c00006, 0xffff003f, WR_D|RD_S|FP_D, 0, I5|I33 },
2598{"movf", "d,s,N", 0x00000001, 0xfc0307ff, WR_d|RD_s|RD_CC|FP_S|FP_D, 0, I4|I32 },
2599{"movf.d", "D,S,N", 0x46200011, 0xffe3003f, WR_D|RD_S|RD_CC|FP_D, 0, I4|I32 },
2600{"movf.l", "D,S,N", 0x46a00011, 0xffe3003f, WR_D|RD_S|RD_CC|FP_D, 0, MX|SB1 },
2601{"movf.l", "X,Y,N", 0x46a00011, 0xffe3003f, WR_D|RD_S|RD_CC|FP_D, 0, MX|SB1 },
2602{"movf.s", "D,S,N", 0x46000011, 0xffe3003f, WR_D|RD_S|RD_CC|FP_S, 0, I4|I32 },
2603{"movf.ps", "D,S,N", 0x46c00011, 0xffe3003f, WR_D|RD_S|RD_CC|FP_D, 0, I5|I33 },
2604{"movn", "d,v,t", 0x0000000b, 0xfc0007ff, WR_d|RD_s|RD_t, 0, I4|I32 },
2605{"ffc", "d,v", 0x0000000b, 0xfc1f07ff, WR_d|RD_s, 0, L1 },
2606{"movn.d", "D,S,t", 0x46200013, 0xffe0003f, WR_D|RD_S|RD_t|FP_D, 0, I4|I32 },
2607{"movn.l", "D,S,t", 0x46a00013, 0xffe0003f, WR_D|RD_S|RD_t|FP_D, 0, MX|SB1 },
2608{"movn.l", "X,Y,t", 0x46a00013, 0xffe0003f, WR_D|RD_S|RD_t|FP_D, 0, MX|SB1 },
2609{"movn.s", "D,S,t", 0x46000013, 0xffe0003f, WR_D|RD_S|RD_t|FP_S, 0, I4|I32 },
2610{"movn.ps", "D,S,t", 0x46c00013, 0xffe0003f, WR_D|RD_S|RD_t|FP_D, 0, I5|I33 },
2611{"movt", "d,s,N", 0x00010001, 0xfc0307ff, WR_d|RD_s|RD_CC|FP_S|FP_D, 0, I4|I32 },
2612{"movt.d", "D,S,N", 0x46210011, 0xffe3003f, WR_D|RD_S|RD_CC|FP_D, 0, I4|I32 },
2613{"movt.l", "D,S,N", 0x46a10011, 0xffe3003f, WR_D|RD_S|RD_CC|FP_D, 0, MX|SB1 },
2614{"movt.l", "X,Y,N", 0x46a10011, 0xffe3003f, WR_D|RD_S|RD_CC|FP_D, 0, MX|SB1 },
2615{"movt.s", "D,S,N", 0x46010011, 0xffe3003f, WR_D|RD_S|RD_CC|FP_S, 0, I4|I32 },
2616{"movt.ps", "D,S,N", 0x46c10011, 0xffe3003f, WR_D|RD_S|RD_CC|FP_D, 0, I5|I33 },
2617{"movz", "d,v,t", 0x0000000a, 0xfc0007ff, WR_d|RD_s|RD_t, 0, I4|I32 },
2618{"ffs", "d,v", 0x0000000a, 0xfc1f07ff, WR_d|RD_s, 0, L1 },
2619{"movz.d", "D,S,t", 0x46200012, 0xffe0003f, WR_D|RD_S|RD_t|FP_D, 0, I4|I32 },
2620{"movz.l", "D,S,t", 0x46a00012, 0xffe0003f, WR_D|RD_S|RD_t|FP_D, 0, MX|SB1 },
2621{"movz.l", "X,Y,t", 0x46a00012, 0xffe0003f, WR_D|RD_S|RD_t|FP_D, 0, MX|SB1 },
2622{"movz.s", "D,S,t", 0x46000012, 0xffe0003f, WR_D|RD_S|RD_t|FP_S, 0, I4|I32 },
2623{"movz.ps", "D,S,t", 0x46c00012, 0xffe0003f, WR_D|RD_S|RD_t|FP_D, 0, I5|I33 },
2624{"msac", "d,s,t", 0x000001d8, 0xfc0007ff, RD_s|RD_t|WR_HILO|WR_d, 0, N5 },
2625{"msacu", "d,s,t", 0x000001d9, 0xfc0007ff, RD_s|RD_t|WR_HILO|WR_d, 0, N5 },
2626{"msachi", "d,s,t", 0x000003d8, 0xfc0007ff, RD_s|RD_t|WR_HILO|WR_d, 0, N5 },
2627{"msachiu", "d,s,t", 0x000003d9, 0xfc0007ff, RD_s|RD_t|WR_HILO|WR_d, 0, N5 },
2628
2629{"msgn.qh", "X,Y,Q", 0x78200000, 0xfc20003f, WR_D|RD_S|RD_T|FP_D, 0, MX },
2630{"msub.d", "D,R,S,T", 0x4c000029, 0xfc00003f, RD_R|RD_S|RD_T|WR_D|FP_D, 0, I4|I33 },
2631{"msub.s", "D,R,S,T", 0x4c000028, 0xfc00003f, RD_R|RD_S|RD_T|WR_D|FP_S, 0, I4|I33 },
2632{"msub.ps", "D,R,S,T", 0x4c00002e, 0xfc00003f, RD_R|RD_S|RD_T|WR_D|FP_D, 0, I5|I33 },
2633{"msub", "s,t", 0x0000001e, 0xfc00ffff, RD_s|RD_t|WR_HILO, 0, L1 },
2634{"msub", "s,t", 0x70000004, 0xfc00ffff, RD_s|RD_t|MOD_HILO, 0, I32|N55 },
2635{"msub", "7,s,t", 0x70000004, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D33 },
2636{"msubu", "s,t", 0x0000001f, 0xfc00ffff, RD_s|RD_t|WR_HILO, 0, L1 },
2637{"msubu", "s,t", 0x70000005, 0xfc00ffff, RD_s|RD_t|MOD_HILO, 0, I32|N55 },
2638{"msubu", "7,s,t", 0x70000005, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D33 },
2639{"mtpc", "t,P", 0x4080c801, 0xffe0ffc1, COD|RD_t|WR_C0, 0, M1|N5 },
2640{"mtps", "t,P", 0x4080c800, 0xffe0ffc1, COD|RD_t|WR_C0, 0, M1|N5 },
2641{"mtc0", "t,G", 0x40800000, 0xffe007ff, COD|RD_t|WR_C0|WR_CC, 0, I1 },
2642{"mtc0", "t,+D", 0x40800000, 0xffe007f8, COD|RD_t|WR_C0|WR_CC, 0, I32 },
2643{"mtc0", "t,G,H", 0x40800000, 0xffe007f8, COD|RD_t|WR_C0|WR_CC, 0, I32 },
2644{"mtc1", "t,S", 0x44800000, 0xffe007ff, COD|RD_t|WR_S|FP_S, 0, I1 },
2645{"mtc1", "t,G", 0x44800000, 0xffe007ff, COD|RD_t|WR_S|FP_S, 0, I1 },
2646{"mthc1", "t,S", 0x44e00000, 0xffe007ff, COD|RD_t|WR_S|FP_D, 0, I33 },
2647{"mthc1", "t,G", 0x44e00000, 0xffe007ff, COD|RD_t|WR_S|FP_D, 0, I33 },
2648
2649
2650
2651{"mtdr", "t,G", 0x7080003d, 0xffe007ff, COD|RD_t|WR_C0, 0, N5 },
2652{"mthi", "s", 0x00000011, 0xfc1fffff, RD_s|WR_HI, 0, I1 },
2653{"mthi", "s,7", 0x00000011, 0xfc1fe7ff, RD_s|WR_HI, 0, D32 },
2654{"mtlo", "s", 0x00000013, 0xfc1fffff, RD_s|WR_LO, 0, I1 },
2655{"mtlo", "s,7", 0x00000013, 0xfc1fe7ff, RD_s|WR_LO, 0, D32 },
2656{"mtlhx", "s", 0x00000053, 0xfc1fffff, RD_s|MOD_HILO, 0, SMT },
2657{"mttc0", "t,G", 0x41800000, 0xffe007ff, TRAP|COD|RD_t|WR_C0|WR_CC, 0, MT32 },
2658{"mttc0", "t,+D", 0x41800000, 0xffe007f8, TRAP|COD|RD_t|WR_C0|WR_CC, 0, MT32 },
2659{"mttc0", "t,G,H", 0x41800000, 0xffe007f8, TRAP|COD|RD_t|WR_C0|WR_CC, 0, MT32 },
2660{"mttc1", "t,S", 0x41800022, 0xffe007ff, TRAP|COD|RD_t|WR_S|FP_S, 0, MT32 },
2661{"mttc1", "t,G", 0x41800022, 0xffe007ff, TRAP|COD|RD_t|WR_S|FP_S, 0, MT32 },
2662{"mttc2", "t,g", 0x41800024, 0xffe007ff, TRAP|COD|RD_t|WR_C2|WR_CC, 0, MT32 },
2663{"mttacx", "t", 0x41801021, 0xffe0ffff, TRAP|WR_a|RD_t, 0, MT32 },
2664{"mttacx", "t,&", 0x41801021, 0xffe09fff, TRAP|WR_a|RD_t, 0, MT32 },
2665{"mttdsp", "t", 0x41808021, 0xffe0ffff, TRAP|RD_t, 0, MT32 },
2666{"mttgpr", "t,d", 0x41800020, 0xffe007ff, TRAP|WR_d|RD_t, 0, MT32 },
2667{"mtthc1", "t,S", 0x41800032, 0xffe007ff, TRAP|COD|RD_t|WR_S|FP_D, 0, MT32 },
2668{"mtthc1", "t,G", 0x41800032, 0xffe007ff, TRAP|COD|RD_t|WR_S|FP_D, 0, MT32 },
2669{"mtthc2", "t,g", 0x41800034, 0xffe007ff, TRAP|COD|RD_t|WR_C2|WR_CC, 0, MT32 },
2670{"mtthi", "t", 0x41800821, 0xffe0ffff, TRAP|WR_a|RD_t, 0, MT32 },
2671{"mtthi", "t,&", 0x41800821, 0xffe09fff, TRAP|WR_a|RD_t, 0, MT32 },
2672{"mttlo", "t", 0x41800021, 0xffe0ffff, TRAP|WR_a|RD_t, 0, MT32 },
2673{"mttlo", "t,&", 0x41800021, 0xffe09fff, TRAP|WR_a|RD_t, 0, MT32 },
2674{"mttr", "t,d,!,H,$", 0x41800000, 0xffe007c8, TRAP|RD_t, 0, MT32 },
2675{"mul.d", "D,V,T", 0x46200002, 0xffe0003f, WR_D|RD_S|RD_T|FP_D, 0, I1 },
2676{"mul.s", "D,V,T", 0x46000002, 0xffe0003f, WR_D|RD_S|RD_T|FP_S, 0, I1 },
2677{"mul.ob", "X,Y,Q", 0x78000030, 0xfc20003f, WR_D|RD_S|RD_T|FP_D, 0, MX|SB1 },
2678{"mul.ob", "D,S,T", 0x4ac00030, 0xffe0003f, WR_D|RD_S|RD_T, 0, N54 },
2679{"mul.ob", "D,S,T[e]", 0x48000030, 0xfe20003f, WR_D|RD_S|RD_T, 0, N54 },
2680{"mul.ob", "D,S,k", 0x4bc00030, 0xffe0003f, WR_D|RD_S|RD_T, 0, N54 },
2681{"mul.ps", "D,V,T", 0x46c00002, 0xffe0003f, WR_D|RD_S|RD_T|FP_D, 0, I5|I33 },
2682{"mul.qh", "X,Y,Q", 0x78200030, 0xfc20003f, WR_D|RD_S|RD_T|FP_D, 0, MX },
2683{"mul", "d,v,t", 0x70000002, 0xfc0007ff, WR_d|RD_s|RD_t|WR_HILO, 0, I32|P3|N55},
2684{"mul", "d,s,t", 0x00000058, 0xfc0007ff, RD_s|RD_t|WR_HILO|WR_d, 0, N54 },
2685{"mul", "d,v,t", 0, (int) M_MUL, INSN_MACRO, 0, I1 },
2686{"mul", "d,v,I", 0, (int) M_MUL_I, INSN_MACRO, 0, I1 },
2687{"mula.ob", "Y,Q", 0x78000033, 0xfc2007ff, RD_S|RD_T|FP_D, WR_MACC, MX|SB1 },
2688{"mula.ob", "S,T", 0x4ac00033, 0xffe007ff, WR_CC|RD_S|RD_T, 0, N54 },
2689{"mula.ob", "S,T[e]", 0x48000033, 0xfe2007ff, WR_CC|RD_S|RD_T, 0, N54 },
2690{"mula.ob", "S,k", 0x4bc00033, 0xffe007ff, WR_CC|RD_S|RD_T, 0, N54 },
2691{"mula.qh", "Y,Q", 0x78200033, 0xfc2007ff, RD_S|RD_T|FP_D, WR_MACC, MX },
2692{"mulhi", "d,s,t", 0x00000258, 0xfc0007ff, RD_s|RD_t|WR_HILO|WR_d, 0, N5 },
2693{"mulhiu", "d,s,t", 0x00000259, 0xfc0007ff, RD_s|RD_t|WR_HILO|WR_d, 0, N5 },
2694{"mull.ob", "Y,Q", 0x78000433, 0xfc2007ff, RD_S|RD_T|FP_D, WR_MACC, MX|SB1 },
2695{"mull.ob", "S,T", 0x4ac00433, 0xffe007ff, WR_CC|RD_S|RD_T, 0, N54 },
2696{"mull.ob", "S,T[e]", 0x48000433, 0xfe2007ff, WR_CC|RD_S|RD_T, 0, N54 },
2697{"mull.ob", "S,k", 0x4bc00433, 0xffe007ff, WR_CC|RD_S|RD_T, 0, N54 },
2698{"mull.qh", "Y,Q", 0x78200433, 0xfc2007ff, RD_S|RD_T|FP_D, WR_MACC, MX },
2699{"mulo", "d,v,t", 0, (int) M_MULO, INSN_MACRO, 0, I1 },
2700{"mulo", "d,v,I", 0, (int) M_MULO_I, INSN_MACRO, 0, I1 },
2701{"mulou", "d,v,t", 0, (int) M_MULOU, INSN_MACRO, 0, I1 },
2702{"mulou", "d,v,I", 0, (int) M_MULOU_I, INSN_MACRO, 0, I1 },
2703{"mulr.ps", "D,S,T", 0x46c0001a, 0xffe0003f, WR_D|RD_S|RD_T|FP_D, 0, M3D },
2704{"muls", "d,s,t", 0x000000d8, 0xfc0007ff, RD_s|RD_t|WR_HILO|WR_d, 0, N5 },
2705{"mulsu", "d,s,t", 0x000000d9, 0xfc0007ff, RD_s|RD_t|WR_HILO|WR_d, 0, N5 },
2706{"mulshi", "d,s,t", 0x000002d8, 0xfc0007ff, RD_s|RD_t|WR_HILO|WR_d, 0, N5 },
2707{"mulshiu", "d,s,t", 0x000002d9, 0xfc0007ff, RD_s|RD_t|WR_HILO|WR_d, 0, N5 },
2708{"muls.ob", "Y,Q", 0x78000032, 0xfc2007ff, RD_S|RD_T|FP_D, WR_MACC, MX|SB1 },
2709{"muls.ob", "S,T", 0x4ac00032, 0xffe007ff, WR_CC|RD_S|RD_T, 0, N54 },
2710{"muls.ob", "S,T[e]", 0x48000032, 0xfe2007ff, WR_CC|RD_S|RD_T, 0, N54 },
2711{"muls.ob", "S,k", 0x4bc00032, 0xffe007ff, WR_CC|RD_S|RD_T, 0, N54 },
2712{"muls.qh", "Y,Q", 0x78200032, 0xfc2007ff, RD_S|RD_T|FP_D, WR_MACC, MX },
2713{"mulsl.ob", "Y,Q", 0x78000432, 0xfc2007ff, RD_S|RD_T|FP_D, WR_MACC, MX|SB1 },
2714{"mulsl.ob", "S,T", 0x4ac00432, 0xffe007ff, WR_CC|RD_S|RD_T, 0, N54 },
2715{"mulsl.ob", "S,T[e]", 0x48000432, 0xfe2007ff, WR_CC|RD_S|RD_T, 0, N54 },
2716{"mulsl.ob", "S,k", 0x4bc00432, 0xffe007ff, WR_CC|RD_S|RD_T, 0, N54 },
2717{"mulsl.qh", "Y,Q", 0x78200432, 0xfc2007ff, RD_S|RD_T|FP_D, WR_MACC, MX },
2718{"mult", "s,t", 0x00000018, 0xfc00ffff, RD_s|RD_t|WR_HILO|IS_M, 0, I1 },
2719{"mult", "7,s,t", 0x00000018, 0xfc00e7ff, WR_a|RD_s|RD_t, 0, D33 },
2720{"mult", "d,s,t", 0x00000018, 0xfc0007ff, RD_s|RD_t|WR_HILO|WR_d|IS_M, 0, G1 },
2721{"multp", "s,t", 0x00000459, 0xfc00ffff, RD_s|RD_t|MOD_HILO, 0, SMT },
2722{"multu", "s,t", 0x00000019, 0xfc00ffff, RD_s|RD_t|WR_HILO|IS_M, 0, I1 },
2723{"multu", "7,s,t", 0x00000019, 0xfc00e7ff, WR_a|RD_s|RD_t, 0, D33 },
2724{"multu", "d,s,t", 0x00000019, 0xfc0007ff, RD_s|RD_t|WR_HILO|WR_d|IS_M, 0, G1 },
2725{"mulu", "d,s,t", 0x00000059, 0xfc0007ff, RD_s|RD_t|WR_HILO|WR_d, 0, N5 },
2726{"neg", "d,w", 0x00000022, 0xffe007ff, WR_d|RD_t, 0, I1 },
2727{"negu", "d,w", 0x00000023, 0xffe007ff, WR_d|RD_t, 0, I1 },
2728{"neg.d", "D,V", 0x46200007, 0xffff003f, WR_D|RD_S|FP_D, 0, I1 },
2729{"neg.s", "D,V", 0x46000007, 0xffff003f, WR_D|RD_S|FP_S, 0, I1 },
2730{"neg.ps", "D,V", 0x46c00007, 0xffff003f, WR_D|RD_S|FP_D, 0, I5|I33 },
2731{"nmadd.d", "D,R,S,T", 0x4c000031, 0xfc00003f, RD_R|RD_S|RD_T|WR_D|FP_D, 0, I4|I33 },
2732{"nmadd.s", "D,R,S,T", 0x4c000030, 0xfc00003f, RD_R|RD_S|RD_T|WR_D|FP_S, 0, I4|I33 },
2733{"nmadd.ps","D,R,S,T", 0x4c000036, 0xfc00003f, RD_R|RD_S|RD_T|WR_D|FP_D, 0, I5|I33 },
2734{"nmsub.d", "D,R,S,T", 0x4c000039, 0xfc00003f, RD_R|RD_S|RD_T|WR_D|FP_D, 0, I4|I33 },
2735{"nmsub.s", "D,R,S,T", 0x4c000038, 0xfc00003f, RD_R|RD_S|RD_T|WR_D|FP_S, 0, I4|I33 },
2736{"nmsub.ps","D,R,S,T", 0x4c00003e, 0xfc00003f, RD_R|RD_S|RD_T|WR_D|FP_D, 0, I5|I33 },
2737
2738{"nor", "d,v,t", 0x00000027, 0xfc0007ff, WR_d|RD_s|RD_t, 0, I1 },
2739{"nor", "t,r,I", 0, (int) M_NOR_I, INSN_MACRO, 0, I1 },
2740{"nor.ob", "X,Y,Q", 0x7800000f, 0xfc20003f, WR_D|RD_S|RD_T|FP_D, 0, MX|SB1 },
2741{"nor.ob", "D,S,T", 0x4ac0000f, 0xffe0003f, WR_D|RD_S|RD_T, 0, N54 },
2742{"nor.ob", "D,S,T[e]", 0x4800000f, 0xfe20003f, WR_D|RD_S|RD_T, 0, N54 },
2743{"nor.ob", "D,S,k", 0x4bc0000f, 0xffe0003f, WR_D|RD_S|RD_T, 0, N54 },
2744{"nor.qh", "X,Y,Q", 0x7820000f, 0xfc20003f, WR_D|RD_S|RD_T|FP_D, 0, MX },
2745{"not", "d,v", 0x00000027, 0xfc1f07ff, WR_d|RD_s|RD_t, 0, I1 },
2746{"or", "d,v,t", 0x00000025, 0xfc0007ff, WR_d|RD_s|RD_t, 0, I1 },
2747{"or", "t,r,I", 0, (int) M_OR_I, INSN_MACRO, 0, I1 },
2748{"or.ob", "X,Y,Q", 0x7800000e, 0xfc20003f, WR_D|RD_S|RD_T|FP_D, 0, MX|SB1 },
2749{"or.ob", "D,S,T", 0x4ac0000e, 0xffe0003f, WR_D|RD_S|RD_T, 0, N54 },
2750{"or.ob", "D,S,T[e]", 0x4800000e, 0xfe20003f, WR_D|RD_S|RD_T, 0, N54 },
2751{"or.ob", "D,S,k", 0x4bc0000e, 0xffe0003f, WR_D|RD_S|RD_T, 0, N54 },
2752{"or.qh", "X,Y,Q", 0x7820000e, 0xfc20003f, WR_D|RD_S|RD_T|FP_D, 0, MX },
2753{"ori", "t,r,i", 0x34000000, 0xfc000000, WR_t|RD_s, 0, I1 },
2754{"pabsdiff.ob", "X,Y,Q",0x78000009, 0xfc20003f, WR_D|RD_S|RD_T|FP_D, 0, SB1 },
2755{"pabsdiffc.ob", "Y,Q", 0x78000035, 0xfc2007ff, RD_S|RD_T|FP_D, WR_MACC, SB1 },
2756{"pavg.ob", "X,Y,Q", 0x78000008, 0xfc20003f, WR_D|RD_S|RD_T|FP_D, 0, SB1 },
2757{"pickf.ob", "X,Y,Q", 0x78000002, 0xfc20003f, WR_D|RD_S|RD_T|FP_D, 0, MX|SB1 },
2758{"pickf.ob", "D,S,T", 0x4ac00002, 0xffe0003f, WR_D|RD_S|RD_T, 0, N54 },
2759{"pickf.ob", "D,S,T[e]",0x48000002, 0xfe20003f, WR_D|RD_S|RD_T, 0, N54 },
2760{"pickf.ob", "D,S,k", 0x4bc00002, 0xffe0003f, WR_D|RD_S|RD_T, 0, N54 },
2761{"pickf.qh", "X,Y,Q", 0x78200002, 0xfc20003f, WR_D|RD_S|RD_T|FP_D, 0, MX },
2762{"pickt.ob", "X,Y,Q", 0x78000003, 0xfc20003f, WR_D|RD_S|RD_T|FP_D, 0, MX|SB1 },
2763{"pickt.ob", "D,S,T", 0x4ac00003, 0xffe0003f, WR_D|RD_S|RD_T, 0, N54 },
2764{"pickt.ob", "D,S,T[e]",0x48000003, 0xfe20003f, WR_D|RD_S|RD_T, 0, N54 },
2765{"pickt.ob", "D,S,k", 0x4bc00003, 0xffe0003f, WR_D|RD_S|RD_T, 0, N54 },
2766{"pickt.qh", "X,Y,Q", 0x78200003, 0xfc20003f, WR_D|RD_S|RD_T|FP_D, 0, MX },
2767{"pll.ps", "D,V,T", 0x46c0002c, 0xffe0003f, WR_D|RD_S|RD_T|FP_D, 0, I5|I33 },
2768{"plu.ps", "D,V,T", 0x46c0002d, 0xffe0003f, WR_D|RD_S|RD_T|FP_D, 0, I5|I33 },
2769
2770{"pul.ps", "D,V,T", 0x46c0002e, 0xffe0003f, WR_D|RD_S|RD_T|FP_D, 0, I5|I33 },
2771{"puu.ps", "D,V,T", 0x46c0002f, 0xffe0003f, WR_D|RD_S|RD_T|FP_D, 0, I5|I33 },
2772{"pperm", "s,t", 0x70000481, 0xfc00ffff, MOD_HILO|RD_s|RD_t, 0, SMT },
2773{"rach.ob", "X", 0x7a00003f, 0xfffff83f, WR_D|FP_D, RD_MACC, MX|SB1 },
2774{"rach.ob", "D", 0x4a00003f, 0xfffff83f, WR_D, 0, N54 },
2775{"rach.qh", "X", 0x7a20003f, 0xfffff83f, WR_D|FP_D, RD_MACC, MX },
2776{"racl.ob", "X", 0x7800003f, 0xfffff83f, WR_D|FP_D, RD_MACC, MX|SB1 },
2777{"racl.ob", "D", 0x4800003f, 0xfffff83f, WR_D, 0, N54 },
2778{"racl.qh", "X", 0x7820003f, 0xfffff83f, WR_D|FP_D, RD_MACC, MX },
2779{"racm.ob", "X", 0x7900003f, 0xfffff83f, WR_D|FP_D, RD_MACC, MX|SB1 },
2780{"racm.ob", "D", 0x4900003f, 0xfffff83f, WR_D, 0, N54 },
2781{"racm.qh", "X", 0x7920003f, 0xfffff83f, WR_D|FP_D, RD_MACC, MX },
2782{"recip.d", "D,S", 0x46200015, 0xffff003f, WR_D|RD_S|FP_D, 0, I4|I33 },
2783{"recip.ps","D,S", 0x46c00015, 0xffff003f, WR_D|RD_S|FP_D, 0, SB1 },
2784{"recip.s", "D,S", 0x46000015, 0xffff003f, WR_D|RD_S|FP_S, 0, I4|I33 },
2785{"recip1.d", "D,S", 0x4620001d, 0xffff003f, WR_D|RD_S|FP_D, 0, M3D },
2786{"recip1.ps", "D,S", 0x46c0001d, 0xffff003f, WR_D|RD_S|FP_S, 0, M3D },
2787{"recip1.s", "D,S", 0x4600001d, 0xffff003f, WR_D|RD_S|FP_S, 0, M3D },
2788{"recip2.d", "D,S,T", 0x4620001c, 0xffe0003f, WR_D|RD_S|RD_T|FP_D, 0, M3D },
2789{"recip2.ps", "D,S,T", 0x46c0001c, 0xffe0003f, WR_D|RD_S|RD_T|FP_S, 0, M3D },
2790{"recip2.s", "D,S,T", 0x4600001c, 0xffe0003f, WR_D|RD_S|RD_T|FP_S, 0, M3D },
2791{"rem", "z,s,t", 0x0000001a, 0xfc00ffff, RD_s|RD_t|WR_HILO, 0, I1 },
2792{"rem", "d,v,t", 0, (int) M_REM_3, INSN_MACRO, 0, I1 },
2793{"rem", "d,v,I", 0, (int) M_REM_3I, INSN_MACRO, 0, I1 },
2794{"remu", "z,s,t", 0x0000001b, 0xfc00ffff, RD_s|RD_t|WR_HILO, 0, I1 },
2795{"remu", "d,v,t", 0, (int) M_REMU_3, INSN_MACRO, 0, I1 },
2796{"remu", "d,v,I", 0, (int) M_REMU_3I, INSN_MACRO, 0, I1 },
2797{"rdhwr", "t,K", 0x7c00003b, 0xffe007ff, WR_t, 0, I33 },
2798{"rdpgpr", "d,w", 0x41400000, 0xffe007ff, WR_d, 0, I33 },
2799{"rfe", "", 0x42000010, 0xffffffff, 0, 0, I1|T3 },
2800{"rnas.qh", "X,Q", 0x78200025, 0xfc20f83f, WR_D|RD_T|FP_D, RD_MACC, MX },
2801{"rnau.ob", "X,Q", 0x78000021, 0xfc20f83f, WR_D|RD_T|FP_D, RD_MACC, MX|SB1 },
2802{"rnau.qh", "X,Q", 0x78200021, 0xfc20f83f, WR_D|RD_T|FP_D, RD_MACC, MX },
2803{"rnes.qh", "X,Q", 0x78200026, 0xfc20f83f, WR_D|RD_T|FP_D, RD_MACC, MX },
2804{"rneu.ob", "X,Q", 0x78000022, 0xfc20f83f, WR_D|RD_T|FP_D, RD_MACC, MX|SB1 },
2805{"rneu.qh", "X,Q", 0x78200022, 0xfc20f83f, WR_D|RD_T|FP_D, RD_MACC, MX },
2806{"rol", "d,v,t", 0, (int) M_ROL, INSN_MACRO, 0, I1 },
2807{"rol", "d,v,I", 0, (int) M_ROL_I, INSN_MACRO, 0, I1 },
2808{"ror", "d,v,t", 0, (int) M_ROR, INSN_MACRO, 0, I1 },
2809{"ror", "d,v,I", 0, (int) M_ROR_I, INSN_MACRO, 0, I1 },
2810{"ror", "d,w,<", 0x00200002, 0xffe0003f, WR_d|RD_t, 0, N5|I33|SMT },
2811{"rorv", "d,t,s", 0x00000046, 0xfc0007ff, RD_t|RD_s|WR_d, 0, N5|I33|SMT },
2812{"rotl", "d,v,t", 0, (int) M_ROL, INSN_MACRO, 0, I33|SMT },
2813{"rotl", "d,v,I", 0, (int) M_ROL_I, INSN_MACRO, 0, I33|SMT },
2814{"rotr", "d,v,t", 0, (int) M_ROR, INSN_MACRO, 0, I33|SMT },
2815{"rotr", "d,v,I", 0, (int) M_ROR_I, INSN_MACRO, 0, I33|SMT },
2816{"rotrv", "d,t,s", 0x00000046, 0xfc0007ff, RD_t|RD_s|WR_d, 0, I33|SMT },
2817{"round.l.d", "D,S", 0x46200008, 0xffff003f, WR_D|RD_S|FP_D, 0, I3|I33 },
2818{"round.l.s", "D,S", 0x46000008, 0xffff003f, WR_D|RD_S|FP_S|FP_D, 0, I3|I33 },
2819{"round.w.d", "D,S", 0x4620000c, 0xffff003f, WR_D|RD_S|FP_S|FP_D, 0, I2 },
2820{"round.w.s", "D,S", 0x4600000c, 0xffff003f, WR_D|RD_S|FP_S, 0, I2 },
2821{"rsqrt.d", "D,S", 0x46200016, 0xffff003f, WR_D|RD_S|FP_D, 0, I4|I33 },
2822{"rsqrt.ps","D,S", 0x46c00016, 0xffff003f, WR_D|RD_S|FP_D, 0, SB1 },
2823{"rsqrt.s", "D,S", 0x46000016, 0xffff003f, WR_D|RD_S|FP_S, 0, I4|I33 },
2824{"rsqrt1.d", "D,S", 0x4620001e, 0xffff003f, WR_D|RD_S|FP_D, 0, M3D },
2825{"rsqrt1.ps", "D,S", 0x46c0001e, 0xffff003f, WR_D|RD_S|FP_S, 0, M3D },
2826{"rsqrt1.s", "D,S", 0x4600001e, 0xffff003f, WR_D|RD_S|FP_S, 0, M3D },
2827{"rsqrt2.d", "D,S,T", 0x4620001f, 0xffe0003f, WR_D|RD_S|RD_T|FP_D, 0, M3D },
2828{"rsqrt2.ps", "D,S,T", 0x46c0001f, 0xffe0003f, WR_D|RD_S|RD_T|FP_S, 0, M3D },
2829{"rsqrt2.s", "D,S,T", 0x4600001f, 0xffe0003f, WR_D|RD_S|RD_T|FP_S, 0, M3D },
2830{"rzs.qh", "X,Q", 0x78200024, 0xfc20f83f, WR_D|RD_T|FP_D, RD_MACC, MX },
2831{"rzu.ob", "X,Q", 0x78000020, 0xfc20f83f, WR_D|RD_T|FP_D, RD_MACC, MX|SB1 },
2832{"rzu.ob", "D,k", 0x4bc00020, 0xffe0f83f, WR_D|RD_S|RD_T, 0, N54 },
2833{"rzu.qh", "X,Q", 0x78200020, 0xfc20f83f, WR_D|RD_T|FP_D, RD_MACC, MX },
2834{"sb", "t,o(b)", 0xa0000000, 0xfc000000, SM|RD_t|RD_b, 0, I1 },
2835{"sb", "t,A(b)", 0, (int) M_SB_AB, INSN_MACRO, 0, I1 },
2836{"sc", "t,o(b)", 0xe0000000, 0xfc000000, SM|RD_t|WR_t|RD_b, 0, I2 },
2837{"sc", "t,A(b)", 0, (int) M_SC_AB, INSN_MACRO, 0, I2 },
2838{"scd", "t,o(b)", 0xf0000000, 0xfc000000, SM|RD_t|WR_t|RD_b, 0, I3 },
2839{"scd", "t,A(b)", 0, (int) M_SCD_AB, INSN_MACRO, 0, I3 },
2840{"sd", "t,o(b)", 0xfc000000, 0xfc000000, SM|RD_t|RD_b, 0, I3 },
2841{"sd", "t,o(b)", 0, (int) M_SD_OB, INSN_MACRO, 0, I1 },
2842{"sd", "t,A(b)", 0, (int) M_SD_AB, INSN_MACRO, 0, I1 },
2843{"sdbbp", "", 0x0000000e, 0xffffffff, TRAP, 0, G2 },
2844{"sdbbp", "c", 0x0000000e, 0xfc00ffff, TRAP, 0, G2 },
2845{"sdbbp", "c,q", 0x0000000e, 0xfc00003f, TRAP, 0, G2 },
2846{"sdbbp", "", 0x7000003f, 0xffffffff, TRAP, 0, I32 },
2847{"sdbbp", "B", 0x7000003f, 0xfc00003f, TRAP, 0, I32 },
2848{"sdc1", "T,o(b)", 0xf4000000, 0xfc000000, SM|RD_T|RD_b|FP_D, 0, I2 },
2849{"sdc1", "E,o(b)", 0xf4000000, 0xfc000000, SM|RD_T|RD_b|FP_D, 0, I2 },
2850{"sdc1", "T,A(b)", 0, (int) M_SDC1_AB, INSN_MACRO, 0, I2 },
2851{"sdc1", "E,A(b)", 0, (int) M_SDC1_AB, INSN_MACRO, 0, I2 },
2852{"sdc2", "E,o(b)", 0xf8000000, 0xfc000000, SM|RD_C2|RD_b, 0, I2 },
2853{"sdc2", "E,A(b)", 0, (int) M_SDC2_AB, INSN_MACRO, 0, I2 },
2854{"sdc3", "E,o(b)", 0xfc000000, 0xfc000000, SM|RD_C3|RD_b, 0, I2 },
2855{"sdc3", "E,A(b)", 0, (int) M_SDC3_AB, INSN_MACRO, 0, I2 },
2856{"s.d", "T,o(b)", 0xf4000000, 0xfc000000, SM|RD_T|RD_b|FP_D, 0, I2 },
2857{"s.d", "T,o(b)", 0, (int) M_S_DOB, INSN_MACRO, 0, I1 },
2858{"s.d", "T,A(b)", 0, (int) M_S_DAB, INSN_MACRO, 0, I1 },
2859{"sdl", "t,o(b)", 0xb0000000, 0xfc000000, SM|RD_t|RD_b, 0, I3 },
2860{"sdl", "t,A(b)", 0, (int) M_SDL_AB, INSN_MACRO, 0, I3 },
2861{"sdr", "t,o(b)", 0xb4000000, 0xfc000000, SM|RD_t|RD_b, 0, I3 },
2862{"sdr", "t,A(b)", 0, (int) M_SDR_AB, INSN_MACRO, 0, I3 },
2863{"sdxc1", "S,t(b)", 0x4c000009, 0xfc0007ff, SM|RD_S|RD_t|RD_b|FP_D, 0, I4|I33 },
2864{"seb", "d,w", 0x7c000420, 0xffe007ff, WR_d|RD_t, 0, I33 },
2865{"seh", "d,w", 0x7c000620, 0xffe007ff, WR_d|RD_t, 0, I33 },
2866{"selsl", "d,v,t", 0x00000005, 0xfc0007ff, WR_d|RD_s|RD_t, 0, L1 },
2867{"selsr", "d,v,t", 0x00000001, 0xfc0007ff, WR_d|RD_s|RD_t, 0, L1 },
2868{"seq", "d,v,t", 0, (int) M_SEQ, INSN_MACRO, 0, I1 },
2869{"seq", "d,v,I", 0, (int) M_SEQ_I, INSN_MACRO, 0, I1 },
2870{"sge", "d,v,t", 0, (int) M_SGE, INSN_MACRO, 0, I1 },
2871{"sge", "d,v,I", 0, (int) M_SGE_I, INSN_MACRO, 0, I1 },
2872{"sgeu", "d,v,t", 0, (int) M_SGEU, INSN_MACRO, 0, I1 },
2873{"sgeu", "d,v,I", 0, (int) M_SGEU_I, INSN_MACRO, 0, I1 },
2874{"sgt", "d,v,t", 0, (int) M_SGT, INSN_MACRO, 0, I1 },
2875{"sgt", "d,v,I", 0, (int) M_SGT_I, INSN_MACRO, 0, I1 },
2876{"sgtu", "d,v,t", 0, (int) M_SGTU, INSN_MACRO, 0, I1 },
2877{"sgtu", "d,v,I", 0, (int) M_SGTU_I, INSN_MACRO, 0, I1 },
2878{"sh", "t,o(b)", 0xa4000000, 0xfc000000, SM|RD_t|RD_b, 0, I1 },
2879{"sh", "t,A(b)", 0, (int) M_SH_AB, INSN_MACRO, 0, I1 },
2880{"shfl.bfla.qh", "X,Y,Z", 0x7a20001f, 0xffe0003f, WR_D|RD_S|RD_T|FP_D, 0, MX },
2881{"shfl.mixh.ob", "X,Y,Z", 0x7980001f, 0xffe0003f, WR_D|RD_S|RD_T|FP_D, 0, MX|SB1 },
2882{"shfl.mixh.ob", "D,S,T", 0x4980001f, 0xffe0003f, WR_D|RD_S|RD_T, 0, N54 },
2883{"shfl.mixh.qh", "X,Y,Z", 0x7820001f, 0xffe0003f, WR_D|RD_S|RD_T|FP_D, 0, MX },
2884{"shfl.mixl.ob", "X,Y,Z", 0x79c0001f, 0xffe0003f, WR_D|RD_S|RD_T|FP_D, 0, MX|SB1 },
2885{"shfl.mixl.ob", "D,S,T", 0x49c0001f, 0xffe0003f, WR_D|RD_S|RD_T, 0, N54 },
2886{"shfl.mixl.qh", "X,Y,Z", 0x78a0001f, 0xffe0003f, WR_D|RD_S|RD_T|FP_D, 0, MX },
2887{"shfl.pach.ob", "X,Y,Z", 0x7900001f, 0xffe0003f, WR_D|RD_S|RD_T|FP_D, 0, MX|SB1 },
2888{"shfl.pach.ob", "D,S,T", 0x4900001f, 0xffe0003f, WR_D|RD_S|RD_T, 0, N54 },
2889{"shfl.pach.qh", "X,Y,Z", 0x7920001f, 0xffe0003f, WR_D|RD_S|RD_T|FP_D, 0, MX },
2890{"shfl.pacl.ob", "D,S,T", 0x4940001f, 0xffe0003f, WR_D|RD_S|RD_T, 0, N54 },
2891{"shfl.repa.qh", "X,Y,Z", 0x7b20001f, 0xffe0003f, WR_D|RD_S|RD_T|FP_D, 0, MX },
2892{"shfl.repb.qh", "X,Y,Z", 0x7ba0001f, 0xffe0003f, WR_D|RD_S|RD_T|FP_D, 0, MX },
2893{"shfl.upsl.ob", "X,Y,Z", 0x78c0001f, 0xffe0003f, WR_D|RD_S|RD_T|FP_D, 0, MX|SB1 },
2894{"sle", "d,v,t", 0, (int) M_SLE, INSN_MACRO, 0, I1 },
2895{"sle", "d,v,I", 0, (int) M_SLE_I, INSN_MACRO, 0, I1 },
2896{"sleu", "d,v,t", 0, (int) M_SLEU, INSN_MACRO, 0, I1 },
2897{"sleu", "d,v,I", 0, (int) M_SLEU_I, INSN_MACRO, 0, I1 },
2898{"sllv", "d,t,s", 0x00000004, 0xfc0007ff, WR_d|RD_t|RD_s, 0, I1 },
2899{"sll", "d,w,s", 0x00000004, 0xfc0007ff, WR_d|RD_t|RD_s, 0, I1 },
2900{"sll", "d,w,<", 0x00000000, 0xffe0003f, WR_d|RD_t, 0, I1 },
2901{"sll.ob", "X,Y,Q", 0x78000010, 0xfc20003f, WR_D|RD_S|RD_T|FP_D, 0, MX|SB1 },
2902{"sll.ob", "D,S,T[e]", 0x48000010, 0xfe20003f, WR_D|RD_S|RD_T, 0, N54 },
2903{"sll.ob", "D,S,k", 0x4bc00010, 0xffe0003f, WR_D|RD_S|RD_T, 0, N54 },
2904{"sll.qh", "X,Y,Q", 0x78200010, 0xfc20003f, WR_D|RD_S|RD_T|FP_D, 0, MX },
2905{"slt", "d,v,t", 0x0000002a, 0xfc0007ff, WR_d|RD_s|RD_t, 0, I1 },
2906{"slt", "d,v,I", 0, (int) M_SLT_I, INSN_MACRO, 0, I1 },
2907{"slti", "t,r,j", 0x28000000, 0xfc000000, WR_t|RD_s, 0, I1 },
2908{"sltiu", "t,r,j", 0x2c000000, 0xfc000000, WR_t|RD_s, 0, I1 },
2909{"sltu", "d,v,t", 0x0000002b, 0xfc0007ff, WR_d|RD_s|RD_t, 0, I1 },
2910{"sltu", "d,v,I", 0, (int) M_SLTU_I, INSN_MACRO, 0, I1 },
2911{"sne", "d,v,t", 0, (int) M_SNE, INSN_MACRO, 0, I1 },
2912{"sne", "d,v,I", 0, (int) M_SNE_I, INSN_MACRO, 0, I1 },
2913{"sqrt.d", "D,S", 0x46200004, 0xffff003f, WR_D|RD_S|FP_D, 0, I2 },
2914{"sqrt.s", "D,S", 0x46000004, 0xffff003f, WR_D|RD_S|FP_S, 0, I2 },
2915{"sqrt.ps", "D,S", 0x46c00004, 0xffff003f, WR_D|RD_S|FP_D, 0, SB1 },
2916{"srav", "d,t,s", 0x00000007, 0xfc0007ff, WR_d|RD_t|RD_s, 0, I1 },
2917{"sra", "d,w,s", 0x00000007, 0xfc0007ff, WR_d|RD_t|RD_s, 0, I1 },
2918{"sra", "d,w,<", 0x00000003, 0xffe0003f, WR_d|RD_t, 0, I1 },
2919{"sra.qh", "X,Y,Q", 0x78200013, 0xfc20003f, WR_D|RD_S|RD_T|FP_D, 0, MX },
2920{"srlv", "d,t,s", 0x00000006, 0xfc0007ff, WR_d|RD_t|RD_s, 0, I1 },
2921{"srl", "d,w,s", 0x00000006, 0xfc0007ff, WR_d|RD_t|RD_s, 0, I1 },
2922{"srl", "d,w,<", 0x00000002, 0xffe0003f, WR_d|RD_t, 0, I1 },
2923{"srl.ob", "X,Y,Q", 0x78000012, 0xfc20003f, WR_D|RD_S|RD_T|FP_D, 0, MX|SB1 },
2924{"srl.ob", "D,S,T[e]", 0x48000012, 0xfe20003f, WR_D|RD_S|RD_T, 0, N54 },
2925{"srl.ob", "D,S,k", 0x4bc00012, 0xffe0003f, WR_D|RD_S|RD_T, 0, N54 },
2926{"srl.qh", "X,Y,Q", 0x78200012, 0xfc20003f, WR_D|RD_S|RD_T|FP_D, 0, MX },
2927
2928{"standby", "", 0x42000021, 0xffffffff, 0, 0, V1 },
2929{"sub", "d,v,t", 0x00000022, 0xfc0007ff, WR_d|RD_s|RD_t, 0, I1 },
2930{"sub", "d,v,I", 0, (int) M_SUB_I, INSN_MACRO, 0, I1 },
2931{"sub.d", "D,V,T", 0x46200001, 0xffe0003f, WR_D|RD_S|RD_T|FP_D, 0, I1 },
2932{"sub.s", "D,V,T", 0x46000001, 0xffe0003f, WR_D|RD_S|RD_T|FP_S, 0, I1 },
2933{"sub.ob", "X,Y,Q", 0x7800000a, 0xfc20003f, WR_D|RD_S|RD_T|FP_D, 0, MX|SB1 },
2934{"sub.ob", "D,S,T", 0x4ac0000a, 0xffe0003f, WR_D|RD_S|RD_T, 0, N54 },
2935{"sub.ob", "D,S,T[e]", 0x4800000a, 0xfe20003f, WR_D|RD_S|RD_T, 0, N54 },
2936{"sub.ob", "D,S,k", 0x4bc0000a, 0xffe0003f, WR_D|RD_S|RD_T, 0, N54 },
2937{"sub.ps", "D,V,T", 0x46c00001, 0xffe0003f, WR_D|RD_S|RD_T|FP_D, 0, I5|I33 },
2938{"sub.qh", "X,Y,Q", 0x7820000a, 0xfc20003f, WR_D|RD_S|RD_T|FP_D, 0, MX },
2939{"suba.ob", "Y,Q", 0x78000036, 0xfc2007ff, RD_S|RD_T|FP_D, WR_MACC, MX|SB1 },
2940{"suba.qh", "Y,Q", 0x78200036, 0xfc2007ff, RD_S|RD_T|FP_D, WR_MACC, MX },
2941{"subl.ob", "Y,Q", 0x78000436, 0xfc2007ff, RD_S|RD_T|FP_D, WR_MACC, MX|SB1 },
2942{"subl.qh", "Y,Q", 0x78200436, 0xfc2007ff, RD_S|RD_T|FP_D, WR_MACC, MX },
2943{"subu", "d,v,t", 0x00000023, 0xfc0007ff, WR_d|RD_s|RD_t, 0, I1 },
2944{"subu", "d,v,I", 0, (int) M_SUBU_I, INSN_MACRO, 0, I1 },
2945{"suspend", "", 0x42000022, 0xffffffff, 0, 0, V1 },
2946{"suxc1", "S,t(b)", 0x4c00000d, 0xfc0007ff, SM|RD_S|RD_t|RD_b, 0, I5|I33|N55},
2947{"sw", "t,o(b)", 0xac000000, 0xfc000000, SM|RD_t|RD_b, 0, I1 },
2948{"sw", "t,A(b)", 0, (int) M_SW_AB, INSN_MACRO, 0, I1 },
2949{"swc0", "E,o(b)", 0xe0000000, 0xfc000000, SM|RD_C0|RD_b, 0, I1 },
2950{"swc0", "E,A(b)", 0, (int) M_SWC0_AB, INSN_MACRO, 0, I1 },
2951{"swc1", "T,o(b)", 0xe4000000, 0xfc000000, SM|RD_T|RD_b|FP_S, 0, I1 },
2952{"swc1", "E,o(b)", 0xe4000000, 0xfc000000, SM|RD_T|RD_b|FP_S, 0, I1 },
2953{"swc1", "T,A(b)", 0, (int) M_SWC1_AB, INSN_MACRO, 0, I1 },
2954{"swc1", "E,A(b)", 0, (int) M_SWC1_AB, INSN_MACRO, 0, I1 },
2955{"s.s", "T,o(b)", 0xe4000000, 0xfc000000, SM|RD_T|RD_b|FP_S, 0, I1 },
2956{"s.s", "T,A(b)", 0, (int) M_SWC1_AB, INSN_MACRO, 0, I1 },
2957{"swc2", "E,o(b)", 0xe8000000, 0xfc000000, SM|RD_C2|RD_b, 0, I1 },
2958{"swc2", "E,A(b)", 0, (int) M_SWC2_AB, INSN_MACRO, 0, I1 },
2959{"swc3", "E,o(b)", 0xec000000, 0xfc000000, SM|RD_C3|RD_b, 0, I1 },
2960{"swc3", "E,A(b)", 0, (int) M_SWC3_AB, INSN_MACRO, 0, I1 },
2961{"swl", "t,o(b)", 0xa8000000, 0xfc000000, SM|RD_t|RD_b, 0, I1 },
2962{"swl", "t,A(b)", 0, (int) M_SWL_AB, INSN_MACRO, 0, I1 },
2963{"scache", "t,o(b)", 0xa8000000, 0xfc000000, RD_t|RD_b, 0, I2 },
2964{"scache", "t,A(b)", 0, (int) M_SWL_AB, INSN_MACRO, 0, I2 },
2965{"swr", "t,o(b)", 0xb8000000, 0xfc000000, SM|RD_t|RD_b, 0, I1 },
2966{"swr", "t,A(b)", 0, (int) M_SWR_AB, INSN_MACRO, 0, I1 },
2967{"invalidate", "t,o(b)",0xb8000000, 0xfc000000, RD_t|RD_b, 0, I2 },
2968{"invalidate", "t,A(b)",0, (int) M_SWR_AB, INSN_MACRO, 0, I2 },
2969{"swxc1", "S,t(b)", 0x4c000008, 0xfc0007ff, SM|RD_S|RD_t|RD_b|FP_S, 0, I4|I33 },
2970{"sync", "", 0x0000000f, 0xffffffff, INSN_SYNC, 0, I2|G1 },
2971{"sync.p", "", 0x0000040f, 0xffffffff, INSN_SYNC, 0, I2 },
2972{"sync.l", "", 0x0000000f, 0xffffffff, INSN_SYNC, 0, I2 },
2973{"synci", "o(b)", 0x041f0000, 0xfc1f0000, SM|RD_b, 0, I33 },
2974{"syscall", "", 0x0000000c, 0xffffffff, TRAP, 0, I1 },
2975{"syscall", "B", 0x0000000c, 0xfc00003f, TRAP, 0, I1 },
2976{"teqi", "s,j", 0x040c0000, 0xfc1f0000, RD_s|TRAP, 0, I2 },
2977{"teq", "s,t", 0x00000034, 0xfc00ffff, RD_s|RD_t|TRAP, 0, I2 },
2978{"teq", "s,t,q", 0x00000034, 0xfc00003f, RD_s|RD_t|TRAP, 0, I2 },
2979{"teq", "s,j", 0x040c0000, 0xfc1f0000, RD_s|TRAP, 0, I2 },
2980{"teq", "s,I", 0, (int) M_TEQ_I, INSN_MACRO, 0, I2 },
2981{"tgei", "s,j", 0x04080000, 0xfc1f0000, RD_s|TRAP, 0, I2 },
2982{"tge", "s,t", 0x00000030, 0xfc00ffff, RD_s|RD_t|TRAP, 0, I2 },
2983{"tge", "s,t,q", 0x00000030, 0xfc00003f, RD_s|RD_t|TRAP, 0, I2 },
2984{"tge", "s,j", 0x04080000, 0xfc1f0000, RD_s|TRAP, 0, I2 },
2985{"tge", "s,I", 0, (int) M_TGE_I, INSN_MACRO, 0, I2 },
2986{"tgeiu", "s,j", 0x04090000, 0xfc1f0000, RD_s|TRAP, 0, I2 },
2987{"tgeu", "s,t", 0x00000031, 0xfc00ffff, RD_s|RD_t|TRAP, 0, I2 },
2988{"tgeu", "s,t,q", 0x00000031, 0xfc00003f, RD_s|RD_t|TRAP, 0, I2 },
2989{"tgeu", "s,j", 0x04090000, 0xfc1f0000, RD_s|TRAP, 0, I2 },
2990{"tgeu", "s,I", 0, (int) M_TGEU_I, INSN_MACRO, 0, I2 },
2991{"tlbp", "", 0x42000008, 0xffffffff, INSN_TLB, 0, I1 },
2992{"tlbr", "", 0x42000001, 0xffffffff, INSN_TLB, 0, I1 },
2993{"tlbwi", "", 0x42000002, 0xffffffff, INSN_TLB, 0, I1 },
2994{"tlbinv", "", 0x42000003, 0xffffffff, INSN_TLB, 0, I32 },
2995{"tlbinvf", "", 0x42000004, 0xffffffff, INSN_TLB, 0, I32 },
2996{"tlbwr", "", 0x42000006, 0xffffffff, INSN_TLB, 0, I1 },
2997{"tlti", "s,j", 0x040a0000, 0xfc1f0000, RD_s|TRAP, 0, I2 },
2998{"tlt", "s,t", 0x00000032, 0xfc00ffff, RD_s|RD_t|TRAP, 0, I2 },
2999{"tlt", "s,t,q", 0x00000032, 0xfc00003f, RD_s|RD_t|TRAP, 0, I2 },
3000{"tlt", "s,j", 0x040a0000, 0xfc1f0000, RD_s|TRAP, 0, I2 },
3001{"tlt", "s,I", 0, (int) M_TLT_I, INSN_MACRO, 0, I2 },
3002{"tltiu", "s,j", 0x040b0000, 0xfc1f0000, RD_s|TRAP, 0, I2 },
3003{"tltu", "s,t", 0x00000033, 0xfc00ffff, RD_s|RD_t|TRAP, 0, I2 },
3004{"tltu", "s,t,q", 0x00000033, 0xfc00003f, RD_s|RD_t|TRAP, 0, I2 },
3005{"tltu", "s,j", 0x040b0000, 0xfc1f0000, RD_s|TRAP, 0, I2 },
3006{"tltu", "s,I", 0, (int) M_TLTU_I, INSN_MACRO, 0, I2 },
3007{"tnei", "s,j", 0x040e0000, 0xfc1f0000, RD_s|TRAP, 0, I2 },
3008{"tne", "s,t", 0x00000036, 0xfc00ffff, RD_s|RD_t|TRAP, 0, I2 },
3009{"tne", "s,t,q", 0x00000036, 0xfc00003f, RD_s|RD_t|TRAP, 0, I2 },
3010{"tne", "s,j", 0x040e0000, 0xfc1f0000, RD_s|TRAP, 0, I2 },
3011{"tne", "s,I", 0, (int) M_TNE_I, INSN_MACRO, 0, I2 },
3012{"trunc.l.d", "D,S", 0x46200009, 0xffff003f, WR_D|RD_S|FP_D, 0, I3|I33 },
3013{"trunc.l.s", "D,S", 0x46000009, 0xffff003f, WR_D|RD_S|FP_S|FP_D, 0, I3|I33 },
3014{"trunc.w.d", "D,S", 0x4620000d, 0xffff003f, WR_D|RD_S|FP_S|FP_D, 0, I2 },
3015{"trunc.w.d", "D,S,x", 0x4620000d, 0xffff003f, WR_D|RD_S|FP_S|FP_D, 0, I2 },
3016{"trunc.w.d", "D,S,t", 0, (int) M_TRUNCWD, INSN_MACRO, 0, I1 },
3017{"trunc.w.s", "D,S", 0x4600000d, 0xffff003f, WR_D|RD_S|FP_S, 0, I2 },
3018{"trunc.w.s", "D,S,x", 0x4600000d, 0xffff003f, WR_D|RD_S|FP_S, 0, I2 },
3019{"trunc.w.s", "D,S,t", 0, (int) M_TRUNCWS, INSN_MACRO, 0, I1 },
3020{"uld", "t,o(b)", 0, (int) M_ULD, INSN_MACRO, 0, I3 },
3021{"uld", "t,A(b)", 0, (int) M_ULD_A, INSN_MACRO, 0, I3 },
3022{"ulh", "t,o(b)", 0, (int) M_ULH, INSN_MACRO, 0, I1 },
3023{"ulh", "t,A(b)", 0, (int) M_ULH_A, INSN_MACRO, 0, I1 },
3024{"ulhu", "t,o(b)", 0, (int) M_ULHU, INSN_MACRO, 0, I1 },
3025{"ulhu", "t,A(b)", 0, (int) M_ULHU_A, INSN_MACRO, 0, I1 },
3026{"ulw", "t,o(b)", 0, (int) M_ULW, INSN_MACRO, 0, I1 },
3027{"ulw", "t,A(b)", 0, (int) M_ULW_A, INSN_MACRO, 0, I1 },
3028{"usd", "t,o(b)", 0, (int) M_USD, INSN_MACRO, 0, I3 },
3029{"usd", "t,A(b)", 0, (int) M_USD_A, INSN_MACRO, 0, I3 },
3030{"ush", "t,o(b)", 0, (int) M_USH, INSN_MACRO, 0, I1 },
3031{"ush", "t,A(b)", 0, (int) M_USH_A, INSN_MACRO, 0, I1 },
3032{"usw", "t,o(b)", 0, (int) M_USW, INSN_MACRO, 0, I1 },
3033{"usw", "t,A(b)", 0, (int) M_USW_A, INSN_MACRO, 0, I1 },
3034{"wach.ob", "Y", 0x7a00003e, 0xffff07ff, RD_S|FP_D, WR_MACC, MX|SB1 },
3035{"wach.ob", "S", 0x4a00003e, 0xffff07ff, RD_S, 0, N54 },
3036{"wach.qh", "Y", 0x7a20003e, 0xffff07ff, RD_S|FP_D, WR_MACC, MX },
3037{"wacl.ob", "Y,Z", 0x7800003e, 0xffe007ff, RD_S|RD_T|FP_D, WR_MACC, MX|SB1 },
3038{"wacl.ob", "S,T", 0x4800003e, 0xffe007ff, RD_S|RD_T, 0, N54 },
3039{"wacl.qh", "Y,Z", 0x7820003e, 0xffe007ff, RD_S|RD_T|FP_D, WR_MACC, MX },
3040{"wait", "", 0x42000020, 0xffffffff, TRAP, 0, I3|I32 },
3041{"wait", "J", 0x42000020, 0xfe00003f, TRAP, 0, I32|N55 },
3042{"waiti", "", 0x42000020, 0xffffffff, TRAP, 0, L1 },
3043{"wrpgpr", "d,w", 0x41c00000, 0xffe007ff, RD_t, 0, I33 },
3044{"wsbh", "d,w", 0x7c0000a0, 0xffe007ff, WR_d|RD_t, 0, I33 },
3045{"xor", "d,v,t", 0x00000026, 0xfc0007ff, WR_d|RD_s|RD_t, 0, I1 },
3046{"xor", "t,r,I", 0, (int) M_XOR_I, INSN_MACRO, 0, I1 },
3047{"xor.ob", "X,Y,Q", 0x7800000d, 0xfc20003f, WR_D|RD_S|RD_T|FP_D, 0, MX|SB1 },
3048{"xor.ob", "D,S,T", 0x4ac0000d, 0xffe0003f, WR_D|RD_S|RD_T, 0, N54 },
3049{"xor.ob", "D,S,T[e]", 0x4800000d, 0xfe20003f, WR_D|RD_S|RD_T, 0, N54 },
3050{"xor.ob", "D,S,k", 0x4bc0000d, 0xffe0003f, WR_D|RD_S|RD_T, 0, N54 },
3051{"xor.qh", "X,Y,Q", 0x7820000d, 0xfc20003f, WR_D|RD_S|RD_T|FP_D, 0, MX },
3052{"xori", "t,r,i", 0x38000000, 0xfc000000, WR_t|RD_s, 0, I1 },
3053{"yield", "s", 0x7c000009, 0xfc1fffff, TRAP|RD_s, 0, MT32 },
3054{"yield", "d,s", 0x7c000009, 0xfc1f07ff, TRAP|WR_d|RD_s, 0, MT32 },
3055
3056
3057{"udi0", "s,t,d,+1",0x70000010, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3058{"udi0", "s,t,+2", 0x70000010, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3059{"udi0", "s,+3", 0x70000010, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3060{"udi0", "+4", 0x70000010, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3061{"udi1", "s,t,d,+1",0x70000011, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3062{"udi1", "s,t,+2", 0x70000011, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3063{"udi1", "s,+3", 0x70000011, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3064{"udi1", "+4", 0x70000011, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3065{"udi2", "s,t,d,+1",0x70000012, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3066{"udi2", "s,t,+2", 0x70000012, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3067{"udi2", "s,+3", 0x70000012, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3068{"udi2", "+4", 0x70000012, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3069{"udi3", "s,t,d,+1",0x70000013, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3070{"udi3", "s,t,+2", 0x70000013, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3071{"udi3", "s,+3", 0x70000013, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3072{"udi3", "+4", 0x70000013, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3073{"udi4", "s,t,d,+1",0x70000014, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3074{"udi4", "s,t,+2", 0x70000014, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3075{"udi4", "s,+3", 0x70000014, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3076{"udi4", "+4", 0x70000014, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3077{"udi5", "s,t,d,+1",0x70000015, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3078{"udi5", "s,t,+2", 0x70000015, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3079{"udi5", "s,+3", 0x70000015, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3080{"udi5", "+4", 0x70000015, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3081{"udi6", "s,t,d,+1",0x70000016, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3082{"udi6", "s,t,+2", 0x70000016, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3083{"udi6", "s,+3", 0x70000016, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3084{"udi6", "+4", 0x70000016, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3085{"udi7", "s,t,d,+1",0x70000017, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3086{"udi7", "s,t,+2", 0x70000017, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3087{"udi7", "s,+3", 0x70000017, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3088{"udi7", "+4", 0x70000017, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3089{"udi8", "s,t,d,+1",0x70000018, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3090{"udi8", "s,t,+2", 0x70000018, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3091{"udi8", "s,+3", 0x70000018, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3092{"udi8", "+4", 0x70000018, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3093{"udi9", "s,t,d,+1",0x70000019, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3094{"udi9", "s,t,+2", 0x70000019, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3095{"udi9", "s,+3", 0x70000019, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3096{"udi9", "+4", 0x70000019, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3097{"udi10", "s,t,d,+1",0x7000001a, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3098{"udi10", "s,t,+2", 0x7000001a, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3099{"udi10", "s,+3", 0x7000001a, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3100{"udi10", "+4", 0x7000001a, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3101{"udi11", "s,t,d,+1",0x7000001b, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3102{"udi11", "s,t,+2", 0x7000001b, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3103{"udi11", "s,+3", 0x7000001b, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3104{"udi11", "+4", 0x7000001b, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3105{"udi12", "s,t,d,+1",0x7000001c, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3106{"udi12", "s,t,+2", 0x7000001c, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3107{"udi12", "s,+3", 0x7000001c, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3108{"udi12", "+4", 0x7000001c, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3109{"udi13", "s,t,d,+1",0x7000001d, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3110{"udi13", "s,t,+2", 0x7000001d, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3111{"udi13", "s,+3", 0x7000001d, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3112{"udi13", "+4", 0x7000001d, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3113{"udi14", "s,t,d,+1",0x7000001e, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3114{"udi14", "s,t,+2", 0x7000001e, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3115{"udi14", "s,+3", 0x7000001e, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3116{"udi14", "+4", 0x7000001e, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3117{"udi15", "s,t,d,+1",0x7000001f, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3118{"udi15", "s,t,+2", 0x7000001f, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3119{"udi15", "s,+3", 0x7000001f, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3120{"udi15", "+4", 0x7000001f, 0xfc00003f, WR_d|RD_s|RD_t, 0, I33 },
3121
3122
3123
3124{"bc2f", "p", 0x49000000, 0xffff0000, CBD|RD_CC, 0, I1 },
3125{"bc2f", "N,p", 0x49000000, 0xffe30000, CBD|RD_CC, 0, I32 },
3126{"bc2fl", "p", 0x49020000, 0xffff0000, CBL|RD_CC, 0, I2|T3 },
3127{"bc2fl", "N,p", 0x49020000, 0xffe30000, CBL|RD_CC, 0, I32 },
3128{"bc2t", "p", 0x49010000, 0xffff0000, CBD|RD_CC, 0, I1 },
3129{"bc2t", "N,p", 0x49010000, 0xffe30000, CBD|RD_CC, 0, I32 },
3130{"bc2tl", "p", 0x49030000, 0xffff0000, CBL|RD_CC, 0, I2|T3 },
3131{"bc2tl", "N,p", 0x49030000, 0xffe30000, CBL|RD_CC, 0, I32 },
3132{"cfc2", "t,G", 0x48400000, 0xffe007ff, LCD|WR_t|RD_C2, 0, I1 },
3133{"ctc2", "t,G", 0x48c00000, 0xffe007ff, COD|RD_t|WR_CC, 0, I1 },
3134{"dmfc2", "t,G", 0x48200000, 0xffe007ff, LCD|WR_t|RD_C2, 0, I3 },
3135{"dmfc2", "t,G,H", 0x48200000, 0xffe007f8, LCD|WR_t|RD_C2, 0, I64 },
3136{"dmtc2", "t,G", 0x48a00000, 0xffe007ff, COD|RD_t|WR_C2|WR_CC, 0, I3 },
3137{"dmtc2", "t,G,H", 0x48a00000, 0xffe007f8, COD|RD_t|WR_C2|WR_CC, 0, I64 },
3138{"mfc2", "t,G", 0x48000000, 0xffe007ff, LCD|WR_t|RD_C2, 0, I1 },
3139{"mfc2", "t,G,H", 0x48000000, 0xffe007f8, LCD|WR_t|RD_C2, 0, I32 },
3140{"mfhc2", "t,G", 0x48600000, 0xffe007ff, LCD|WR_t|RD_C2, 0, I33 },
3141{"mfhc2", "t,G,H", 0x48600000, 0xffe007f8, LCD|WR_t|RD_C2, 0, I33 },
3142{"mfhc2", "t,i", 0x48600000, 0xffe00000, LCD|WR_t|RD_C2, 0, I33 },
3143{"mtc2", "t,G", 0x48800000, 0xffe007ff, COD|RD_t|WR_C2|WR_CC, 0, I1 },
3144{"mtc2", "t,G,H", 0x48800000, 0xffe007f8, COD|RD_t|WR_C2|WR_CC, 0, I32 },
3145{"mthc2", "t,G", 0x48e00000, 0xffe007ff, COD|RD_t|WR_C2|WR_CC, 0, I33 },
3146{"mthc2", "t,G,H", 0x48e00000, 0xffe007f8, COD|RD_t|WR_C2|WR_CC, 0, I33 },
3147{"mthc2", "t,i", 0x48e00000, 0xffe00000, COD|RD_t|WR_C2|WR_CC, 0, I33 },
3148
3149
3150
3151{"bc3f", "p", 0x4d000000, 0xffff0000, CBD|RD_CC, 0, I1 },
3152{"bc3fl", "p", 0x4d020000, 0xffff0000, CBL|RD_CC, 0, I2|T3 },
3153{"bc3t", "p", 0x4d010000, 0xffff0000, CBD|RD_CC, 0, I1 },
3154{"bc3tl", "p", 0x4d030000, 0xffff0000, CBL|RD_CC, 0, I2|T3 },
3155{"cfc3", "t,G", 0x4c400000, 0xffe007ff, LCD|WR_t|RD_C3, 0, I1 },
3156{"ctc3", "t,G", 0x4cc00000, 0xffe007ff, COD|RD_t|WR_CC, 0, I1 },
3157{"dmfc3", "t,G", 0x4c200000, 0xffe007ff, LCD|WR_t|RD_C3, 0, I3 },
3158{"dmtc3", "t,G", 0x4ca00000, 0xffe007ff, COD|RD_t|WR_C3|WR_CC, 0, I3 },
3159{"mfc3", "t,G", 0x4c000000, 0xffe007ff, LCD|WR_t|RD_C3, 0, I1 },
3160{"mfc3", "t,G,H", 0x4c000000, 0xffe007f8, LCD|WR_t|RD_C3, 0, I32 },
3161{"mtc3", "t,G", 0x4c800000, 0xffe007ff, COD|RD_t|WR_C3|WR_CC, 0, I1 },
3162{"mtc3", "t,G,H", 0x4c800000, 0xffe007f8, COD|RD_t|WR_C3|WR_CC, 0, I32 },
3163
3164
3165
3166
3167
3168{"c0", "C", 0x42000000, 0xfe000000, 0, 0, I1 },
3169{"c1", "C", 0x46000000, 0xfe000000, 0, 0, I1 },
3170{"c2", "C", 0x4a000000, 0xfe000000, 0, 0, I1 },
3171{"c3", "C", 0x4e000000, 0xfe000000, 0, 0, I1 },
3172{"cop0", "C", 0, (int) M_COP0, INSN_MACRO, 0, I1 },
3173{"cop1", "C", 0, (int) M_COP1, INSN_MACRO, 0, I1 },
3174{"cop2", "C", 0, (int) M_COP2, INSN_MACRO, 0, I1 },
3175{"cop3", "C", 0, (int) M_COP3, INSN_MACRO, 0, I1 },
3176
3177
3178
3179{"addciu", "t,r,j", 0x70000000, 0xfc000000, WR_t|RD_s, 0, L1 },
3180
3181{"absq_s.ph", "d,t", 0x7c000252, 0xffe007ff, WR_d|RD_t, 0, D32 },
3182{"absq_s.pw", "d,t", 0x7c000456, 0xffe007ff, WR_d|RD_t, 0, D64 },
3183{"absq_s.qh", "d,t", 0x7c000256, 0xffe007ff, WR_d|RD_t, 0, D64 },
3184{"absq_s.w", "d,t", 0x7c000452, 0xffe007ff, WR_d|RD_t, 0, D32 },
3185{"addq.ph", "d,s,t", 0x7c000290, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D32 },
3186{"addq.pw", "d,s,t", 0x7c000494, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D64 },
3187{"addq.qh", "d,s,t", 0x7c000294, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D64 },
3188{"addq_s.ph", "d,s,t", 0x7c000390, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D32 },
3189{"addq_s.pw", "d,s,t", 0x7c000594, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D64 },
3190{"addq_s.qh", "d,s,t", 0x7c000394, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D64 },
3191{"addq_s.w", "d,s,t", 0x7c000590, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D32 },
3192{"addsc", "d,s,t", 0x7c000410, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D32 },
3193{"addu.ob", "d,s,t", 0x7c000014, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D64 },
3194{"addu.qb", "d,s,t", 0x7c000010, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D32 },
3195{"addu_s.ob", "d,s,t", 0x7c000114, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D64 },
3196{"addu_s.qb", "d,s,t", 0x7c000110, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D32 },
3197{"addwc", "d,s,t", 0x7c000450, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D32 },
3198{"bitrev", "d,t", 0x7c0006d2, 0xffe007ff, WR_d|RD_t, 0, D32 },
3199{"bposge32", "p", 0x041c0000, 0xffff0000, CBD, 0, D32 },
3200{"bposge64", "p", 0x041d0000, 0xffff0000, CBD, 0, D64 },
3201{"cmp.eq.ph", "s,t", 0x7c000211, 0xfc00ffff, RD_s|RD_t, 0, D32 },
3202{"cmp.eq.pw", "s,t", 0x7c000415, 0xfc00ffff, RD_s|RD_t, 0, D64 },
3203{"cmp.eq.qh", "s,t", 0x7c000215, 0xfc00ffff, RD_s|RD_t, 0, D64 },
3204{"cmpgu.eq.ob", "d,s,t", 0x7c000115, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D64 },
3205{"cmpgu.eq.qb", "d,s,t", 0x7c000111, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D32 },
3206{"cmpgu.le.ob", "d,s,t", 0x7c000195, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D64 },
3207{"cmpgu.le.qb", "d,s,t", 0x7c000191, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D32 },
3208{"cmpgu.lt.ob", "d,s,t", 0x7c000155, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D64 },
3209{"cmpgu.lt.qb", "d,s,t", 0x7c000151, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D32 },
3210{"cmp.le.ph", "s,t", 0x7c000291, 0xfc00ffff, RD_s|RD_t, 0, D32 },
3211{"cmp.le.pw", "s,t", 0x7c000495, 0xfc00ffff, RD_s|RD_t, 0, D64 },
3212{"cmp.le.qh", "s,t", 0x7c000295, 0xfc00ffff, RD_s|RD_t, 0, D64 },
3213{"cmp.lt.ph", "s,t", 0x7c000251, 0xfc00ffff, RD_s|RD_t, 0, D32 },
3214{"cmp.lt.pw", "s,t", 0x7c000455, 0xfc00ffff, RD_s|RD_t, 0, D64 },
3215{"cmp.lt.qh", "s,t", 0x7c000255, 0xfc00ffff, RD_s|RD_t, 0, D64 },
3216{"cmpu.eq.ob", "s,t", 0x7c000015, 0xfc00ffff, RD_s|RD_t, 0, D64 },
3217{"cmpu.eq.qb", "s,t", 0x7c000011, 0xfc00ffff, RD_s|RD_t, 0, D32 },
3218{"cmpu.le.ob", "s,t", 0x7c000095, 0xfc00ffff, RD_s|RD_t, 0, D64 },
3219{"cmpu.le.qb", "s,t", 0x7c000091, 0xfc00ffff, RD_s|RD_t, 0, D32 },
3220{"cmpu.lt.ob", "s,t", 0x7c000055, 0xfc00ffff, RD_s|RD_t, 0, D64 },
3221{"cmpu.lt.qb", "s,t", 0x7c000051, 0xfc00ffff, RD_s|RD_t, 0, D32 },
3222{"dextpdp", "t,7,6", 0x7c0002bc, 0xfc00e7ff, WR_t|RD_a|DSP_VOLA, 0, D64 },
3223{"dextpdpv", "t,7,s", 0x7c0002fc, 0xfc00e7ff, WR_t|RD_a|RD_s|DSP_VOLA, 0, D64 },
3224{"dextp", "t,7,6", 0x7c0000bc, 0xfc00e7ff, WR_t|RD_a, 0, D64 },
3225{"dextpv", "t,7,s", 0x7c0000fc, 0xfc00e7ff, WR_t|RD_a|RD_s, 0, D64 },
3226{"dextr.l", "t,7,6", 0x7c00043c, 0xfc00e7ff, WR_t|RD_a, 0, D64 },
3227{"dextr_r.l", "t,7,6", 0x7c00053c, 0xfc00e7ff, WR_t|RD_a, 0, D64 },
3228{"dextr_rs.l", "t,7,6", 0x7c0005bc, 0xfc00e7ff, WR_t|RD_a, 0, D64 },
3229{"dextr_rs.w", "t,7,6", 0x7c0001bc, 0xfc00e7ff, WR_t|RD_a, 0, D64 },
3230{"dextr_r.w", "t,7,6", 0x7c00013c, 0xfc00e7ff, WR_t|RD_a, 0, D64 },
3231{"dextr_s.h", "t,7,6", 0x7c0003bc, 0xfc00e7ff, WR_t|RD_a, 0, D64 },
3232{"dextrv.l", "t,7,s", 0x7c00047c, 0xfc00e7ff, WR_t|RD_a|RD_s, 0, D64 },
3233{"dextrv_r.l", "t,7,s", 0x7c00057c, 0xfc00e7ff, WR_t|RD_a|RD_s, 0, D64 },
3234{"dextrv_rs.l", "t,7,s", 0x7c0005fc, 0xfc00e7ff, WR_t|RD_a|RD_s, 0, D64 },
3235{"dextrv_rs.w", "t,7,s", 0x7c0001fc, 0xfc00e7ff, WR_t|RD_a|RD_s, 0, D64 },
3236{"dextrv_r.w", "t,7,s", 0x7c00017c, 0xfc00e7ff, WR_t|RD_a|RD_s, 0, D64 },
3237{"dextrv_s.h", "t,7,s", 0x7c0003fc, 0xfc00e7ff, WR_t|RD_a|RD_s, 0, D64 },
3238{"dextrv.w", "t,7,s", 0x7c00007c, 0xfc00e7ff, WR_t|RD_a|RD_s, 0, D64 },
3239{"dextr.w", "t,7,6", 0x7c00003c, 0xfc00e7ff, WR_t|RD_a, 0, D64 },
3240{"dinsv", "t,s", 0x7c00000d, 0xfc00ffff, WR_t|RD_s, 0, D64 },
3241{"dmadd", "7,s,t", 0x7c000674, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D64 },
3242{"dmaddu", "7,s,t", 0x7c000774, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D64 },
3243{"dmsub", "7,s,t", 0x7c0006f4, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D64 },
3244{"dmsubu", "7,s,t", 0x7c0007f4, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D64 },
3245{"dmthlip", "s,7", 0x7c0007fc, 0xfc1fe7ff, RD_s|MOD_a|DSP_VOLA, 0, D64 },
3246{"dpaq_sa.l.pw", "7,s,t", 0x7c000334, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D64 },
3247{"dpaq_sa.l.w", "7,s,t", 0x7c000330, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D32 },
3248{"dpaq_s.w.ph", "7,s,t", 0x7c000130, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D32 },
3249{"dpaq_s.w.qh", "7,s,t", 0x7c000134, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D64 },
3250{"dpau.h.obl", "7,s,t", 0x7c0000f4, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D64 },
3251{"dpau.h.obr", "7,s,t", 0x7c0001f4, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D64 },
3252{"dpau.h.qbl", "7,s,t", 0x7c0000f0, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D32 },
3253{"dpau.h.qbr", "7,s,t", 0x7c0001f0, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D32 },
3254{"dpsq_sa.l.pw", "7,s,t", 0x7c000374, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D64 },
3255{"dpsq_sa.l.w", "7,s,t", 0x7c000370, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D32 },
3256{"dpsq_s.w.ph", "7,s,t", 0x7c000170, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D32 },
3257{"dpsq_s.w.qh", "7,s,t", 0x7c000174, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D64 },
3258{"dpsu.h.obl", "7,s,t", 0x7c0002f4, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D64 },
3259{"dpsu.h.obr", "7,s,t", 0x7c0003f4, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D64 },
3260{"dpsu.h.qbl", "7,s,t", 0x7c0002f0, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D32 },
3261{"dpsu.h.qbr", "7,s,t", 0x7c0003f0, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D32 },
3262{"dshilo", "7,:", 0x7c0006bc, 0xfc07e7ff, MOD_a, 0, D64 },
3263{"dshilov", "7,s", 0x7c0006fc, 0xfc1fe7ff, MOD_a|RD_s, 0, D64 },
3264{"extpdp", "t,7,6", 0x7c0002b8, 0xfc00e7ff, WR_t|RD_a|DSP_VOLA, 0, D32 },
3265{"extpdpv", "t,7,s", 0x7c0002f8, 0xfc00e7ff, WR_t|RD_a|RD_s|DSP_VOLA, 0, D32 },
3266{"extp", "t,7,6", 0x7c0000b8, 0xfc00e7ff, WR_t|RD_a, 0, D32 },
3267{"extpv", "t,7,s", 0x7c0000f8, 0xfc00e7ff, WR_t|RD_a|RD_s, 0, D32 },
3268{"extr_rs.w", "t,7,6", 0x7c0001b8, 0xfc00e7ff, WR_t|RD_a, 0, D32 },
3269{"extr_r.w", "t,7,6", 0x7c000138, 0xfc00e7ff, WR_t|RD_a, 0, D32 },
3270{"extr_s.h", "t,7,6", 0x7c0003b8, 0xfc00e7ff, WR_t|RD_a, 0, D32 },
3271{"extrv_rs.w", "t,7,s", 0x7c0001f8, 0xfc00e7ff, WR_t|RD_a|RD_s, 0, D32 },
3272{"extrv_r.w", "t,7,s", 0x7c000178, 0xfc00e7ff, WR_t|RD_a|RD_s, 0, D32 },
3273{"extrv_s.h", "t,7,s", 0x7c0003f8, 0xfc00e7ff, WR_t|RD_a|RD_s, 0, D32 },
3274{"extrv.w", "t,7,s", 0x7c000078, 0xfc00e7ff, WR_t|RD_a|RD_s, 0, D32 },
3275{"extr.w", "t,7,6", 0x7c000038, 0xfc00e7ff, WR_t|RD_a, 0, D32 },
3276{"insv", "t,s", 0x7c00000c, 0xfc00ffff, WR_t|RD_s, 0, D32 },
3277{"lbux", "d,t(b)", 0x7c00018a, 0xfc0007ff, LDD|WR_d|RD_t|RD_b, 0, D32 },
3278{"ldx", "d,t(b)", 0x7c00020a, 0xfc0007ff, LDD|WR_d|RD_t|RD_b, 0, D64 },
3279{"lhx", "d,t(b)", 0x7c00010a, 0xfc0007ff, LDD|WR_d|RD_t|RD_b, 0, D32 },
3280{"lwx", "d,t(b)", 0x7c00000a, 0xfc0007ff, LDD|WR_d|RD_t|RD_b, 0, D32 },
3281{"maq_sa.w.phl", "7,s,t", 0x7c000430, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D32 },
3282{"maq_sa.w.phr", "7,s,t", 0x7c0004b0, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D32 },
3283{"maq_sa.w.qhll", "7,s,t", 0x7c000434, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D64 },
3284{"maq_sa.w.qhlr", "7,s,t", 0x7c000474, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D64 },
3285{"maq_sa.w.qhrl", "7,s,t", 0x7c0004b4, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D64 },
3286{"maq_sa.w.qhrr", "7,s,t", 0x7c0004f4, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D64 },
3287{"maq_s.l.pwl", "7,s,t", 0x7c000734, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D64 },
3288{"maq_s.l.pwr", "7,s,t", 0x7c0007b4, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D64 },
3289{"maq_s.w.phl", "7,s,t", 0x7c000530, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D32 },
3290{"maq_s.w.phr", "7,s,t", 0x7c0005b0, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D32 },
3291{"maq_s.w.qhll", "7,s,t", 0x7c000534, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D64 },
3292{"maq_s.w.qhlr", "7,s,t", 0x7c000574, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D64 },
3293{"maq_s.w.qhrl", "7,s,t", 0x7c0005b4, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D64 },
3294{"maq_s.w.qhrr", "7,s,t", 0x7c0005f4, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D64 },
3295{"modsub", "d,s,t", 0x7c000490, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D32 },
3296{"mthlip", "s,7", 0x7c0007f8, 0xfc1fe7ff, RD_s|MOD_a|DSP_VOLA, 0, D32 },
3297{"muleq_s.pw.qhl", "d,s,t", 0x7c000714, 0xfc0007ff, WR_d|RD_s|RD_t|WR_HILO, 0, D64 },
3298{"muleq_s.pw.qhr", "d,s,t", 0x7c000754, 0xfc0007ff, WR_d|RD_s|RD_t|WR_HILO, 0, D64 },
3299{"muleq_s.w.phl", "d,s,t", 0x7c000710, 0xfc0007ff, WR_d|RD_s|RD_t|WR_HILO, 0, D32 },
3300{"muleq_s.w.phr", "d,s,t", 0x7c000750, 0xfc0007ff, WR_d|RD_s|RD_t|WR_HILO, 0, D32 },
3301{"muleu_s.ph.qbl", "d,s,t", 0x7c000190, 0xfc0007ff, WR_d|RD_s|RD_t|WR_HILO, 0, D32 },
3302{"muleu_s.ph.qbr", "d,s,t", 0x7c0001d0, 0xfc0007ff, WR_d|RD_s|RD_t|WR_HILO, 0, D32 },
3303{"muleu_s.qh.obl", "d,s,t", 0x7c000194, 0xfc0007ff, WR_d|RD_s|RD_t|WR_HILO, 0, D64 },
3304{"muleu_s.qh.obr", "d,s,t", 0x7c0001d4, 0xfc0007ff, WR_d|RD_s|RD_t|WR_HILO, 0, D64 },
3305{"mulq_rs.ph", "d,s,t", 0x7c0007d0, 0xfc0007ff, WR_d|RD_s|RD_t|WR_HILO, 0, D32 },
3306{"mulq_rs.qh", "d,s,t", 0x7c0007d4, 0xfc0007ff, WR_d|RD_s|RD_t|WR_HILO, 0, D64 },
3307{"mulsaq_s.l.pw", "7,s,t", 0x7c0003b4, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D64 },
3308{"mulsaq_s.w.ph", "7,s,t", 0x7c0001b0, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D32 },
3309{"mulsaq_s.w.qh", "7,s,t", 0x7c0001b4, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D64 },
3310{"packrl.ph", "d,s,t", 0x7c000391, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D32 },
3311{"packrl.pw", "d,s,t", 0x7c000395, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D64 },
3312{"pick.ob", "d,s,t", 0x7c0000d5, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D64 },
3313{"pick.ph", "d,s,t", 0x7c0002d1, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D32 },
3314{"pick.pw", "d,s,t", 0x7c0004d5, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D64 },
3315{"pick.qb", "d,s,t", 0x7c0000d1, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D32 },
3316{"pick.qh", "d,s,t", 0x7c0002d5, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D64 },
3317{"preceq.pw.qhla", "d,t", 0x7c000396, 0xffe007ff, WR_d|RD_t, 0, D64 },
3318{"preceq.pw.qhl", "d,t", 0x7c000316, 0xffe007ff, WR_d|RD_t, 0, D64 },
3319{"preceq.pw.qhra", "d,t", 0x7c0003d6, 0xffe007ff, WR_d|RD_t, 0, D64 },
3320{"preceq.pw.qhr", "d,t", 0x7c000356, 0xffe007ff, WR_d|RD_t, 0, D64 },
3321{"preceq.s.l.pwl", "d,t", 0x7c000516, 0xffe007ff, WR_d|RD_t, 0, D64 },
3322{"preceq.s.l.pwr", "d,t", 0x7c000556, 0xffe007ff, WR_d|RD_t, 0, D64 },
3323{"precequ.ph.qbla", "d,t", 0x7c000192, 0xffe007ff, WR_d|RD_t, 0, D32 },
3324{"precequ.ph.qbl", "d,t", 0x7c000112, 0xffe007ff, WR_d|RD_t, 0, D32 },
3325{"precequ.ph.qbra", "d,t", 0x7c0001d2, 0xffe007ff, WR_d|RD_t, 0, D32 },
3326{"precequ.ph.qbr", "d,t", 0x7c000152, 0xffe007ff, WR_d|RD_t, 0, D32 },
3327{"precequ.pw.qhla", "d,t", 0x7c000196, 0xffe007ff, WR_d|RD_t, 0, D64 },
3328{"precequ.pw.qhl", "d,t", 0x7c000116, 0xffe007ff, WR_d|RD_t, 0, D64 },
3329{"precequ.pw.qhra", "d,t", 0x7c0001d6, 0xffe007ff, WR_d|RD_t, 0, D64 },
3330{"precequ.pw.qhr", "d,t", 0x7c000156, 0xffe007ff, WR_d|RD_t, 0, D64 },
3331{"preceq.w.phl", "d,t", 0x7c000312, 0xffe007ff, WR_d|RD_t, 0, D32 },
3332{"preceq.w.phr", "d,t", 0x7c000352, 0xffe007ff, WR_d|RD_t, 0, D32 },
3333{"preceu.ph.qbla", "d,t", 0x7c000792, 0xffe007ff, WR_d|RD_t, 0, D32 },
3334{"preceu.ph.qbl", "d,t", 0x7c000712, 0xffe007ff, WR_d|RD_t, 0, D32 },
3335{"preceu.ph.qbra", "d,t", 0x7c0007d2, 0xffe007ff, WR_d|RD_t, 0, D32 },
3336{"preceu.ph.qbr", "d,t", 0x7c000752, 0xffe007ff, WR_d|RD_t, 0, D32 },
3337{"preceu.qh.obla", "d,t", 0x7c000796, 0xffe007ff, WR_d|RD_t, 0, D64 },
3338{"preceu.qh.obl", "d,t", 0x7c000716, 0xffe007ff, WR_d|RD_t, 0, D64 },
3339{"preceu.qh.obra", "d,t", 0x7c0007d6, 0xffe007ff, WR_d|RD_t, 0, D64 },
3340{"preceu.qh.obr", "d,t", 0x7c000756, 0xffe007ff, WR_d|RD_t, 0, D64 },
3341{"precrq.ob.qh", "d,s,t", 0x7c000315, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D64 },
3342{"precrq.ph.w", "d,s,t", 0x7c000511, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D32 },
3343{"precrq.pw.l", "d,s,t", 0x7c000715, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D64 },
3344{"precrq.qb.ph", "d,s,t", 0x7c000311, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D32 },
3345{"precrq.qh.pw", "d,s,t", 0x7c000515, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D64 },
3346{"precrq_rs.ph.w", "d,s,t", 0x7c000551, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D32 },
3347{"precrq_rs.qh.pw", "d,s,t", 0x7c000555, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D64 },
3348{"precrqu_s.ob.qh", "d,s,t", 0x7c0003d5, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D64 },
3349{"precrqu_s.qb.ph", "d,s,t", 0x7c0003d1, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D32 },
3350{"raddu.l.ob", "d,s", 0x7c000514, 0xfc1f07ff, WR_d|RD_s, 0, D64 },
3351{"raddu.w.qb", "d,s", 0x7c000510, 0xfc1f07ff, WR_d|RD_s, 0, D32 },
3352{"rddsp", "d", 0x7fff04b8, 0xffff07ff, WR_d, 0, D32 },
3353{"rddsp", "d,'", 0x7c0004b8, 0xffc007ff, WR_d, 0, D32 },
3354{"repl.ob", "d,5", 0x7c000096, 0xff0007ff, WR_d, 0, D64 },
3355{"repl.ph", "d,@", 0x7c000292, 0xfc0007ff, WR_d, 0, D32 },
3356{"repl.pw", "d,@", 0x7c000496, 0xfc0007ff, WR_d, 0, D64 },
3357{"repl.qb", "d,5", 0x7c000092, 0xff0007ff, WR_d, 0, D32 },
3358{"repl.qh", "d,@", 0x7c000296, 0xfc0007ff, WR_d, 0, D64 },
3359{"replv.ob", "d,t", 0x7c0000d6, 0xffe007ff, WR_d|RD_t, 0, D64 },
3360{"replv.ph", "d,t", 0x7c0002d2, 0xffe007ff, WR_d|RD_t, 0, D32 },
3361{"replv.pw", "d,t", 0x7c0004d6, 0xffe007ff, WR_d|RD_t, 0, D64 },
3362{"replv.qb", "d,t", 0x7c0000d2, 0xffe007ff, WR_d|RD_t, 0, D32 },
3363{"replv.qh", "d,t", 0x7c0002d6, 0xffe007ff, WR_d|RD_t, 0, D64 },
3364{"shilo", "7,0", 0x7c0006b8, 0xfc0fe7ff, MOD_a, 0, D32 },
3365{"shilov", "7,s", 0x7c0006f8, 0xfc1fe7ff, MOD_a|RD_s, 0, D32 },
3366{"shll.ob", "d,t,3", 0x7c000017, 0xff0007ff, WR_d|RD_t, 0, D64 },
3367{"shll.ph", "d,t,4", 0x7c000213, 0xfe0007ff, WR_d|RD_t, 0, D32 },
3368{"shll.pw", "d,t,6", 0x7c000417, 0xfc0007ff, WR_d|RD_t, 0, D64 },
3369{"shll.qb", "d,t,3", 0x7c000013, 0xff0007ff, WR_d|RD_t, 0, D32 },
3370{"shll.qh", "d,t,4", 0x7c000217, 0xfe0007ff, WR_d|RD_t, 0, D64 },
3371{"shll_s.ph", "d,t,4", 0x7c000313, 0xfe0007ff, WR_d|RD_t, 0, D32 },
3372{"shll_s.pw", "d,t,6", 0x7c000517, 0xfc0007ff, WR_d|RD_t, 0, D64 },
3373{"shll_s.qh", "d,t,4", 0x7c000317, 0xfe0007ff, WR_d|RD_t, 0, D64 },
3374{"shll_s.w", "d,t,6", 0x7c000513, 0xfc0007ff, WR_d|RD_t, 0, D32 },
3375{"shllv.ob", "d,t,s", 0x7c000097, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D64 },
3376{"shllv.ph", "d,t,s", 0x7c000293, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D32 },
3377{"shllv.pw", "d,t,s", 0x7c000497, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D64 },
3378{"shllv.qb", "d,t,s", 0x7c000093, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D32 },
3379{"shllv.qh", "d,t,s", 0x7c000297, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D64 },
3380{"shllv_s.ph", "d,t,s", 0x7c000393, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D32 },
3381{"shllv_s.pw", "d,t,s", 0x7c000597, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D64 },
3382{"shllv_s.qh", "d,t,s", 0x7c000397, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D64 },
3383{"shllv_s.w", "d,t,s", 0x7c000593, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D32 },
3384{"shra.ph", "d,t,4", 0x7c000253, 0xfe0007ff, WR_d|RD_t, 0, D32 },
3385{"shra.pw", "d,t,6", 0x7c000457, 0xfc0007ff, WR_d|RD_t, 0, D64 },
3386{"shra.qh", "d,t,4", 0x7c000257, 0xfe0007ff, WR_d|RD_t, 0, D64 },
3387{"shra_r.ph", "d,t,4", 0x7c000353, 0xfe0007ff, WR_d|RD_t, 0, D32 },
3388{"shra_r.pw", "d,t,6", 0x7c000557, 0xfc0007ff, WR_d|RD_t, 0, D64 },
3389{"shra_r.qh", "d,t,4", 0x7c000357, 0xfe0007ff, WR_d|RD_t, 0, D64 },
3390{"shra_r.w", "d,t,6", 0x7c000553, 0xfc0007ff, WR_d|RD_t, 0, D32 },
3391{"shrav.ph", "d,t,s", 0x7c0002d3, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D32 },
3392{"shrav.pw", "d,t,s", 0x7c0004d7, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D64 },
3393{"shrav.qh", "d,t,s", 0x7c0002d7, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D64 },
3394{"shrav_r.ph", "d,t,s", 0x7c0003d3, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D32 },
3395{"shrav_r.pw", "d,t,s", 0x7c0005d7, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D64 },
3396{"shrav_r.qh", "d,t,s", 0x7c0003d7, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D64 },
3397{"shrav_r.w", "d,t,s", 0x7c0005d3, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D32 },
3398{"shrl.ob", "d,t,3", 0x7c000057, 0xff0007ff, WR_d|RD_t, 0, D64 },
3399{"shrl.qb", "d,t,3", 0x7c000053, 0xff0007ff, WR_d|RD_t, 0, D32 },
3400{"shrlv.ob", "d,t,s", 0x7c0000d7, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D64 },
3401{"shrlv.qb", "d,t,s", 0x7c0000d3, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D32 },
3402{"subq.ph", "d,s,t", 0x7c0002d0, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D32 },
3403{"subq.pw", "d,s,t", 0x7c0004d4, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D64 },
3404{"subq.qh", "d,s,t", 0x7c0002d4, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D64 },
3405{"subq_s.ph", "d,s,t", 0x7c0003d0, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D32 },
3406{"subq_s.pw", "d,s,t", 0x7c0005d4, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D64 },
3407{"subq_s.qh", "d,s,t", 0x7c0003d4, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D64 },
3408{"subq_s.w", "d,s,t", 0x7c0005d0, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D32 },
3409{"subu.ob", "d,s,t", 0x7c000054, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D64 },
3410{"subu.qb", "d,s,t", 0x7c000050, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D32 },
3411{"subu_s.ob", "d,s,t", 0x7c000154, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D64 },
3412{"subu_s.qb", "d,s,t", 0x7c000150, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D32 },
3413{"wrdsp", "s", 0x7c1ffcf8, 0xfc1fffff, RD_s|DSP_VOLA, 0, D32 },
3414{"wrdsp", "s,8", 0x7c0004f8, 0xfc1e07ff, RD_s|DSP_VOLA, 0, D32 },
3415
3416{"absq_s.qb", "d,t", 0x7c000052, 0xffe007ff, WR_d|RD_t, 0, D33 },
3417{"addu.ph", "d,s,t", 0x7c000210, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D33 },
3418{"addu_s.ph", "d,s,t", 0x7c000310, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D33 },
3419{"adduh.qb", "d,s,t", 0x7c000018, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D33 },
3420{"adduh_r.qb", "d,s,t", 0x7c000098, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D33 },
3421{"append", "t,s,h", 0x7c000031, 0xfc0007ff, WR_t|RD_t|RD_s, 0, D33 },
3422{"balign", "t,s,I", 0, (int) M_BALIGN, INSN_MACRO, 0, D33 },
3423{"balign", "t,s,2", 0x7c000431, 0xfc00e7ff, WR_t|RD_t|RD_s, 0, D33 },
3424{"cmpgdu.eq.qb", "d,s,t", 0x7c000611, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D33 },
3425{"cmpgdu.lt.qb", "d,s,t", 0x7c000651, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D33 },
3426{"cmpgdu.le.qb", "d,s,t", 0x7c000691, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D33 },
3427{"dpa.w.ph", "7,s,t", 0x7c000030, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D33 },
3428{"dps.w.ph", "7,s,t", 0x7c000070, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D33 },
3429{"mul.ph", "d,s,t", 0x7c000318, 0xfc0007ff, WR_d|RD_s|RD_t|WR_HILO, 0, D33 },
3430{"mul_s.ph", "d,s,t", 0x7c000398, 0xfc0007ff, WR_d|RD_s|RD_t|WR_HILO, 0, D33 },
3431{"mulq_rs.w", "d,s,t", 0x7c0005d8, 0xfc0007ff, WR_d|RD_s|RD_t|WR_HILO, 0, D33 },
3432{"mulq_s.ph", "d,s,t", 0x7c000790, 0xfc0007ff, WR_d|RD_s|RD_t|WR_HILO, 0, D33 },
3433{"mulq_s.w", "d,s,t", 0x7c000598, 0xfc0007ff, WR_d|RD_s|RD_t|WR_HILO, 0, D33 },
3434{"mulsa.w.ph", "7,s,t", 0x7c0000b0, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D33 },
3435{"precr.qb.ph", "d,s,t", 0x7c000351, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D33 },
3436{"precr_sra.ph.w", "t,s,h", 0x7c000791, 0xfc0007ff, WR_t|RD_t|RD_s, 0, D33 },
3437{"precr_sra_r.ph.w", "t,s,h", 0x7c0007d1, 0xfc0007ff, WR_t|RD_t|RD_s, 0, D33 },
3438{"prepend", "t,s,h", 0x7c000071, 0xfc0007ff, WR_t|RD_t|RD_s, 0, D33 },
3439{"shra.qb", "d,t,3", 0x7c000113, 0xff0007ff, WR_d|RD_t, 0, D33 },
3440{"shra_r.qb", "d,t,3", 0x7c000153, 0xff0007ff, WR_d|RD_t, 0, D33 },
3441{"shrav.qb", "d,t,s", 0x7c000193, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D33 },
3442{"shrav_r.qb", "d,t,s", 0x7c0001d3, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D33 },
3443{"shrl.ph", "d,t,4", 0x7c000653, 0xfe0007ff, WR_d|RD_t, 0, D33 },
3444{"shrlv.ph", "d,t,s", 0x7c0006d3, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D33 },
3445{"subu.ph", "d,s,t", 0x7c000250, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D33 },
3446{"subu_s.ph", "d,s,t", 0x7c000350, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D33 },
3447{"subuh.qb", "d,s,t", 0x7c000058, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D33 },
3448{"subuh_r.qb", "d,s,t", 0x7c0000d8, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D33 },
3449{"addqh.ph", "d,s,t", 0x7c000218, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D33 },
3450{"addqh_r.ph", "d,s,t", 0x7c000298, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D33 },
3451{"addqh.w", "d,s,t", 0x7c000418, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D33 },
3452{"addqh_r.w", "d,s,t", 0x7c000498, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D33 },
3453{"subqh.ph", "d,s,t", 0x7c000258, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D33 },
3454{"subqh_r.ph", "d,s,t", 0x7c0002d8, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D33 },
3455{"subqh.w", "d,s,t", 0x7c000458, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D33 },
3456{"subqh_r.w", "d,s,t", 0x7c0004d8, 0xfc0007ff, WR_d|RD_s|RD_t, 0, D33 },
3457{"dpax.w.ph", "7,s,t", 0x7c000230, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D33 },
3458{"dpsx.w.ph", "7,s,t", 0x7c000270, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D33 },
3459{"dpaqx_s.w.ph", "7,s,t", 0x7c000630, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D33 },
3460{"dpaqx_sa.w.ph", "7,s,t", 0x7c0006b0, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D33 },
3461{"dpsqx_s.w.ph", "7,s,t", 0x7c000670, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D33 },
3462{"dpsqx_sa.w.ph", "7,s,t", 0x7c0006f0, 0xfc00e7ff, MOD_a|RD_s|RD_t, 0, D33 },
3463
3464{"bc0f", "p", 0x41000000, 0xffff0000, CBD|RD_CC, 0, I1 },
3465{"bc0fl", "p", 0x41020000, 0xffff0000, CBL|RD_CC, 0, I2|T3 },
3466{"bc0t", "p", 0x41010000, 0xffff0000, CBD|RD_CC, 0, I1 },
3467{"bc0tl", "p", 0x41030000, 0xffff0000, CBL|RD_CC, 0, I2|T3 },
3468
3469{"mult.g", "d,s,t", 0x7c000018, 0xfc0007ff, RD_s|RD_t|WR_d, 0, IL2E },
3470{"mult.g", "d,s,t", 0x70000010, 0xfc0007ff, RD_s|RD_t|WR_d, 0, IL2F },
3471{"multu.g", "d,s,t", 0x7c000019, 0xfc0007ff, RD_s|RD_t|WR_d, 0, IL2E },
3472{"multu.g", "d,s,t", 0x70000012, 0xfc0007ff, RD_s|RD_t|WR_d, 0, IL2F },
3473{"dmult.g", "d,s,t", 0x7c00001c, 0xfc0007ff, RD_s|RD_t|WR_d, 0, IL2E },
3474{"dmult.g", "d,s,t", 0x70000011, 0xfc0007ff, RD_s|RD_t|WR_d, 0, IL2F },
3475{"dmultu.g", "d,s,t", 0x7c00001d, 0xfc0007ff, RD_s|RD_t|WR_d, 0, IL2E },
3476{"dmultu.g", "d,s,t", 0x70000013, 0xfc0007ff, RD_s|RD_t|WR_d, 0, IL2F },
3477{"div.g", "d,s,t", 0x7c00001a, 0xfc0007ff, RD_s|RD_t|WR_d, 0, IL2E },
3478{"div.g", "d,s,t", 0x70000014, 0xfc0007ff, RD_s|RD_t|WR_d, 0, IL2F },
3479{"divu.g", "d,s,t", 0x7c00001b, 0xfc0007ff, RD_s|RD_t|WR_d, 0, IL2E },
3480{"divu.g", "d,s,t", 0x70000016, 0xfc0007ff, RD_s|RD_t|WR_d, 0, IL2F },
3481{"ddiv.g", "d,s,t", 0x7c00001e, 0xfc0007ff, RD_s|RD_t|WR_d, 0, IL2E },
3482{"ddiv.g", "d,s,t", 0x70000015, 0xfc0007ff, RD_s|RD_t|WR_d, 0, IL2F },
3483{"ddivu.g", "d,s,t", 0x7c00001f, 0xfc0007ff, RD_s|RD_t|WR_d, 0, IL2E },
3484{"ddivu.g", "d,s,t", 0x70000017, 0xfc0007ff, RD_s|RD_t|WR_d, 0, IL2F },
3485{"mod.g", "d,s,t", 0x7c000022, 0xfc0007ff, RD_s|RD_t|WR_d, 0, IL2E },
3486{"mod.g", "d,s,t", 0x7000001c, 0xfc0007ff, RD_s|RD_t|WR_d, 0, IL2F },
3487{"modu.g", "d,s,t", 0x7c000023, 0xfc0007ff, RD_s|RD_t|WR_d, 0, IL2E },
3488{"modu.g", "d,s,t", 0x7000001e, 0xfc0007ff, RD_s|RD_t|WR_d, 0, IL2F },
3489{"dmod.g", "d,s,t", 0x7c000026, 0xfc0007ff, RD_s|RD_t|WR_d, 0, IL2E },
3490{"dmod.g", "d,s,t", 0x7000001d, 0xfc0007ff, RD_s|RD_t|WR_d, 0, IL2F },
3491{"dmodu.g", "d,s,t", 0x7c000027, 0xfc0007ff, RD_s|RD_t|WR_d, 0, IL2E },
3492{"dmodu.g", "d,s,t", 0x7000001f, 0xfc0007ff, RD_s|RD_t|WR_d, 0, IL2F },
3493};
3494
3495#define MIPS_NUM_OPCODES \
3496 ((sizeof mips_builtin_opcodes) / (sizeof (mips_builtin_opcodes[0])))
3497const int bfd_mips_num_builtin_opcodes = MIPS_NUM_OPCODES;
3498
3499
3500
3501struct mips_opcode *mips_opcodes =
3502 (struct mips_opcode *) mips_builtin_opcodes;
3503int bfd_mips_num_opcodes = MIPS_NUM_OPCODES;
3504#undef MIPS_NUM_OPCODES
3505
3506
3507#define INSNLEN 4
3508
3509
3510
3511
3512struct mips_cp0sel_name
3513{
3514 unsigned int cp0reg;
3515 unsigned int sel;
3516 const char * const name;
3517};
3518
3519#if 0
3520
3521static const unsigned int mips16_to_32_reg_map[] =
3522{
3523 16, 17, 2, 3, 4, 5, 6, 7
3524};
3525
3526#define mips16_reg_names(rn) mips_gpr_names[mips16_to_32_reg_map[rn]]
3527#endif
3528
3529static const char * const mips_gpr_names_numeric[32] =
3530{
3531 "$0", "$1", "$2", "$3", "$4", "$5", "$6", "$7",
3532 "$8", "$9", "$10", "$11", "$12", "$13", "$14", "$15",
3533 "$16", "$17", "$18", "$19", "$20", "$21", "$22", "$23",
3534 "$24", "$25", "$26", "$27", "$28", "$29", "$30", "$31"
3535};
3536
3537static const char * const mips_gpr_names_oldabi[32] =
3538{
3539 "zero", "at", "v0", "v1", "a0", "a1", "a2", "a3",
3540 "t0", "t1", "t2", "t3", "t4", "t5", "t6", "t7",
3541 "s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7",
3542 "t8", "t9", "k0", "k1", "gp", "sp", "s8", "ra"
3543};
3544
3545static const char * const mips_gpr_names_newabi[32] =
3546{
3547 "zero", "at", "v0", "v1", "a0", "a1", "a2", "a3",
3548 "a4", "a5", "a6", "a7", "t0", "t1", "t2", "t3",
3549 "s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7",
3550 "t8", "t9", "k0", "k1", "gp", "sp", "s8", "ra"
3551};
3552
3553static const char * const mips_fpr_names_numeric[32] =
3554{
3555 "$f0", "$f1", "$f2", "$f3", "$f4", "$f5", "$f6", "$f7",
3556 "$f8", "$f9", "$f10", "$f11", "$f12", "$f13", "$f14", "$f15",
3557 "$f16", "$f17", "$f18", "$f19", "$f20", "$f21", "$f22", "$f23",
3558 "$f24", "$f25", "$f26", "$f27", "$f28", "$f29", "$f30", "$f31"
3559};
3560
3561static const char * const mips_fpr_names_32[32] =
3562{
3563 "fv0", "fv0f", "fv1", "fv1f", "ft0", "ft0f", "ft1", "ft1f",
3564 "ft2", "ft2f", "ft3", "ft3f", "fa0", "fa0f", "fa1", "fa1f",
3565 "ft4", "ft4f", "ft5", "ft5f", "fs0", "fs0f", "fs1", "fs1f",
3566 "fs2", "fs2f", "fs3", "fs3f", "fs4", "fs4f", "fs5", "fs5f"
3567};
3568
3569static const char * const mips_fpr_names_n32[32] =
3570{
3571 "fv0", "ft14", "fv1", "ft15", "ft0", "ft1", "ft2", "ft3",
3572 "ft4", "ft5", "ft6", "ft7", "fa0", "fa1", "fa2", "fa3",
3573 "fa4", "fa5", "fa6", "fa7", "fs0", "ft8", "fs1", "ft9",
3574 "fs2", "ft10", "fs3", "ft11", "fs4", "ft12", "fs5", "ft13"
3575};
3576
3577static const char * const mips_fpr_names_64[32] =
3578{
3579 "fv0", "ft12", "fv1", "ft13", "ft0", "ft1", "ft2", "ft3",
3580 "ft4", "ft5", "ft6", "ft7", "fa0", "fa1", "fa2", "fa3",
3581 "fa4", "fa5", "fa6", "fa7", "ft8", "ft9", "ft10", "ft11",
3582 "fs0", "fs1", "fs2", "fs3", "fs4", "fs5", "fs6", "fs7"
3583};
3584
3585static const char * const mips_wr_names[32] = {
3586 "w0", "w1", "w2", "w3", "w4", "w5", "w6", "w7",
3587 "w8", "w9", "w10", "w11", "w12", "w13", "w14", "w15",
3588 "w16", "w17", "w18", "w19", "w20", "w21", "w22", "w23",
3589 "w24", "w25", "w26", "w27", "w28", "w29", "w30", "w31"
3590};
3591
3592static const char * const mips_cp0_names_numeric[32] =
3593{
3594 "$0", "$1", "$2", "$3", "$4", "$5", "$6", "$7",
3595 "$8", "$9", "$10", "$11", "$12", "$13", "$14", "$15",
3596 "$16", "$17", "$18", "$19", "$20", "$21", "$22", "$23",
3597 "$24", "$25", "$26", "$27", "$28", "$29", "$30", "$31"
3598};
3599
3600static const char * const mips_cp0_names_mips3264[32] =
3601{
3602 "c0_index", "c0_random", "c0_entrylo0", "c0_entrylo1",
3603 "c0_context", "c0_pagemask", "c0_wired", "$7",
3604 "c0_badvaddr", "c0_count", "c0_entryhi", "c0_compare",
3605 "c0_status", "c0_cause", "c0_epc", "c0_prid",
3606 "c0_config", "c0_lladdr", "c0_watchlo", "c0_watchhi",
3607 "c0_xcontext", "$21", "$22", "c0_debug",
3608 "c0_depc", "c0_perfcnt", "c0_errctl", "c0_cacheerr",
3609 "c0_taglo", "c0_taghi", "c0_errorepc", "c0_desave",
3610};
3611
3612static const struct mips_cp0sel_name mips_cp0sel_names_mips3264[] =
3613{
3614 { 4, 1, "c0_contextconfig" },
3615 { 0, 1, "c0_mvpcontrol" },
3616 { 0, 2, "c0_mvpconf0" },
3617 { 0, 3, "c0_mvpconf1" },
3618 { 1, 1, "c0_vpecontrol" },
3619 { 1, 2, "c0_vpeconf0" },
3620 { 1, 3, "c0_vpeconf1" },
3621 { 1, 4, "c0_yqmask" },
3622 { 1, 5, "c0_vpeschedule" },
3623 { 1, 6, "c0_vpeschefback" },
3624 { 2, 1, "c0_tcstatus" },
3625 { 2, 2, "c0_tcbind" },
3626 { 2, 3, "c0_tcrestart" },
3627 { 2, 4, "c0_tchalt" },
3628 { 2, 5, "c0_tccontext" },
3629 { 2, 6, "c0_tcschedule" },
3630 { 2, 7, "c0_tcschefback" },
3631 { 5, 1, "c0_pagegrain" },
3632 { 6, 1, "c0_srsconf0" },
3633 { 6, 2, "c0_srsconf1" },
3634 { 6, 3, "c0_srsconf2" },
3635 { 6, 4, "c0_srsconf3" },
3636 { 6, 5, "c0_srsconf4" },
3637 { 12, 1, "c0_intctl" },
3638 { 12, 2, "c0_srsctl" },
3639 { 12, 3, "c0_srsmap" },
3640 { 15, 1, "c0_ebase" },
3641 { 16, 1, "c0_config1" },
3642 { 16, 2, "c0_config2" },
3643 { 16, 3, "c0_config3" },
3644 { 18, 1, "c0_watchlo,1" },
3645 { 18, 2, "c0_watchlo,2" },
3646 { 18, 3, "c0_watchlo,3" },
3647 { 18, 4, "c0_watchlo,4" },
3648 { 18, 5, "c0_watchlo,5" },
3649 { 18, 6, "c0_watchlo,6" },
3650 { 18, 7, "c0_watchlo,7" },
3651 { 19, 1, "c0_watchhi,1" },
3652 { 19, 2, "c0_watchhi,2" },
3653 { 19, 3, "c0_watchhi,3" },
3654 { 19, 4, "c0_watchhi,4" },
3655 { 19, 5, "c0_watchhi,5" },
3656 { 19, 6, "c0_watchhi,6" },
3657 { 19, 7, "c0_watchhi,7" },
3658 { 23, 1, "c0_tracecontrol" },
3659 { 23, 2, "c0_tracecontrol2" },
3660 { 23, 3, "c0_usertracedata" },
3661 { 23, 4, "c0_tracebpc" },
3662 { 25, 1, "c0_perfcnt,1" },
3663 { 25, 2, "c0_perfcnt,2" },
3664 { 25, 3, "c0_perfcnt,3" },
3665 { 25, 4, "c0_perfcnt,4" },
3666 { 25, 5, "c0_perfcnt,5" },
3667 { 25, 6, "c0_perfcnt,6" },
3668 { 25, 7, "c0_perfcnt,7" },
3669 { 27, 1, "c0_cacheerr,1" },
3670 { 27, 2, "c0_cacheerr,2" },
3671 { 27, 3, "c0_cacheerr,3" },
3672 { 28, 1, "c0_datalo" },
3673 { 28, 2, "c0_taglo1" },
3674 { 28, 3, "c0_datalo1" },
3675 { 28, 4, "c0_taglo2" },
3676 { 28, 5, "c0_datalo2" },
3677 { 28, 6, "c0_taglo3" },
3678 { 28, 7, "c0_datalo3" },
3679 { 29, 1, "c0_datahi" },
3680 { 29, 2, "c0_taghi1" },
3681 { 29, 3, "c0_datahi1" },
3682 { 29, 4, "c0_taghi2" },
3683 { 29, 5, "c0_datahi2" },
3684 { 29, 6, "c0_taghi3" },
3685 { 29, 7, "c0_datahi3" },
3686};
3687
3688static const char * const mips_cp0_names_mips3264r2[32] =
3689{
3690 "c0_index", "c0_random", "c0_entrylo0", "c0_entrylo1",
3691 "c0_context", "c0_pagemask", "c0_wired", "c0_hwrena",
3692 "c0_badvaddr", "c0_count", "c0_entryhi", "c0_compare",
3693 "c0_status", "c0_cause", "c0_epc", "c0_prid",
3694 "c0_config", "c0_lladdr", "c0_watchlo", "c0_watchhi",
3695 "c0_xcontext", "$21", "$22", "c0_debug",
3696 "c0_depc", "c0_perfcnt", "c0_errctl", "c0_cacheerr",
3697 "c0_taglo", "c0_taghi", "c0_errorepc", "c0_desave",
3698};
3699
3700static const struct mips_cp0sel_name mips_cp0sel_names_mips3264r2[] =
3701{
3702 { 4, 1, "c0_contextconfig" },
3703 { 5, 1, "c0_pagegrain" },
3704 { 12, 1, "c0_intctl" },
3705 { 12, 2, "c0_srsctl" },
3706 { 12, 3, "c0_srsmap" },
3707 { 15, 1, "c0_ebase" },
3708 { 16, 1, "c0_config1" },
3709 { 16, 2, "c0_config2" },
3710 { 16, 3, "c0_config3" },
3711 { 18, 1, "c0_watchlo,1" },
3712 { 18, 2, "c0_watchlo,2" },
3713 { 18, 3, "c0_watchlo,3" },
3714 { 18, 4, "c0_watchlo,4" },
3715 { 18, 5, "c0_watchlo,5" },
3716 { 18, 6, "c0_watchlo,6" },
3717 { 18, 7, "c0_watchlo,7" },
3718 { 19, 1, "c0_watchhi,1" },
3719 { 19, 2, "c0_watchhi,2" },
3720 { 19, 3, "c0_watchhi,3" },
3721 { 19, 4, "c0_watchhi,4" },
3722 { 19, 5, "c0_watchhi,5" },
3723 { 19, 6, "c0_watchhi,6" },
3724 { 19, 7, "c0_watchhi,7" },
3725 { 23, 1, "c0_tracecontrol" },
3726 { 23, 2, "c0_tracecontrol2" },
3727 { 23, 3, "c0_usertracedata" },
3728 { 23, 4, "c0_tracebpc" },
3729 { 25, 1, "c0_perfcnt,1" },
3730 { 25, 2, "c0_perfcnt,2" },
3731 { 25, 3, "c0_perfcnt,3" },
3732 { 25, 4, "c0_perfcnt,4" },
3733 { 25, 5, "c0_perfcnt,5" },
3734 { 25, 6, "c0_perfcnt,6" },
3735 { 25, 7, "c0_perfcnt,7" },
3736 { 27, 1, "c0_cacheerr,1" },
3737 { 27, 2, "c0_cacheerr,2" },
3738 { 27, 3, "c0_cacheerr,3" },
3739 { 28, 1, "c0_datalo" },
3740 { 28, 2, "c0_taglo1" },
3741 { 28, 3, "c0_datalo1" },
3742 { 28, 4, "c0_taglo2" },
3743 { 28, 5, "c0_datalo2" },
3744 { 28, 6, "c0_taglo3" },
3745 { 28, 7, "c0_datalo3" },
3746 { 29, 1, "c0_datahi" },
3747 { 29, 2, "c0_taghi1" },
3748 { 29, 3, "c0_datahi1" },
3749 { 29, 4, "c0_taghi2" },
3750 { 29, 5, "c0_datahi2" },
3751 { 29, 6, "c0_taghi3" },
3752 { 29, 7, "c0_datahi3" },
3753};
3754
3755
3756static const char * const mips_cp0_names_sb1[32] =
3757{
3758 "c0_index", "c0_random", "c0_entrylo0", "c0_entrylo1",
3759 "c0_context", "c0_pagemask", "c0_wired", "$7",
3760 "c0_badvaddr", "c0_count", "c0_entryhi", "c0_compare",
3761 "c0_status", "c0_cause", "c0_epc", "c0_prid",
3762 "c0_config", "c0_lladdr", "c0_watchlo", "c0_watchhi",
3763 "c0_xcontext", "$21", "$22", "c0_debug",
3764 "c0_depc", "c0_perfcnt", "c0_errctl", "c0_cacheerr_i",
3765 "c0_taglo_i", "c0_taghi_i", "c0_errorepc", "c0_desave",
3766};
3767
3768static const struct mips_cp0sel_name mips_cp0sel_names_sb1[] =
3769{
3770 { 16, 1, "c0_config1" },
3771 { 18, 1, "c0_watchlo,1" },
3772 { 19, 1, "c0_watchhi,1" },
3773 { 22, 0, "c0_perftrace" },
3774 { 23, 3, "c0_edebug" },
3775 { 25, 1, "c0_perfcnt,1" },
3776 { 25, 2, "c0_perfcnt,2" },
3777 { 25, 3, "c0_perfcnt,3" },
3778 { 25, 4, "c0_perfcnt,4" },
3779 { 25, 5, "c0_perfcnt,5" },
3780 { 25, 6, "c0_perfcnt,6" },
3781 { 25, 7, "c0_perfcnt,7" },
3782 { 26, 1, "c0_buserr_pa" },
3783 { 27, 1, "c0_cacheerr_d" },
3784 { 27, 3, "c0_cacheerr_d_pa" },
3785 { 28, 1, "c0_datalo_i" },
3786 { 28, 2, "c0_taglo_d" },
3787 { 28, 3, "c0_datalo_d" },
3788 { 29, 1, "c0_datahi_i" },
3789 { 29, 2, "c0_taghi_d" },
3790 { 29, 3, "c0_datahi_d" },
3791};
3792
3793static const char * const mips_hwr_names_numeric[32] =
3794{
3795 "$0", "$1", "$2", "$3", "$4", "$5", "$6", "$7",
3796 "$8", "$9", "$10", "$11", "$12", "$13", "$14", "$15",
3797 "$16", "$17", "$18", "$19", "$20", "$21", "$22", "$23",
3798 "$24", "$25", "$26", "$27", "$28", "$29", "$30", "$31"
3799};
3800
3801static const char * const mips_hwr_names_mips3264r2[32] =
3802{
3803 "hwr_cpunum", "hwr_synci_step", "hwr_cc", "hwr_ccres",
3804 "$4", "$5", "$6", "$7",
3805 "$8", "$9", "$10", "$11", "$12", "$13", "$14", "$15",
3806 "$16", "$17", "$18", "$19", "$20", "$21", "$22", "$23",
3807 "$24", "$25", "$26", "$27", "$28", "$29", "$30", "$31"
3808};
3809
3810static const char * const mips_msa_control_names_mips3264r2[32] = {
3811 "MSAIR", "MSACSR", "$2", "$3", "$4", "$5", "$6", "$7",
3812 "$8", "$9", "$10", "$11", "$12", "$13", "$14", "$15",
3813 "$16", "$17", "$18", "$19", "$20", "$21", "$22", "$23",
3814 "$24", "$25", "$26", "$27", "$28", "$29", "$30", "$31"
3815};
3816
3817struct mips_abi_choice
3818{
3819 const char *name;
3820 const char * const *gpr_names;
3821 const char * const *fpr_names;
3822};
3823
3824static struct mips_abi_choice mips_abi_choices[] =
3825{
3826 { "numeric", mips_gpr_names_numeric, mips_fpr_names_numeric },
3827 { "32", mips_gpr_names_oldabi, mips_fpr_names_32 },
3828 { "n32", mips_gpr_names_newabi, mips_fpr_names_n32 },
3829 { "64", mips_gpr_names_newabi, mips_fpr_names_64 },
3830};
3831
3832struct mips_arch_choice
3833{
3834 const char *name;
3835 int bfd_mach_valid;
3836 unsigned long bfd_mach;
3837 int processor;
3838 int isa;
3839 const char * const *cp0_names;
3840 const struct mips_cp0sel_name *cp0sel_names;
3841 unsigned int cp0sel_names_len;
3842 const char * const *hwr_names;
3843};
3844
3845#define bfd_mach_mips3000 3000
3846#define bfd_mach_mips3900 3900
3847#define bfd_mach_mips4000 4000
3848#define bfd_mach_mips4010 4010
3849#define bfd_mach_mips4100 4100
3850#define bfd_mach_mips4111 4111
3851#define bfd_mach_mips4120 4120
3852#define bfd_mach_mips4300 4300
3853#define bfd_mach_mips4400 4400
3854#define bfd_mach_mips4600 4600
3855#define bfd_mach_mips4650 4650
3856#define bfd_mach_mips5000 5000
3857#define bfd_mach_mips5400 5400
3858#define bfd_mach_mips5500 5500
3859#define bfd_mach_mips6000 6000
3860#define bfd_mach_mips7000 7000
3861#define bfd_mach_mips8000 8000
3862#define bfd_mach_mips9000 9000
3863#define bfd_mach_mips10000 10000
3864#define bfd_mach_mips12000 12000
3865#define bfd_mach_mips16 16
3866#define bfd_mach_mips5 5
3867#define bfd_mach_mips_sb1 12310201
3868#define bfd_mach_mipsisa32 32
3869#define bfd_mach_mipsisa32r2 33
3870#define bfd_mach_mipsisa64 64
3871#define bfd_mach_mipsisa64r2 65
3872
3873static const struct mips_arch_choice mips_arch_choices[] =
3874{
3875 { "numeric", 0, 0, 0, 0,
3876 mips_cp0_names_numeric, NULL, 0, mips_hwr_names_numeric },
3877
3878 { "r3000", 1, bfd_mach_mips3000, CPU_R3000, ISA_MIPS1,
3879 mips_cp0_names_numeric, NULL, 0, mips_hwr_names_numeric },
3880 { "r3900", 1, bfd_mach_mips3900, CPU_R3900, ISA_MIPS1,
3881 mips_cp0_names_numeric, NULL, 0, mips_hwr_names_numeric },
3882 { "r4000", 1, bfd_mach_mips4000, CPU_R4000, ISA_MIPS3,
3883 mips_cp0_names_numeric, NULL, 0, mips_hwr_names_numeric },
3884 { "r4010", 1, bfd_mach_mips4010, CPU_R4010, ISA_MIPS2,
3885 mips_cp0_names_numeric, NULL, 0, mips_hwr_names_numeric },
3886 { "vr4100", 1, bfd_mach_mips4100, CPU_VR4100, ISA_MIPS3,
3887 mips_cp0_names_numeric, NULL, 0, mips_hwr_names_numeric },
3888 { "vr4111", 1, bfd_mach_mips4111, CPU_R4111, ISA_MIPS3,
3889 mips_cp0_names_numeric, NULL, 0, mips_hwr_names_numeric },
3890 { "vr4120", 1, bfd_mach_mips4120, CPU_VR4120, ISA_MIPS3,
3891 mips_cp0_names_numeric, NULL, 0, mips_hwr_names_numeric },
3892 { "r4300", 1, bfd_mach_mips4300, CPU_R4300, ISA_MIPS3,
3893 mips_cp0_names_numeric, NULL, 0, mips_hwr_names_numeric },
3894 { "r4400", 1, bfd_mach_mips4400, CPU_R4400, ISA_MIPS3,
3895 mips_cp0_names_numeric, NULL, 0, mips_hwr_names_numeric },
3896 { "r4600", 1, bfd_mach_mips4600, CPU_R4600, ISA_MIPS3,
3897 mips_cp0_names_numeric, NULL, 0, mips_hwr_names_numeric },
3898 { "r4650", 1, bfd_mach_mips4650, CPU_R4650, ISA_MIPS3,
3899 mips_cp0_names_numeric, NULL, 0, mips_hwr_names_numeric },
3900 { "r5000", 1, bfd_mach_mips5000, CPU_R5000, ISA_MIPS4,
3901 mips_cp0_names_numeric, NULL, 0, mips_hwr_names_numeric },
3902 { "vr5400", 1, bfd_mach_mips5400, CPU_VR5400, ISA_MIPS4,
3903 mips_cp0_names_numeric, NULL, 0, mips_hwr_names_numeric },
3904 { "vr5500", 1, bfd_mach_mips5500, CPU_VR5500, ISA_MIPS4,
3905 mips_cp0_names_numeric, NULL, 0, mips_hwr_names_numeric },
3906 { "r6000", 1, bfd_mach_mips6000, CPU_R6000, ISA_MIPS2,
3907 mips_cp0_names_numeric, NULL, 0, mips_hwr_names_numeric },
3908 { "rm7000", 1, bfd_mach_mips7000, CPU_RM7000, ISA_MIPS4,
3909 mips_cp0_names_numeric, NULL, 0, mips_hwr_names_numeric },
3910 { "rm9000", 1, bfd_mach_mips7000, CPU_RM7000, ISA_MIPS4,
3911 mips_cp0_names_numeric, NULL, 0, mips_hwr_names_numeric },
3912 { "r8000", 1, bfd_mach_mips8000, CPU_R8000, ISA_MIPS4,
3913 mips_cp0_names_numeric, NULL, 0, mips_hwr_names_numeric },
3914 { "r10000", 1, bfd_mach_mips10000, CPU_R10000, ISA_MIPS4,
3915 mips_cp0_names_numeric, NULL, 0, mips_hwr_names_numeric },
3916 { "r12000", 1, bfd_mach_mips12000, CPU_R12000, ISA_MIPS4,
3917 mips_cp0_names_numeric, NULL, 0, mips_hwr_names_numeric },
3918 { "mips5", 1, bfd_mach_mips5, CPU_MIPS5, ISA_MIPS5,
3919 mips_cp0_names_numeric, NULL, 0, mips_hwr_names_numeric },
3920
3921
3922
3923
3924
3925
3926 { "mips32", 1, bfd_mach_mipsisa32, CPU_MIPS32,
3927 ISA_MIPS32 | INSN_MIPS16 | INSN_SMARTMIPS,
3928 mips_cp0_names_mips3264,
3929 mips_cp0sel_names_mips3264, ARRAY_SIZE (mips_cp0sel_names_mips3264),
3930 mips_hwr_names_numeric },
3931
3932 { "mips32r2", 1, bfd_mach_mipsisa32r2, CPU_MIPS32R2,
3933 (ISA_MIPS32R2 | INSN_MIPS16 | INSN_SMARTMIPS | INSN_DSP | INSN_DSPR2
3934 | INSN_MIPS3D | INSN_MT | INSN_MSA),
3935 mips_cp0_names_mips3264r2,
3936 mips_cp0sel_names_mips3264r2, ARRAY_SIZE (mips_cp0sel_names_mips3264r2),
3937 mips_hwr_names_mips3264r2 },
3938
3939
3940 { "mips64", 1, bfd_mach_mipsisa64, CPU_MIPS64,
3941 ISA_MIPS64 | INSN_MIPS16 | INSN_MIPS3D | INSN_MDMX,
3942 mips_cp0_names_mips3264,
3943 mips_cp0sel_names_mips3264, ARRAY_SIZE (mips_cp0sel_names_mips3264),
3944 mips_hwr_names_numeric },
3945
3946 { "mips64r2", 1, bfd_mach_mipsisa64r2, CPU_MIPS64R2,
3947 (ISA_MIPS64R2 | INSN_MIPS16 | INSN_MIPS3D | INSN_DSP | INSN_DSPR2
3948 | INSN_DSP64 | INSN_MT | INSN_MDMX),
3949 mips_cp0_names_mips3264r2,
3950 mips_cp0sel_names_mips3264r2, ARRAY_SIZE (mips_cp0sel_names_mips3264r2),
3951 mips_hwr_names_mips3264r2 },
3952
3953 { "sb1", 1, bfd_mach_mips_sb1, CPU_SB1,
3954 ISA_MIPS64 | INSN_MIPS3D | INSN_SB1,
3955 mips_cp0_names_sb1,
3956 mips_cp0sel_names_sb1, ARRAY_SIZE (mips_cp0sel_names_sb1),
3957 mips_hwr_names_numeric },
3958
3959
3960
3961 { "", 1, bfd_mach_mips16, CPU_MIPS16, ISA_MIPS3 | INSN_MIPS16,
3962 mips_cp0_names_numeric, NULL, 0, mips_hwr_names_numeric },
3963};
3964
3965
3966
3967
3968static int mips_processor;
3969static int mips_isa;
3970static const char * const *mips_gpr_names;
3971static const char * const *mips_fpr_names;
3972static const char * const *mips_cp0_names;
3973static const struct mips_cp0sel_name *mips_cp0sel_names;
3974static int mips_cp0sel_names_len;
3975static const char * const *mips_hwr_names;
3976
3977
3978static int no_aliases;
3979
3980static const struct mips_abi_choice *
3981choose_abi_by_name (const char *name, unsigned int namelen)
3982{
3983 const struct mips_abi_choice *c;
3984 unsigned int i;
3985
3986 for (i = 0, c = NULL; i < ARRAY_SIZE (mips_abi_choices) && c == NULL; i++)
3987 if (strncmp (mips_abi_choices[i].name, name, namelen) == 0
3988 && strlen (mips_abi_choices[i].name) == namelen)
3989 c = &mips_abi_choices[i];
3990
3991 return c;
3992}
3993
3994static const struct mips_arch_choice *
3995choose_arch_by_name (const char *name, unsigned int namelen)
3996{
3997 const struct mips_arch_choice *c = NULL;
3998 unsigned int i;
3999
4000 for (i = 0, c = NULL; i < ARRAY_SIZE (mips_arch_choices) && c == NULL; i++)
4001 if (strncmp (mips_arch_choices[i].name, name, namelen) == 0
4002 && strlen (mips_arch_choices[i].name) == namelen)
4003 c = &mips_arch_choices[i];
4004
4005 return c;
4006}
4007
4008static const struct mips_arch_choice *
4009choose_arch_by_number (unsigned long mach)
4010{
4011 static unsigned long hint_bfd_mach;
4012 static const struct mips_arch_choice *hint_arch_choice;
4013 const struct mips_arch_choice *c;
4014 unsigned int i;
4015
4016
4017
4018 if (hint_bfd_mach == mach
4019 && hint_arch_choice != NULL
4020 && hint_arch_choice->bfd_mach == hint_bfd_mach)
4021 return hint_arch_choice;
4022
4023 for (i = 0, c = NULL; i < ARRAY_SIZE (mips_arch_choices) && c == NULL; i++)
4024 {
4025 if (mips_arch_choices[i].bfd_mach_valid
4026 && mips_arch_choices[i].bfd_mach == mach)
4027 {
4028 c = &mips_arch_choices[i];
4029 hint_bfd_mach = mach;
4030 hint_arch_choice = c;
4031 }
4032 }
4033 return c;
4034}
4035
4036static void
4037set_default_mips_dis_options (struct disassemble_info *info)
4038{
4039 const struct mips_arch_choice *chosen_arch;
4040
4041
4042
4043 mips_isa = ISA_MIPS3;
4044 mips_processor = CPU_R3000;
4045 mips_gpr_names = mips_gpr_names_oldabi;
4046 mips_fpr_names = mips_fpr_names_numeric;
4047 mips_cp0_names = mips_cp0_names_numeric;
4048 mips_cp0sel_names = NULL;
4049 mips_cp0sel_names_len = 0;
4050 mips_hwr_names = mips_hwr_names_numeric;
4051 no_aliases = 0;
4052
4053
4054#if 0
4055 if (info->flavour == bfd_target_elf_flavour && info->section != NULL)
4056 {
4057 Elf_Internal_Ehdr *header;
4058
4059 header = elf_elfheader (info->section->owner);
4060 if (is_newabi (header))
4061 mips_gpr_names = mips_gpr_names_newabi;
4062 }
4063#endif
4064
4065
4066#if !defined(SYMTAB_AVAILABLE) && 0
4067
4068
4069 target_processor = mips_target_info.processor;
4070 mips_isa = mips_target_info.isa;
4071#else
4072 chosen_arch = choose_arch_by_number (info->mach);
4073 if (chosen_arch != NULL)
4074 {
4075 mips_processor = chosen_arch->processor;
4076 mips_isa = chosen_arch->isa;
4077 mips_cp0_names = chosen_arch->cp0_names;
4078 mips_cp0sel_names = chosen_arch->cp0sel_names;
4079 mips_cp0sel_names_len = chosen_arch->cp0sel_names_len;
4080 mips_hwr_names = chosen_arch->hwr_names;
4081 }
4082#endif
4083}
4084
4085static void
4086parse_mips_dis_option (const char *option, unsigned int len)
4087{
4088 unsigned int i, optionlen, vallen;
4089 const char *val;
4090 const struct mips_abi_choice *chosen_abi;
4091 const struct mips_arch_choice *chosen_arch;
4092
4093
4094 for (i = 0; i < len; i++)
4095 {
4096 if (option[i] == '=')
4097 break;
4098 }
4099 if (i == 0)
4100 return;
4101 if (i == len)
4102 return;
4103 if (i == (len - 1))
4104 return;
4105
4106 optionlen = i;
4107 val = option + (optionlen + 1);
4108 vallen = len - (optionlen + 1);
4109
4110 if (strncmp("gpr-names", option, optionlen) == 0
4111 && strlen("gpr-names") == optionlen)
4112 {
4113 chosen_abi = choose_abi_by_name (val, vallen);
4114 if (chosen_abi != NULL)
4115 mips_gpr_names = chosen_abi->gpr_names;
4116 return;
4117 }
4118
4119 if (strncmp("fpr-names", option, optionlen) == 0
4120 && strlen("fpr-names") == optionlen)
4121 {
4122 chosen_abi = choose_abi_by_name (val, vallen);
4123 if (chosen_abi != NULL)
4124 mips_fpr_names = chosen_abi->fpr_names;
4125 return;
4126 }
4127
4128 if (strncmp("cp0-names", option, optionlen) == 0
4129 && strlen("cp0-names") == optionlen)
4130 {
4131 chosen_arch = choose_arch_by_name (val, vallen);
4132 if (chosen_arch != NULL)
4133 {
4134 mips_cp0_names = chosen_arch->cp0_names;
4135 mips_cp0sel_names = chosen_arch->cp0sel_names;
4136 mips_cp0sel_names_len = chosen_arch->cp0sel_names_len;
4137 }
4138 return;
4139 }
4140
4141 if (strncmp("hwr-names", option, optionlen) == 0
4142 && strlen("hwr-names") == optionlen)
4143 {
4144 chosen_arch = choose_arch_by_name (val, vallen);
4145 if (chosen_arch != NULL)
4146 mips_hwr_names = chosen_arch->hwr_names;
4147 return;
4148 }
4149
4150 if (strncmp("reg-names", option, optionlen) == 0
4151 && strlen("reg-names") == optionlen)
4152 {
4153
4154
4155
4156
4157 chosen_abi = choose_abi_by_name (val, vallen);
4158 if (chosen_abi != NULL)
4159 {
4160 mips_gpr_names = chosen_abi->gpr_names;
4161 mips_fpr_names = chosen_abi->fpr_names;
4162 }
4163 chosen_arch = choose_arch_by_name (val, vallen);
4164 if (chosen_arch != NULL)
4165 {
4166 mips_cp0_names = chosen_arch->cp0_names;
4167 mips_cp0sel_names = chosen_arch->cp0sel_names;
4168 mips_cp0sel_names_len = chosen_arch->cp0sel_names_len;
4169 mips_hwr_names = chosen_arch->hwr_names;
4170 }
4171 return;
4172 }
4173
4174
4175}
4176
4177static void
4178parse_mips_dis_options (const char *options)
4179{
4180 const char *option_end;
4181
4182 if (options == NULL)
4183 return;
4184
4185 while (*options != '\0')
4186 {
4187
4188 if (*options == ',')
4189 {
4190 options++;
4191 continue;
4192 }
4193
4194
4195 option_end = options + 1;
4196 while (*option_end != ',' && *option_end != '\0')
4197 option_end++;
4198
4199 parse_mips_dis_option (options, option_end - options);
4200
4201
4202
4203 options = option_end;
4204 }
4205}
4206
4207static const struct mips_cp0sel_name *
4208lookup_mips_cp0sel_name (const struct mips_cp0sel_name *names,
4209 unsigned int len,
4210 unsigned int cp0reg,
4211 unsigned int sel)
4212{
4213 unsigned int i;
4214
4215 for (i = 0; i < len; i++)
4216 if (names[i].cp0reg == cp0reg && names[i].sel == sel)
4217 return &names[i];
4218 return NULL;
4219}
4220
4221
4222
4223static void
4224print_insn_args (const char *d,
4225 register unsigned long int l,
4226 bfd_vma pc,
4227 struct disassemble_info *info,
4228 const struct mips_opcode *opp)
4229{
4230 int op, delta;
4231 unsigned int lsb, msb, msbd;
4232
4233 lsb = 0;
4234
4235 for (; *d != '\0'; d++)
4236 {
4237 switch (*d)
4238 {
4239 case ',':
4240 case '(':
4241 case ')':
4242 case '[':
4243 case ']':
4244 (*info->fprintf_func) (info->stream, "%c", *d);
4245 break;
4246
4247 case '+':
4248
4249 d++;
4250 switch (*d)
4251 {
4252 case '\0':
4253
4254 (*info->fprintf_func) (info->stream,
4255 _("# internal error, incomplete extension sequence (+)"));
4256 return;
4257
4258 case 'A':
4259 lsb = (l >> OP_SH_SHAMT) & OP_MASK_SHAMT;
4260 (*info->fprintf_func) (info->stream, "0x%x", lsb);
4261 break;
4262
4263 case 'B':
4264 msb = (l >> OP_SH_INSMSB) & OP_MASK_INSMSB;
4265 (*info->fprintf_func) (info->stream, "0x%x", msb - lsb + 1);
4266 break;
4267
4268 case '1':
4269 (*info->fprintf_func) (info->stream, "0x%lx",
4270 (l >> OP_SH_UDI1) & OP_MASK_UDI1);
4271 break;
4272
4273 case '2':
4274 (*info->fprintf_func) (info->stream, "0x%lx",
4275 (l >> OP_SH_UDI2) & OP_MASK_UDI2);
4276 break;
4277
4278 case '3':
4279 (*info->fprintf_func) (info->stream, "0x%lx",
4280 (l >> OP_SH_UDI3) & OP_MASK_UDI3);
4281 break;
4282
4283 case '4':
4284 (*info->fprintf_func) (info->stream, "0x%lx",
4285 (l >> OP_SH_UDI4) & OP_MASK_UDI4);
4286 break;
4287
4288 case '5':
4289 delta = ((l >> OP_SH_RT) & OP_MASK_RT);
4290 if (delta & 0x10) {
4291 delta |= ~OP_MASK_RT;
4292 }
4293 (*info->fprintf_func) (info->stream, "%d", delta);
4294 break;
4295
4296 case '6':
4297 (*info->fprintf_func) (info->stream, "0x%lx",
4298 (l >> OP_SH_2BIT) & OP_MASK_2BIT);
4299 break;
4300
4301 case '7':
4302 (*info->fprintf_func) (info->stream, "0x%lx",
4303 (l >> OP_SH_3BIT) & OP_MASK_3BIT);
4304 break;
4305
4306 case '8':
4307 (*info->fprintf_func) (info->stream, "0x%lx",
4308 (l >> OP_SH_4BIT) & OP_MASK_4BIT);
4309 break;
4310
4311 case '9':
4312 (*info->fprintf_func) (info->stream, "0x%lx",
4313 (l >> OP_SH_5BIT) & OP_MASK_5BIT);
4314 break;
4315
4316 case ':':
4317 (*info->fprintf_func) (info->stream, "0x%lx",
4318 (l >> OP_SH_1BIT) & OP_MASK_1BIT);
4319 break;
4320
4321 case '!':
4322 delta = ((l >> OP_SH_10BIT) & OP_MASK_10BIT);
4323 if (delta & 0x200) {
4324 delta |= ~OP_MASK_10BIT;
4325 }
4326 info->target = (delta << 2) + pc + INSNLEN;
4327 (*info->print_address_func) (info->target, info);
4328 break;
4329
4330 case '~':
4331 (*info->fprintf_func) (info->stream, "0");
4332 break;
4333
4334 case '@':
4335 (*info->fprintf_func) (info->stream, "0x%lx",
4336 ((l >> OP_SH_1_TO_4) & OP_MASK_1_TO_4)+1);
4337 break;
4338
4339 case '^':
4340 delta = ((l >> OP_SH_IMM10) & OP_MASK_IMM10);
4341 if (delta & 0x200) {
4342 delta |= ~OP_MASK_IMM10;
4343 }
4344 (*info->fprintf_func) (info->stream, "%d", delta);
4345 break;
4346
4347 case '#':
4348 delta = ((l >> OP_SH_IMM10) & OP_MASK_IMM10);
4349 if (delta & 0x200) {
4350 delta |= ~OP_MASK_IMM10;
4351 }
4352 (*info->fprintf_func) (info->stream, "%d", delta << 1);
4353 break;
4354
4355 case '$':
4356 delta = ((l >> OP_SH_IMM10) & OP_MASK_IMM10);
4357 if (delta & 0x200) {
4358 delta |= ~OP_MASK_IMM10;
4359 }
4360 (*info->fprintf_func) (info->stream, "%d", delta << 2);
4361 break;
4362
4363 case '%':
4364 delta = ((l >> OP_SH_IMM10) & OP_MASK_IMM10);
4365 if (delta & 0x200) {
4366 delta |= ~OP_MASK_IMM10;
4367 }
4368 (*info->fprintf_func) (info->stream, "%d", delta << 3);
4369 break;
4370
4371 case 'C':
4372 case 'H':
4373 msbd = (l >> OP_SH_EXTMSBD) & OP_MASK_EXTMSBD;
4374 (*info->fprintf_func) (info->stream, "0x%x", msbd + 1);
4375 break;
4376
4377 case 'D':
4378 {
4379 const struct mips_cp0sel_name *n;
4380 unsigned int cp0reg, sel;
4381
4382 cp0reg = (l >> OP_SH_RD) & OP_MASK_RD;
4383 sel = (l >> OP_SH_SEL) & OP_MASK_SEL;
4384
4385
4386
4387
4388
4389
4390 n = lookup_mips_cp0sel_name(mips_cp0sel_names,
4391 mips_cp0sel_names_len, cp0reg, sel);
4392 if (n != NULL)
4393 (*info->fprintf_func) (info->stream, "%s", n->name);
4394 else
4395 (*info->fprintf_func) (info->stream, "$%d,%d", cp0reg, sel);
4396 break;
4397 }
4398
4399 case 'E':
4400 lsb = ((l >> OP_SH_SHAMT) & OP_MASK_SHAMT) + 32;
4401 (*info->fprintf_func) (info->stream, "0x%x", lsb);
4402 break;
4403
4404 case 'F':
4405 msb = ((l >> OP_SH_INSMSB) & OP_MASK_INSMSB) + 32;
4406 (*info->fprintf_func) (info->stream, "0x%x", msb - lsb + 1);
4407 break;
4408
4409 case 'G':
4410 msbd = ((l >> OP_SH_EXTMSBD) & OP_MASK_EXTMSBD) + 32;
4411 (*info->fprintf_func) (info->stream, "0x%x", msbd + 1);
4412 break;
4413
4414 case 'o':
4415 switch (*(d+1)) {
4416 case '1':
4417 d++;
4418 delta = l & ((1 << 18) - 1);
4419 if (delta & 0x20000) {
4420 delta |= ~0x1ffff;
4421 }
4422 break;
4423 case '2':
4424 d++;
4425 delta = l & ((1 << 19) - 1);
4426 if (delta & 0x40000) {
4427 delta |= ~0x3ffff;
4428 }
4429 break;
4430 default:
4431 delta = (l >> OP_SH_DELTA_R6) & OP_MASK_DELTA_R6;
4432 if (delta & 0x8000) {
4433 delta |= ~0xffff;
4434 }
4435 }
4436
4437 (*info->fprintf_func) (info->stream, "%d", delta);
4438 break;
4439
4440 case 'p':
4441
4442 delta = (l >> OP_SH_DELTA) & OP_MASK_TARGET;
4443 if (delta & 0x2000000) {
4444 delta |= ~0x3FFFFFF;
4445 }
4446 info->target = (delta << 2) + pc + INSNLEN;
4447 (*info->print_address_func) (info->target, info);
4448 break;
4449
4450 case 't':
4451 (*info->fprintf_func) (info->stream, "%s",
4452 mips_cp0_names[(l >> OP_SH_RT) &
4453 OP_MASK_RT]);
4454 break;
4455
4456 case 'T':
4457 {
4458 const struct mips_cp0sel_name *n;
4459 unsigned int cp0reg, sel;
4460
4461 cp0reg = (l >> OP_SH_RT) & OP_MASK_RT;
4462 sel = (l >> OP_SH_SEL) & OP_MASK_SEL;
4463
4464
4465
4466
4467
4468
4469 n = lookup_mips_cp0sel_name(mips_cp0sel_names,
4470 mips_cp0sel_names_len, cp0reg, sel);
4471 if (n != NULL)
4472 (*info->fprintf_func) (info->stream, "%s", n->name);
4473 else
4474 (*info->fprintf_func) (info->stream, "$%d,%d", cp0reg, sel);
4475 break;
4476 }
4477
4478 case 'd':
4479 (*info->fprintf_func) (info->stream, "%s",
4480 mips_wr_names[(l >> OP_SH_FD) & OP_MASK_FD]);
4481 break;
4482
4483 case 'e':
4484 (*info->fprintf_func) (info->stream, "%s",
4485 mips_wr_names[(l >> OP_SH_FS) & OP_MASK_FS]);
4486 break;
4487
4488 case 'f':
4489 (*info->fprintf_func) (info->stream, "%s",
4490 mips_wr_names[(l >> OP_SH_FT) & OP_MASK_FT]);
4491 break;
4492
4493 case 'g':
4494 (*info->fprintf_func) (info->stream, "%s",
4495 mips_msa_control_names_mips3264r2[(l >> OP_SH_MSACR11)
4496 & OP_MASK_MSACR11]);
4497 break;
4498
4499 case 'h':
4500 (*info->fprintf_func) (info->stream, "%s",
4501 mips_msa_control_names_mips3264r2[(l >> OP_SH_MSACR6)
4502 & OP_MASK_MSACR6]);
4503 break;
4504
4505 case 'i':
4506 (*info->fprintf_func) (info->stream, "%s",
4507 mips_gpr_names[(l >> OP_SH_GPR) & OP_MASK_GPR]);
4508 break;
4509
4510 default:
4511
4512 (*info->fprintf_func) (info->stream,
4513 _("# internal error, undefined extension sequence (+%c)"),
4514 *d);
4515 return;
4516 }
4517 break;
4518
4519 case '2':
4520 (*info->fprintf_func) (info->stream, "0x%lx",
4521 (l >> OP_SH_BP) & OP_MASK_BP);
4522 break;
4523
4524 case '3':
4525 (*info->fprintf_func) (info->stream, "0x%lx",
4526 (l >> OP_SH_SA3) & OP_MASK_SA3);
4527 break;
4528
4529 case '4':
4530 (*info->fprintf_func) (info->stream, "0x%lx",
4531 (l >> OP_SH_SA4) & OP_MASK_SA4);
4532 break;
4533
4534 case '5':
4535 (*info->fprintf_func) (info->stream, "0x%lx",
4536 (l >> OP_SH_IMM8) & OP_MASK_IMM8);
4537 break;
4538
4539 case '6':
4540 (*info->fprintf_func) (info->stream, "0x%lx",
4541 (l >> OP_SH_RS) & OP_MASK_RS);
4542 break;
4543
4544 case '7':
4545 (*info->fprintf_func) (info->stream, "$ac%ld",
4546 (l >> OP_SH_DSPACC) & OP_MASK_DSPACC);
4547 break;
4548
4549 case '8':
4550 (*info->fprintf_func) (info->stream, "0x%lx",
4551 (l >> OP_SH_WRDSP) & OP_MASK_WRDSP);
4552 break;
4553
4554 case '9':
4555 (*info->fprintf_func) (info->stream, "$ac%ld",
4556 (l >> OP_SH_DSPACC_S) & OP_MASK_DSPACC_S);
4557 break;
4558
4559 case '0':
4560 delta = ((l >> OP_SH_DSPSFT) & OP_MASK_DSPSFT);
4561 if (delta & 0x20)
4562 delta |= ~OP_MASK_DSPSFT;
4563 (*info->fprintf_func) (info->stream, "%d", delta);
4564 break;
4565
4566 case ':':
4567 delta = ((l >> OP_SH_DSPSFT_7) & OP_MASK_DSPSFT_7);
4568 if (delta & 0x40)
4569 delta |= ~OP_MASK_DSPSFT_7;
4570 (*info->fprintf_func) (info->stream, "%d", delta);
4571 break;
4572
4573 case '\'':
4574 (*info->fprintf_func) (info->stream, "0x%lx",
4575 (l >> OP_SH_RDDSP) & OP_MASK_RDDSP);
4576 break;
4577
4578 case '@':
4579 delta = ((l >> OP_SH_IMM10) & OP_MASK_IMM10);
4580 if (delta & 0x200)
4581 delta |= ~OP_MASK_IMM10;
4582 (*info->fprintf_func) (info->stream, "%d", delta);
4583 break;
4584
4585 case '!':
4586 (*info->fprintf_func) (info->stream, "%ld",
4587 (l >> OP_SH_MT_U) & OP_MASK_MT_U);
4588 break;
4589
4590 case '$':
4591 (*info->fprintf_func) (info->stream, "%ld",
4592 (l >> OP_SH_MT_H) & OP_MASK_MT_H);
4593 break;
4594
4595 case '*':
4596 (*info->fprintf_func) (info->stream, "$ac%ld",
4597 (l >> OP_SH_MTACC_T) & OP_MASK_MTACC_T);
4598 break;
4599
4600 case '&':
4601 (*info->fprintf_func) (info->stream, "$ac%ld",
4602 (l >> OP_SH_MTACC_D) & OP_MASK_MTACC_D);
4603 break;
4604
4605 case 'g':
4606
4607 (*info->fprintf_func) (info->stream, "$%ld",
4608 (l >> OP_SH_RD) & OP_MASK_RD);
4609 break;
4610
4611 case 's':
4612 case 'b':
4613 case 'r':
4614 case 'v':
4615 (*info->fprintf_func) (info->stream, "%s",
4616 mips_gpr_names[(l >> OP_SH_RS) & OP_MASK_RS]);
4617 break;
4618
4619 case 't':
4620 case 'w':
4621 (*info->fprintf_func) (info->stream, "%s",
4622 mips_gpr_names[(l >> OP_SH_RT) & OP_MASK_RT]);
4623 break;
4624
4625 case 'i':
4626 case 'u':
4627 (*info->fprintf_func) (info->stream, "0x%lx",
4628 (l >> OP_SH_IMMEDIATE) & OP_MASK_IMMEDIATE);
4629 break;
4630
4631 case 'j':
4632 case 'o':
4633 delta = (l >> OP_SH_DELTA) & OP_MASK_DELTA;
4634
4635 if (delta & 0x8000)
4636 delta |= ~0xffff;
4637 (*info->fprintf_func) (info->stream, "%d",
4638 delta);
4639 break;
4640
4641 case 'h':
4642 (*info->fprintf_func) (info->stream, "0x%x",
4643 (unsigned int) ((l >> OP_SH_PREFX)
4644 & OP_MASK_PREFX));
4645 break;
4646
4647 case 'k':
4648 (*info->fprintf_func) (info->stream, "0x%x",
4649 (unsigned int) ((l >> OP_SH_CACHE)
4650 & OP_MASK_CACHE));
4651 break;
4652
4653 case 'a':
4654 info->target = (((pc + 4) & ~(bfd_vma) 0x0fffffff)
4655 | (((l >> OP_SH_TARGET) & OP_MASK_TARGET) << 2));
4656
4657 if (info->flavour == bfd_target_unknown_flavour
4658 && strcmp (opp->name, "jalx") == 0)
4659 info->target |= 1;
4660 (*info->print_address_func) (info->target, info);
4661 break;
4662
4663 case 'p':
4664
4665 delta = (l >> OP_SH_DELTA) & OP_MASK_DELTA;
4666 if (delta & 0x8000)
4667 delta |= ~0xffff;
4668 info->target = (delta << 2) + pc + INSNLEN;
4669 (*info->print_address_func) (info->target, info);
4670 break;
4671
4672 case 'd':
4673 (*info->fprintf_func) (info->stream, "%s",
4674 mips_gpr_names[(l >> OP_SH_RD) & OP_MASK_RD]);
4675 break;
4676
4677 case 'U':
4678 {
4679
4680 unsigned int reg = (l >> OP_SH_RD) & OP_MASK_RD;
4681 if (reg == ((l >> OP_SH_RT) & OP_MASK_RT))
4682 (*info->fprintf_func) (info->stream, "%s",
4683 mips_gpr_names[reg]);
4684 else
4685 {
4686
4687 if (reg == 0)
4688 (*info->fprintf_func) (info->stream, "%s",
4689 mips_gpr_names[(l >> OP_SH_RT) & OP_MASK_RT]);
4690 else if (((l >> OP_SH_RT) & OP_MASK_RT) == 0)
4691 (*info->fprintf_func) (info->stream, "%s",
4692 mips_gpr_names[reg]);
4693 else
4694 (*info->fprintf_func) (info->stream, "%s or %s",
4695 mips_gpr_names[reg],
4696 mips_gpr_names[(l >> OP_SH_RT) & OP_MASK_RT]);
4697 }
4698 }
4699 break;
4700
4701 case 'z':
4702 (*info->fprintf_func) (info->stream, "%s", mips_gpr_names[0]);
4703 break;
4704
4705 case '<':
4706 (*info->fprintf_func) (info->stream, "0x%lx",
4707 (l >> OP_SH_SHAMT) & OP_MASK_SHAMT);
4708 break;
4709
4710 case 'c':
4711 (*info->fprintf_func) (info->stream, "0x%lx",
4712 (l >> OP_SH_CODE) & OP_MASK_CODE);
4713 break;
4714
4715 case 'q':
4716 (*info->fprintf_func) (info->stream, "0x%lx",
4717 (l >> OP_SH_CODE2) & OP_MASK_CODE2);
4718 break;
4719
4720 case 'C':
4721 (*info->fprintf_func) (info->stream, "0x%lx",
4722 (l >> OP_SH_COPZ) & OP_MASK_COPZ);
4723 break;
4724
4725 case 'B':
4726 (*info->fprintf_func) (info->stream, "0x%lx",
4727
4728 (l >> OP_SH_CODE20) & OP_MASK_CODE20);
4729 break;
4730
4731 case 'J':
4732 (*info->fprintf_func) (info->stream, "0x%lx",
4733 (l >> OP_SH_CODE19) & OP_MASK_CODE19);
4734 break;
4735
4736 case 'S':
4737 case 'V':
4738 (*info->fprintf_func) (info->stream, "%s",
4739 mips_fpr_names[(l >> OP_SH_FS) & OP_MASK_FS]);
4740 break;
4741
4742 case 'T':
4743 case 'W':
4744 (*info->fprintf_func) (info->stream, "%s",
4745 mips_fpr_names[(l >> OP_SH_FT) & OP_MASK_FT]);
4746 break;
4747
4748 case 'D':
4749 (*info->fprintf_func) (info->stream, "%s",
4750 mips_fpr_names[(l >> OP_SH_FD) & OP_MASK_FD]);
4751 break;
4752
4753 case 'R':
4754 (*info->fprintf_func) (info->stream, "%s",
4755 mips_fpr_names[(l >> OP_SH_FR) & OP_MASK_FR]);
4756 break;
4757
4758 case 'E':
4759
4760
4761
4762
4763
4764
4765
4766 (*info->fprintf_func) (info->stream, "$%ld",
4767 (l >> OP_SH_RT) & OP_MASK_RT);
4768 break;
4769
4770 case 'G':
4771
4772
4773
4774
4775 op = (l >> OP_SH_OP) & OP_MASK_OP;
4776 if (op == OP_OP_COP0)
4777 (*info->fprintf_func) (info->stream, "%s",
4778 mips_cp0_names[(l >> OP_SH_RD) & OP_MASK_RD]);
4779 else
4780 (*info->fprintf_func) (info->stream, "$%ld",
4781 (l >> OP_SH_RD) & OP_MASK_RD);
4782 break;
4783
4784 case 'K':
4785 (*info->fprintf_func) (info->stream, "%s",
4786 mips_hwr_names[(l >> OP_SH_RD) & OP_MASK_RD]);
4787 break;
4788
4789 case 'N':
4790 (*info->fprintf_func) (info->stream,
4791 ((opp->pinfo & (FP_D | FP_S)) != 0
4792 ? "$fcc%ld" : "$cc%ld"),
4793 (l >> OP_SH_BCC) & OP_MASK_BCC);
4794 break;
4795
4796 case 'M':
4797 (*info->fprintf_func) (info->stream, "$fcc%ld",
4798 (l >> OP_SH_CCC) & OP_MASK_CCC);
4799 break;
4800
4801 case 'P':
4802 (*info->fprintf_func) (info->stream, "%ld",
4803 (l >> OP_SH_PERFREG) & OP_MASK_PERFREG);
4804 break;
4805
4806 case 'e':
4807 (*info->fprintf_func) (info->stream, "%ld",
4808 (l >> OP_SH_VECBYTE) & OP_MASK_VECBYTE);
4809 break;
4810
4811 case '%':
4812 (*info->fprintf_func) (info->stream, "%ld",
4813 (l >> OP_SH_VECALIGN) & OP_MASK_VECALIGN);
4814 break;
4815
4816 case 'H':
4817 (*info->fprintf_func) (info->stream, "%ld",
4818 (l >> OP_SH_SEL) & OP_MASK_SEL);
4819 break;
4820
4821 case 'O':
4822 (*info->fprintf_func) (info->stream, "%ld",
4823 (l >> OP_SH_ALN) & OP_MASK_ALN);
4824 break;
4825
4826 case 'Q':
4827 {
4828 unsigned int vsel = (l >> OP_SH_VSEL) & OP_MASK_VSEL;
4829
4830 if ((vsel & 0x10) == 0)
4831 {
4832 int fmt;
4833
4834 vsel &= 0x0f;
4835 for (fmt = 0; fmt < 3; fmt++, vsel >>= 1)
4836 if ((vsel & 1) == 0)
4837 break;
4838 (*info->fprintf_func) (info->stream, "$v%ld[%d]",
4839 (l >> OP_SH_FT) & OP_MASK_FT,
4840 vsel >> 1);
4841 }
4842 else if ((vsel & 0x08) == 0)
4843 {
4844 (*info->fprintf_func) (info->stream, "$v%ld",
4845 (l >> OP_SH_FT) & OP_MASK_FT);
4846 }
4847 else
4848 {
4849 (*info->fprintf_func) (info->stream, "0x%lx",
4850 (l >> OP_SH_FT) & OP_MASK_FT);
4851 }
4852 }
4853 break;
4854
4855 case 'X':
4856 (*info->fprintf_func) (info->stream, "$v%ld",
4857 (l >> OP_SH_FD) & OP_MASK_FD);
4858 break;
4859
4860 case 'Y':
4861 (*info->fprintf_func) (info->stream, "$v%ld",
4862 (l >> OP_SH_FS) & OP_MASK_FS);
4863 break;
4864
4865 case 'Z':
4866 (*info->fprintf_func) (info->stream, "$v%ld",
4867 (l >> OP_SH_FT) & OP_MASK_FT);
4868 break;
4869
4870 default:
4871
4872 (*info->fprintf_func) (info->stream,
4873 _("# internal error, undefined modifier(%c)"),
4874 *d);
4875 return;
4876 }
4877 }
4878}
4879
4880
4881#if 0
4882static int
4883is_newabi (header)
4884 Elf_Internal_Ehdr *header;
4885{
4886
4887 if (header->e_ident[EI_CLASS] == ELFCLASS64)
4888 return 1;
4889
4890
4891 if ((header->e_flags & EF_MIPS_ABI2) != 0)
4892 return 1;
4893
4894 return 0;
4895}
4896#endif
4897
4898
4899
4900
4901
4902
4903static int
4904print_insn_mips (bfd_vma memaddr,
4905 unsigned long int word,
4906 struct disassemble_info *info)
4907{
4908 const struct mips_opcode *op;
4909 static bfd_boolean init = 0;
4910 static const struct mips_opcode *mips_hash[OP_MASK_OP + 1];
4911
4912
4913 if (! init)
4914 {
4915 unsigned int i;
4916
4917 for (i = 0; i <= OP_MASK_OP; i++)
4918 {
4919 for (op = mips_opcodes; op < &mips_opcodes[NUMOPCODES]; op++)
4920 {
4921 if (op->pinfo == INSN_MACRO
4922 || (no_aliases && (op->pinfo2 & INSN2_ALIAS)))
4923 continue;
4924 if (i == ((op->match >> OP_SH_OP) & OP_MASK_OP))
4925 {
4926 mips_hash[i] = op;
4927 break;
4928 }
4929 }
4930 }
4931
4932 init = 1;
4933 }
4934
4935 info->bytes_per_chunk = INSNLEN;
4936 info->display_endian = info->endian;
4937 info->insn_info_valid = 1;
4938 info->branch_delay_insns = 0;
4939 info->data_size = 0;
4940 info->insn_type = dis_nonbranch;
4941 info->target = 0;
4942 info->target2 = 0;
4943
4944 op = mips_hash[(word >> OP_SH_OP) & OP_MASK_OP];
4945 if (op != NULL)
4946 {
4947 for (; op < &mips_opcodes[NUMOPCODES]; op++)
4948 {
4949 if (op->pinfo != INSN_MACRO
4950 && !(no_aliases && (op->pinfo2 & INSN2_ALIAS))
4951 && (word & op->mask) == op->match)
4952 {
4953 const char *d;
4954
4955
4956 if (! OPCODE_IS_MEMBER (op, mips_isa, mips_processor)
4957 && strcmp (op->name, "jalx"))
4958 continue;
4959
4960 if (strcmp(op->name, "bovc") == 0
4961 || strcmp(op->name, "bnvc") == 0) {
4962 if (((word >> OP_SH_RS) & OP_MASK_RS) <
4963 ((word >> OP_SH_RT) & OP_MASK_RT)) {
4964 continue;
4965 }
4966 }
4967 if (strcmp(op->name, "bgezc") == 0
4968 || strcmp(op->name, "bltzc") == 0
4969 || strcmp(op->name, "bgezalc") == 0
4970 || strcmp(op->name, "bltzalc") == 0) {
4971 if (((word >> OP_SH_RS) & OP_MASK_RS) !=
4972 ((word >> OP_SH_RT) & OP_MASK_RT)) {
4973 continue;
4974 }
4975 }
4976
4977
4978 if ((op->pinfo & INSN_UNCOND_BRANCH_DELAY) != 0)
4979 {
4980 if ((info->insn_type & INSN_WRITE_GPR_31) != 0)
4981 info->insn_type = dis_jsr;
4982 else
4983 info->insn_type = dis_branch;
4984 info->branch_delay_insns = 1;
4985 }
4986 else if ((op->pinfo & (INSN_COND_BRANCH_DELAY
4987 | INSN_COND_BRANCH_LIKELY)) != 0)
4988 {
4989 if ((info->insn_type & INSN_WRITE_GPR_31) != 0)
4990 info->insn_type = dis_condjsr;
4991 else
4992 info->insn_type = dis_condbranch;
4993 info->branch_delay_insns = 1;
4994 }
4995 else if ((op->pinfo & (INSN_STORE_MEMORY
4996 | INSN_LOAD_MEMORY_DELAY)) != 0)
4997 info->insn_type = dis_dref;
4998
4999 (*info->fprintf_func) (info->stream, "%s", op->name);
5000
5001 d = op->args;
5002 if (d != NULL && *d != '\0')
5003 {
5004 (*info->fprintf_func) (info->stream, "\t");
5005 print_insn_args (d, word, memaddr, info, op);
5006 }
5007
5008 return INSNLEN;
5009 }
5010 }
5011 }
5012
5013
5014 info->insn_type = dis_noninsn;
5015 (*info->fprintf_func) (info->stream, "0x%lx", word);
5016 return INSNLEN;
5017}
5018
5019
5020
5021
5022
5023
5024
5025static int
5026_print_insn_mips (bfd_vma memaddr,
5027 struct disassemble_info *info,
5028 enum bfd_endian endianness)
5029{
5030 bfd_byte buffer[INSNLEN];
5031 int status;
5032
5033 set_default_mips_dis_options (info);
5034 parse_mips_dis_options (info->disassembler_options);
5035
5036#if 0
5037#if 1
5038
5039
5040 if (memaddr & 0x01)
5041 return print_insn_mips16 (memaddr, info);
5042#endif
5043
5044#if SYMTAB_AVAILABLE
5045 if (info->mach == bfd_mach_mips16
5046 || (info->flavour == bfd_target_elf_flavour
5047 && info->symbols != NULL
5048 && ((*(elf_symbol_type **) info->symbols)->internal_elf_sym.st_other
5049 == STO_MIPS16)))
5050 return print_insn_mips16 (memaddr, info);
5051#endif
5052#endif
5053
5054 status = (*info->read_memory_func) (memaddr, buffer, INSNLEN, info);
5055 if (status == 0)
5056 {
5057 unsigned long insn;
5058
5059 if (endianness == BFD_ENDIAN_BIG)
5060 insn = (unsigned long) bfd_getb32 (buffer);
5061 else
5062 insn = (unsigned long) bfd_getl32 (buffer);
5063
5064 return print_insn_mips (memaddr, insn, info);
5065 }
5066 else
5067 {
5068 (*info->memory_error_func) (status, memaddr, info);
5069 return -1;
5070 }
5071}
5072
5073int
5074print_insn_big_mips (bfd_vma memaddr, struct disassemble_info *info)
5075{
5076 return _print_insn_mips (memaddr, info, BFD_ENDIAN_BIG);
5077}
5078
5079int
5080print_insn_little_mips (bfd_vma memaddr, struct disassemble_info *info)
5081{
5082 return _print_insn_mips (memaddr, info, BFD_ENDIAN_LITTLE);
5083}
5084
5085
5086#if 0
5087static int
5088print_insn_mips16 (bfd_vma memaddr, struct disassemble_info *info)
5089{
5090 int status;
5091 bfd_byte buffer[2];
5092 int length;
5093 int insn;
5094 bfd_boolean use_extend;
5095 int extend = 0;
5096 const struct mips_opcode *op, *opend;
5097
5098 info->bytes_per_chunk = 2;
5099 info->display_endian = info->endian;
5100 info->insn_info_valid = 1;
5101 info->branch_delay_insns = 0;
5102 info->data_size = 0;
5103 info->insn_type = dis_nonbranch;
5104 info->target = 0;
5105 info->target2 = 0;
5106
5107 status = (*info->read_memory_func) (memaddr, buffer, 2, info);
5108 if (status != 0)
5109 {
5110 (*info->memory_error_func) (status, memaddr, info);
5111 return -1;
5112 }
5113
5114 length = 2;
5115
5116 if (info->endian == BFD_ENDIAN_BIG)
5117 insn = bfd_getb16 (buffer);
5118 else
5119 insn = bfd_getl16 (buffer);
5120
5121
5122 use_extend = FALSE;
5123 if ((insn & 0xf800) == 0xf000)
5124 {
5125 use_extend = TRUE;
5126 extend = insn & 0x7ff;
5127
5128 memaddr += 2;
5129
5130 status = (*info->read_memory_func) (memaddr, buffer, 2, info);
5131 if (status != 0)
5132 {
5133 (*info->fprintf_func) (info->stream, "extend 0x%x",
5134 (unsigned int) extend);
5135 (*info->memory_error_func) (status, memaddr, info);
5136 return -1;
5137 }
5138
5139 if (info->endian == BFD_ENDIAN_BIG)
5140 insn = bfd_getb16 (buffer);
5141 else
5142 insn = bfd_getl16 (buffer);
5143
5144
5145 if ((insn & 0xf800) == 0xf000)
5146 {
5147 (*info->fprintf_func) (info->stream, "extend 0x%x",
5148 (unsigned int) extend);
5149 info->insn_type = dis_noninsn;
5150 return length;
5151 }
5152
5153 length += 2;
5154 }
5155
5156
5157
5158 opend = mips16_opcodes + bfd_mips16_num_opcodes;
5159 for (op = mips16_opcodes; op < opend; op++)
5160 {
5161 if (op->pinfo != INSN_MACRO
5162 && !(no_aliases && (op->pinfo2 & INSN2_ALIAS))
5163 && (insn & op->mask) == op->match)
5164 {
5165 const char *s;
5166
5167 if (strchr (op->args, 'a') != NULL)
5168 {
5169 if (use_extend)
5170 {
5171 (*info->fprintf_func) (info->stream, "extend 0x%x",
5172 (unsigned int) extend);
5173 info->insn_type = dis_noninsn;
5174 return length - 2;
5175 }
5176
5177 use_extend = FALSE;
5178
5179 memaddr += 2;
5180
5181 status = (*info->read_memory_func) (memaddr, buffer, 2,
5182 info);
5183 if (status == 0)
5184 {
5185 use_extend = TRUE;
5186 if (info->endian == BFD_ENDIAN_BIG)
5187 extend = bfd_getb16 (buffer);
5188 else
5189 extend = bfd_getl16 (buffer);
5190 length += 2;
5191 }
5192 }
5193
5194 (*info->fprintf_func) (info->stream, "%s", op->name);
5195 if (op->args[0] != '\0')
5196 (*info->fprintf_func) (info->stream, "\t");
5197
5198 for (s = op->args; *s != '\0'; s++)
5199 {
5200 if (*s == ','
5201 && s[1] == 'w'
5202 && (((insn >> MIPS16OP_SH_RX) & MIPS16OP_MASK_RX)
5203 == ((insn >> MIPS16OP_SH_RY) & MIPS16OP_MASK_RY)))
5204 {
5205
5206 ++s;
5207 continue;
5208 }
5209 if (*s == ','
5210 && s[1] == 'v'
5211 && (((insn >> MIPS16OP_SH_RZ) & MIPS16OP_MASK_RZ)
5212 == ((insn >> MIPS16OP_SH_RX) & MIPS16OP_MASK_RX)))
5213 {
5214
5215 ++s;
5216 continue;
5217 }
5218 print_mips16_insn_arg (*s, op, insn, use_extend, extend, memaddr,
5219 info);
5220 }
5221
5222 if ((op->pinfo & INSN_UNCOND_BRANCH_DELAY) != 0)
5223 {
5224 info->branch_delay_insns = 1;
5225 if (info->insn_type != dis_jsr)
5226 info->insn_type = dis_branch;
5227 }
5228
5229 return length;
5230 }
5231 }
5232
5233 if (use_extend)
5234 (*info->fprintf_func) (info->stream, "0x%x", extend | 0xf000);
5235 (*info->fprintf_func) (info->stream, "0x%x", insn);
5236 info->insn_type = dis_noninsn;
5237
5238 return length;
5239}
5240
5241
5242
5243static void
5244print_mips16_insn_arg (char type,
5245 const struct mips_opcode *op,
5246 int l,
5247 bfd_boolean use_extend,
5248 int extend,
5249 bfd_vma memaddr,
5250 struct disassemble_info *info)
5251{
5252 switch (type)
5253 {
5254 case ',':
5255 case '(':
5256 case ')':
5257 (*info->fprintf_func) (info->stream, "%c", type);
5258 break;
5259
5260 case 'y':
5261 case 'w':
5262 (*info->fprintf_func) (info->stream, "%s",
5263 mips16_reg_names(((l >> MIPS16OP_SH_RY)
5264 & MIPS16OP_MASK_RY)));
5265 break;
5266
5267 case 'x':
5268 case 'v':
5269 (*info->fprintf_func) (info->stream, "%s",
5270 mips16_reg_names(((l >> MIPS16OP_SH_RX)
5271 & MIPS16OP_MASK_RX)));
5272 break;
5273
5274 case 'z':
5275 (*info->fprintf_func) (info->stream, "%s",
5276 mips16_reg_names(((l >> MIPS16OP_SH_RZ)
5277 & MIPS16OP_MASK_RZ)));
5278 break;
5279
5280 case 'Z':
5281 (*info->fprintf_func) (info->stream, "%s",
5282 mips16_reg_names(((l >> MIPS16OP_SH_MOVE32Z)
5283 & MIPS16OP_MASK_MOVE32Z)));
5284 break;
5285
5286 case '0':
5287 (*info->fprintf_func) (info->stream, "%s", mips_gpr_names[0]);
5288 break;
5289
5290 case 'S':
5291 (*info->fprintf_func) (info->stream, "%s", mips_gpr_names[29]);
5292 break;
5293
5294 case 'P':
5295 (*info->fprintf_func) (info->stream, "$pc");
5296 break;
5297
5298 case 'R':
5299 (*info->fprintf_func) (info->stream, "%s", mips_gpr_names[31]);
5300 break;
5301
5302 case 'X':
5303 (*info->fprintf_func) (info->stream, "%s",
5304 mips_gpr_names[((l >> MIPS16OP_SH_REGR32)
5305 & MIPS16OP_MASK_REGR32)]);
5306 break;
5307
5308 case 'Y':
5309 (*info->fprintf_func) (info->stream, "%s",
5310 mips_gpr_names[MIPS16OP_EXTRACT_REG32R (l)]);
5311 break;
5312
5313 case '<':
5314 case '>':
5315 case '[':
5316 case ']':
5317 case '4':
5318 case '5':
5319 case 'H':
5320 case 'W':
5321 case 'D':
5322 case 'j':
5323 case '6':
5324 case '8':
5325 case 'V':
5326 case 'C':
5327 case 'U':
5328 case 'k':
5329 case 'K':
5330 case 'p':
5331 case 'q':
5332 case 'A':
5333 case 'B':
5334 case 'E':
5335 {
5336 int immed, nbits, shift, signedp, extbits, pcrel, extu, branch;
5337
5338 shift = 0;
5339 signedp = 0;
5340 extbits = 16;
5341 pcrel = 0;
5342 extu = 0;
5343 branch = 0;
5344 switch (type)
5345 {
5346 case '<':
5347 nbits = 3;
5348 immed = (l >> MIPS16OP_SH_RZ) & MIPS16OP_MASK_RZ;
5349 extbits = 5;
5350 extu = 1;
5351 break;
5352 case '>':
5353 nbits = 3;
5354 immed = (l >> MIPS16OP_SH_RX) & MIPS16OP_MASK_RX;
5355 extbits = 5;
5356 extu = 1;
5357 break;
5358 case '[':
5359 nbits = 3;
5360 immed = (l >> MIPS16OP_SH_RZ) & MIPS16OP_MASK_RZ;
5361 extbits = 6;
5362 extu = 1;
5363 break;
5364 case ']':
5365 nbits = 3;
5366 immed = (l >> MIPS16OP_SH_RX) & MIPS16OP_MASK_RX;
5367 extbits = 6;
5368 extu = 1;
5369 break;
5370 case '4':
5371 nbits = 4;
5372 immed = (l >> MIPS16OP_SH_IMM4) & MIPS16OP_MASK_IMM4;
5373 signedp = 1;
5374 extbits = 15;
5375 break;
5376 case '5':
5377 nbits = 5;
5378 immed = (l >> MIPS16OP_SH_IMM5) & MIPS16OP_MASK_IMM5;
5379 info->insn_type = dis_dref;
5380 info->data_size = 1;
5381 break;
5382 case 'H':
5383 nbits = 5;
5384 shift = 1;
5385 immed = (l >> MIPS16OP_SH_IMM5) & MIPS16OP_MASK_IMM5;
5386 info->insn_type = dis_dref;
5387 info->data_size = 2;
5388 break;
5389 case 'W':
5390 nbits = 5;
5391 shift = 2;
5392 immed = (l >> MIPS16OP_SH_IMM5) & MIPS16OP_MASK_IMM5;
5393 if ((op->pinfo & MIPS16_INSN_READ_PC) == 0
5394 && (op->pinfo & MIPS16_INSN_READ_SP) == 0)
5395 {
5396 info->insn_type = dis_dref;
5397 info->data_size = 4;
5398 }
5399 break;
5400 case 'D':
5401 nbits = 5;
5402 shift = 3;
5403 immed = (l >> MIPS16OP_SH_IMM5) & MIPS16OP_MASK_IMM5;
5404 info->insn_type = dis_dref;
5405 info->data_size = 8;
5406 break;
5407 case 'j':
5408 nbits = 5;
5409 immed = (l >> MIPS16OP_SH_IMM5) & MIPS16OP_MASK_IMM5;
5410 signedp = 1;
5411 break;
5412 case '6':
5413 nbits = 6;
5414 immed = (l >> MIPS16OP_SH_IMM6) & MIPS16OP_MASK_IMM6;
5415 break;
5416 case '8':
5417 nbits = 8;
5418 immed = (l >> MIPS16OP_SH_IMM8) & MIPS16OP_MASK_IMM8;
5419 break;
5420 case 'V':
5421 nbits = 8;
5422 shift = 2;
5423 immed = (l >> MIPS16OP_SH_IMM8) & MIPS16OP_MASK_IMM8;
5424
5425
5426 info->insn_type = dis_dref;
5427 info->data_size = 4;
5428 break;
5429 case 'C':
5430 nbits = 8;
5431 shift = 3;
5432 immed = (l >> MIPS16OP_SH_IMM8) & MIPS16OP_MASK_IMM8;
5433 info->insn_type = dis_dref;
5434 info->data_size = 8;
5435 break;
5436 case 'U':
5437 nbits = 8;
5438 immed = (l >> MIPS16OP_SH_IMM8) & MIPS16OP_MASK_IMM8;
5439 extu = 1;
5440 break;
5441 case 'k':
5442 nbits = 8;
5443 immed = (l >> MIPS16OP_SH_IMM8) & MIPS16OP_MASK_IMM8;
5444 signedp = 1;
5445 break;
5446 case 'K':
5447 nbits = 8;
5448 shift = 3;
5449 immed = (l >> MIPS16OP_SH_IMM8) & MIPS16OP_MASK_IMM8;
5450 signedp = 1;
5451 break;
5452 case 'p':
5453 nbits = 8;
5454 immed = (l >> MIPS16OP_SH_IMM8) & MIPS16OP_MASK_IMM8;
5455 signedp = 1;
5456 pcrel = 1;
5457 branch = 1;
5458 info->insn_type = dis_condbranch;
5459 break;
5460 case 'q':
5461 nbits = 11;
5462 immed = (l >> MIPS16OP_SH_IMM11) & MIPS16OP_MASK_IMM11;
5463 signedp = 1;
5464 pcrel = 1;
5465 branch = 1;
5466 info->insn_type = dis_branch;
5467 break;
5468 case 'A':
5469 nbits = 8;
5470 shift = 2;
5471 immed = (l >> MIPS16OP_SH_IMM8) & MIPS16OP_MASK_IMM8;
5472 pcrel = 1;
5473
5474 info->insn_type = dis_dref;
5475 info->data_size = 4;
5476 break;
5477 case 'B':
5478 nbits = 5;
5479 shift = 3;
5480 immed = (l >> MIPS16OP_SH_IMM5) & MIPS16OP_MASK_IMM5;
5481 pcrel = 1;
5482 info->insn_type = dis_dref;
5483 info->data_size = 8;
5484 break;
5485 case 'E':
5486 nbits = 5;
5487 shift = 2;
5488 immed = (l >> MIPS16OP_SH_IMM5) & MIPS16OP_MASK_IMM5;
5489 pcrel = 1;
5490 break;
5491 default:
5492 abort ();
5493 }
5494
5495 if (! use_extend)
5496 {
5497 if (signedp && immed >= (1 << (nbits - 1)))
5498 immed -= 1 << nbits;
5499 immed <<= shift;
5500 if ((type == '<' || type == '>' || type == '[' || type == ']')
5501 && immed == 0)
5502 immed = 8;
5503 }
5504 else
5505 {
5506 if (extbits == 16)
5507 immed |= ((extend & 0x1f) << 11) | (extend & 0x7e0);
5508 else if (extbits == 15)
5509 immed |= ((extend & 0xf) << 11) | (extend & 0x7f0);
5510 else
5511 immed = ((extend >> 6) & 0x1f) | (extend & 0x20);
5512 immed &= (1 << extbits) - 1;
5513 if (! extu && immed >= (1 << (extbits - 1)))
5514 immed -= 1 << extbits;
5515 }
5516
5517 if (! pcrel)
5518 (*info->fprintf_func) (info->stream, "%d", immed);
5519 else
5520 {
5521 bfd_vma baseaddr;
5522
5523 if (branch)
5524 {
5525 immed *= 2;
5526 baseaddr = memaddr + 2;
5527 }
5528 else if (use_extend)
5529 baseaddr = memaddr - 2;
5530 else
5531 {
5532 int status;
5533 bfd_byte buffer[2];
5534
5535 baseaddr = memaddr;
5536
5537
5538
5539
5540
5541
5542
5543
5544 status = (*info->read_memory_func) (memaddr - 4, buffer, 2,
5545 info);
5546 if (status == 0
5547 && (((info->endian == BFD_ENDIAN_BIG
5548 ? bfd_getb16 (buffer)
5549 : bfd_getl16 (buffer))
5550 & 0xf800) == 0x1800))
5551 baseaddr = memaddr - 4;
5552 else
5553 {
5554 status = (*info->read_memory_func) (memaddr - 2, buffer,
5555 2, info);
5556 if (status == 0
5557 && (((info->endian == BFD_ENDIAN_BIG
5558 ? bfd_getb16 (buffer)
5559 : bfd_getl16 (buffer))
5560 & 0xf81f) == 0xe800))
5561 baseaddr = memaddr - 2;
5562 }
5563 }
5564 info->target = (baseaddr & ~((1 << shift) - 1)) + immed;
5565 if (pcrel && branch
5566 && info->flavour == bfd_target_unknown_flavour)
5567
5568 info->target |= 1;
5569 (*info->print_address_func) (info->target, info);
5570 }
5571 }
5572 break;
5573
5574 case 'a':
5575 {
5576 int jalx = l & 0x400;
5577
5578 if (! use_extend)
5579 extend = 0;
5580 l = ((l & 0x1f) << 23) | ((l & 0x3e0) << 13) | (extend << 2);
5581 if (!jalx && info->flavour == bfd_target_unknown_flavour)
5582
5583 l |= 1;
5584 }
5585 info->target = ((memaddr + 4) & ~(bfd_vma) 0x0fffffff) | l;
5586 (*info->print_address_func) (info->target, info);
5587 info->insn_type = dis_jsr;
5588 info->branch_delay_insns = 1;
5589 break;
5590
5591 case 'l':
5592 case 'L':
5593 {
5594 int need_comma, amask, smask;
5595
5596 need_comma = 0;
5597
5598 l = (l >> MIPS16OP_SH_IMM6) & MIPS16OP_MASK_IMM6;
5599
5600 amask = (l >> 3) & 7;
5601
5602 if (amask > 0 && amask < 5)
5603 {
5604 (*info->fprintf_func) (info->stream, "%s", mips_gpr_names[4]);
5605 if (amask > 1)
5606 (*info->fprintf_func) (info->stream, "-%s",
5607 mips_gpr_names[amask + 3]);
5608 need_comma = 1;
5609 }
5610
5611 smask = (l >> 1) & 3;
5612 if (smask == 3)
5613 {
5614 (*info->fprintf_func) (info->stream, "%s??",
5615 need_comma ? "," : "");
5616 need_comma = 1;
5617 }
5618 else if (smask > 0)
5619 {
5620 (*info->fprintf_func) (info->stream, "%s%s",
5621 need_comma ? "," : "",
5622 mips_gpr_names[16]);
5623 if (smask > 1)
5624 (*info->fprintf_func) (info->stream, "-%s",
5625 mips_gpr_names[smask + 15]);
5626 need_comma = 1;
5627 }
5628
5629 if (l & 1)
5630 {
5631 (*info->fprintf_func) (info->stream, "%s%s",
5632 need_comma ? "," : "",
5633 mips_gpr_names[31]);
5634 need_comma = 1;
5635 }
5636
5637 if (amask == 5 || amask == 6)
5638 {
5639 (*info->fprintf_func) (info->stream, "%s$f0",
5640 need_comma ? "," : "");
5641 if (amask == 6)
5642 (*info->fprintf_func) (info->stream, "-$f1");
5643 }
5644 }
5645 break;
5646
5647 case 'm':
5648 case 'M':
5649
5650 {
5651 int need_comma = 0;
5652 int amask, args, statics;
5653 int nsreg, smask;
5654 int framesz;
5655 int i, j;
5656
5657 l = l & 0x7f;
5658 if (use_extend)
5659 l |= extend << 16;
5660
5661 amask = (l >> 16) & 0xf;
5662 if (amask == MIPS16_ALL_ARGS)
5663 {
5664 args = 4;
5665 statics = 0;
5666 }
5667 else if (amask == MIPS16_ALL_STATICS)
5668 {
5669 args = 0;
5670 statics = 4;
5671 }
5672 else
5673 {
5674 args = amask >> 2;
5675 statics = amask & 3;
5676 }
5677
5678 if (args > 0) {
5679 (*info->fprintf_func) (info->stream, "%s", mips_gpr_names[4]);
5680 if (args > 1)
5681 (*info->fprintf_func) (info->stream, "-%s",
5682 mips_gpr_names[4 + args - 1]);
5683 need_comma = 1;
5684 }
5685
5686 framesz = (((l >> 16) & 0xf0) | (l & 0x0f)) * 8;
5687 if (framesz == 0 && !use_extend)
5688 framesz = 128;
5689
5690 (*info->fprintf_func) (info->stream, "%s%d",
5691 need_comma ? "," : "",
5692 framesz);
5693
5694 if (l & 0x40)
5695 (*info->fprintf_func) (info->stream, ",%s", mips_gpr_names[31]);
5696
5697 nsreg = (l >> 24) & 0x7;
5698 smask = 0;
5699 if (l & 0x20)
5700 smask |= 1 << 0;
5701 if (l & 0x10)
5702 smask |= 1 << 1;
5703 if (nsreg > 0)
5704 smask |= ((1 << nsreg) - 1) << 2;
5705
5706
5707 for (i = 0; i < 9; i++)
5708 {
5709 if (smask & (1 << i))
5710 {
5711 (*info->fprintf_func) (info->stream, ",%s",
5712 mips_gpr_names[i == 8 ? 30 : (16 + i)]);
5713
5714 for (j = i; smask & (2 << j); j++)
5715 continue;
5716 if (j > i)
5717 (*info->fprintf_func) (info->stream, "-%s",
5718 mips_gpr_names[j == 8 ? 30 : (16 + j)]);
5719 i = j + 1;
5720 }
5721 }
5722
5723
5724 if (statics == 1)
5725 (*info->fprintf_func) (info->stream, ",%s", mips_gpr_names[7]);
5726 else if (statics > 0)
5727 (*info->fprintf_func) (info->stream, ",%s-%s",
5728 mips_gpr_names[7 - statics + 1],
5729 mips_gpr_names[7]);
5730 }
5731 break;
5732
5733 default:
5734
5735 (*info->fprintf_func)
5736 (info->stream,
5737 _("# internal disassembler error, unrecognised modifier (%c)"),
5738 type);
5739 abort ();
5740 }
5741}
5742
5743void
5744print_mips_disassembler_options (FILE *stream)
5745{
5746 unsigned int i;
5747
5748 fprintf (stream, _("\n\
5749The following MIPS specific disassembler options are supported for use\n\
5750with the -M switch (multiple options should be separated by commas):\n"));
5751
5752 fprintf (stream, _("\n\
5753 gpr-names=ABI Print GPR names according to specified ABI.\n\
5754 Default: based on binary being disassembled.\n"));
5755
5756 fprintf (stream, _("\n\
5757 fpr-names=ABI Print FPR names according to specified ABI.\n\
5758 Default: numeric.\n"));
5759
5760 fprintf (stream, _("\n\
5761 cp0-names=ARCH Print CP0 register names according to\n\
5762 specified architecture.\n\
5763 Default: based on binary being disassembled.\n"));
5764
5765 fprintf (stream, _("\n\
5766 hwr-names=ARCH Print HWR names according to specified\n\
5767 architecture.\n\
5768 Default: based on binary being disassembled.\n"));
5769
5770 fprintf (stream, _("\n\
5771 reg-names=ABI Print GPR and FPR names according to\n\
5772 specified ABI.\n"));
5773
5774 fprintf (stream, _("\n\
5775 reg-names=ARCH Print CP0 register and HWR names according to\n\
5776 specified architecture.\n"));
5777
5778 fprintf (stream, _("\n\
5779 For the options above, the following values are supported for \"ABI\":\n\
5780 "));
5781 for (i = 0; i < ARRAY_SIZE (mips_abi_choices); i++)
5782 fprintf (stream, " %s", mips_abi_choices[i].name);
5783 fprintf (stream, _("\n"));
5784
5785 fprintf (stream, _("\n\
5786 For the options above, The following values are supported for \"ARCH\":\n\
5787 "));
5788 for (i = 0; i < ARRAY_SIZE (mips_arch_choices); i++)
5789 if (*mips_arch_choices[i].name != '\0')
5790 fprintf (stream, " %s", mips_arch_choices[i].name);
5791 fprintf (stream, _("\n"));
5792
5793 fprintf (stream, _("\n"));
5794}
5795#endif
5796