Home | History | Annotate | Line # | Download | only in opcode
nds32.h revision 1.1.1.1.2.2
      1  1.1.1.1.2.2  pgoyette /* nds32.h -- Header file for nds32 opcode table
      2  1.1.1.1.2.2  pgoyette    Copyright (C) 2012-2015 Free Software Foundation, Inc.
      3  1.1.1.1.2.2  pgoyette    Contributed by Andes Technology Corporation.
      4  1.1.1.1.2.2  pgoyette 
      5  1.1.1.1.2.2  pgoyette    This program is free software; you can redistribute it and/or modify
      6  1.1.1.1.2.2  pgoyette    it under the terms of the GNU General Public License as published by
      7  1.1.1.1.2.2  pgoyette    the Free Software Foundation; either version 3, or (at your option)
      8  1.1.1.1.2.2  pgoyette    any later version.
      9  1.1.1.1.2.2  pgoyette 
     10  1.1.1.1.2.2  pgoyette    This program is distributed in the hope that it will be useful,
     11  1.1.1.1.2.2  pgoyette    but WITHOUT ANY WARRANTY; without even the implied warranty of
     12  1.1.1.1.2.2  pgoyette    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13  1.1.1.1.2.2  pgoyette    GNU General Public License for more details.
     14  1.1.1.1.2.2  pgoyette 
     15  1.1.1.1.2.2  pgoyette    You should have received a copy of the GNU General Public License
     16  1.1.1.1.2.2  pgoyette    along with this program; if not, write to the Free Software
     17  1.1.1.1.2.2  pgoyette    Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
     18  1.1.1.1.2.2  pgoyette    02110-1301, USA.  */
     19  1.1.1.1.2.2  pgoyette 
     20  1.1.1.1.2.2  pgoyette #ifndef OPCODE_NDS32_H
     21  1.1.1.1.2.2  pgoyette #define OPCODE_NDS32_H
     22  1.1.1.1.2.2  pgoyette 
     23  1.1.1.1.2.2  pgoyette /* Registers.  */
     24  1.1.1.1.2.2  pgoyette #define REG_R5		5
     25  1.1.1.1.2.2  pgoyette #define REG_R8		8
     26  1.1.1.1.2.2  pgoyette #define REG_R10		10
     27  1.1.1.1.2.2  pgoyette #define REG_R12		12
     28  1.1.1.1.2.2  pgoyette #define REG_R15		15
     29  1.1.1.1.2.2  pgoyette #define REG_R16		16
     30  1.1.1.1.2.2  pgoyette #define REG_R20		20
     31  1.1.1.1.2.2  pgoyette #define REG_TA		15
     32  1.1.1.1.2.2  pgoyette #define REG_TP          27
     33  1.1.1.1.2.2  pgoyette #define REG_FP		28
     34  1.1.1.1.2.2  pgoyette #define REG_GP		29
     35  1.1.1.1.2.2  pgoyette #define REG_LP		30
     36  1.1.1.1.2.2  pgoyette #define REG_SP		31
     37  1.1.1.1.2.2  pgoyette 
     38  1.1.1.1.2.2  pgoyette /* Macros for extracting fields or making an instruction.  */
     40  1.1.1.1.2.2  pgoyette static const int nds32_r45map[] =
     41  1.1.1.1.2.2  pgoyette {
     42  1.1.1.1.2.2  pgoyette   0, 1, 2,  3,  4,  5,  6,  7,
     43  1.1.1.1.2.2  pgoyette   8, 9, 10, 11, 16, 17, 18, 19
     44  1.1.1.1.2.2  pgoyette };
     45  1.1.1.1.2.2  pgoyette 
     46  1.1.1.1.2.2  pgoyette static const int nds32_r54map[] =
     47  1.1.1.1.2.2  pgoyette {
     48  1.1.1.1.2.2  pgoyette    0,  1,  2,  3,  4,  5,  6,  7,
     49  1.1.1.1.2.2  pgoyette    8,  9, 10, 11, -1, -1, -1, -1,
     50  1.1.1.1.2.2  pgoyette   12, 13, 14, 15, -1, -1, -1, -1,
     51  1.1.1.1.2.2  pgoyette   -1, -1, -1, -1, -1, -1, -1, -1
     52  1.1.1.1.2.2  pgoyette };
     53  1.1.1.1.2.2  pgoyette 
     54  1.1.1.1.2.2  pgoyette #define __BIT(n)		(1 << (n))
     55  1.1.1.1.2.2  pgoyette #define __MASK(n)		(__BIT (n) - 1)
     56  1.1.1.1.2.2  pgoyette #define __MF(v, off, bs)	(((v) & __MASK (bs)) << (off))
     57  1.1.1.1.2.2  pgoyette #define __GF(v, off, bs)	(((v) >> off) & __MASK (bs))
     58  1.1.1.1.2.2  pgoyette #define __SEXT(v, bs)		((((v) & ((1 << (bs)) - 1)) ^ (1 << ((bs) - 1))) - (1 << ((bs) - 1)))
     59  1.1.1.1.2.2  pgoyette 
     60  1.1.1.1.2.2  pgoyette /* Make nds32 instructions.  */
     61  1.1.1.1.2.2  pgoyette 
     62  1.1.1.1.2.2  pgoyette #define N32_TYPE4(op6, rt5, ra5, rb5, rd5, sub5)  \
     63  1.1.1.1.2.2  pgoyette 	(__MF (N32_OP6_##op6, 25, 6) | __MF (rt5, 20, 5) \
     64  1.1.1.1.2.2  pgoyette 	 | __MF (ra5, 15, 5) | __MF (rb5, 10, 5) \
     65  1.1.1.1.2.2  pgoyette 	 | __MF (rd5, 5, 5) | __MF (sub5, 0, 5))
     66  1.1.1.1.2.2  pgoyette #define N32_TYPE3(op6, rt5, ra5, rb5, sub10) \
     67  1.1.1.1.2.2  pgoyette 	(N32_TYPE4 (op6, rt5, ra5, rb5, 0, 0) \
     68  1.1.1.1.2.2  pgoyette 	 | __MF (sub10, 0, 10))
     69  1.1.1.1.2.2  pgoyette #define N32_TYPE2(op6, rt5, ra5, imm15)	\
     70  1.1.1.1.2.2  pgoyette 	(N32_TYPE3 (op6, rt5, ra5, 0, 0) | __MF (imm15, 0, 15))
     71  1.1.1.1.2.2  pgoyette #define N32_TYPE1(op6, rt5, imm20) \
     72  1.1.1.1.2.2  pgoyette 	(N32_TYPE2 (op6, rt5, 0, 0) | __MF (imm20, 0, 20))
     73  1.1.1.1.2.2  pgoyette #define N32_TYPE0(op6, imm25) \
     74  1.1.1.1.2.2  pgoyette 	(N32_TYPE1 (op6, 0, 0) | __MF (imm25, 0, 25))
     75  1.1.1.1.2.2  pgoyette #define N32_ALU1(sub, rt, ra, rb) \
     76  1.1.1.1.2.2  pgoyette 	N32_TYPE4 (ALU1, rt, ra, rb, 0, N32_ALU1_##sub)
     77  1.1.1.1.2.2  pgoyette #define N32_ALU1_SH(sub, rt, ra, rb, rd) \
     78  1.1.1.1.2.2  pgoyette 	N32_TYPE4 (ALU1, rt, ra, rb, rd, N32_ALU1_##sub)
     79  1.1.1.1.2.2  pgoyette #define N32_ALU2(sub, rt, ra, rb) \
     80  1.1.1.1.2.2  pgoyette 	N32_TYPE3 (ALU2, rt, ra, rb, N32_ALU2_##sub)
     81  1.1.1.1.2.2  pgoyette #define N32_BR1(sub, rt, ra, imm14s) \
     82  1.1.1.1.2.2  pgoyette 	N32_TYPE2 (BR1, rt, ra, (N32_BR1_##sub << 14) | (imm14s & __MASK (14)))
     83  1.1.1.1.2.2  pgoyette #define N32_BR2(sub, rt, imm16s) \
     84  1.1.1.1.2.2  pgoyette 	N32_TYPE1 (BR2, rt, (N32_BR2_##sub << 16) | (imm16s & __MASK (16)))
     85  1.1.1.1.2.2  pgoyette #define N32_BR3(sub, rt, imm11s, imm8s) \
     86  1.1.1.1.2.2  pgoyette 	N32_TYPE1 (BR3, rt, (N32_BR3_##sub << 19) \
     87  1.1.1.1.2.2  pgoyette 			    | ((imm11s & __MASK (11)) << 8) \
     88  1.1.1.1.2.2  pgoyette 			    | (imm8s & __MASK (8)))
     89  1.1.1.1.2.2  pgoyette #define N32_JI(sub, imm24s) \
     90  1.1.1.1.2.2  pgoyette 	N32_TYPE0 (JI, (N32_JI_##sub << 24) | (imm24s & __MASK (24)))
     91  1.1.1.1.2.2  pgoyette #define N32_JREG(sub, rt, rb, dtit, hint) \
     92  1.1.1.1.2.2  pgoyette 	N32_TYPE4(JREG, rt, 0, rb, (dtit << 3) | (hint & 7), N32_JREG_##sub)
     93  1.1.1.1.2.2  pgoyette #define N32_MEM(sub, rt, ra, rb, sv) \
     94  1.1.1.1.2.2  pgoyette 	N32_TYPE3 (MEM, rt, ra, rb, (sv << 8) | N32_MEM_##sub)
     95  1.1.1.1.2.2  pgoyette 
     96  1.1.1.1.2.2  pgoyette #define N16_TYPE55(op5, rt5, ra5) \
     97  1.1.1.1.2.2  pgoyette 	(0x8000 | __MF (N16_T55_##op5, 10, 5) | __MF (rt5, 5, 5) \
     98  1.1.1.1.2.2  pgoyette 	 | __MF (ra5, 0, 5))
     99  1.1.1.1.2.2  pgoyette #define N16_TYPE45(op6, rt4, ra5) \
    100  1.1.1.1.2.2  pgoyette 	(0x8000 | __MF (N16_T45_##op6, 9, 6) | __MF (rt4, 5, 4) \
    101  1.1.1.1.2.2  pgoyette 	 | __MF (ra5, 0, 5))
    102  1.1.1.1.2.2  pgoyette #define N16_TYPE333(op6, rt3, ra3, rb3)	\
    103  1.1.1.1.2.2  pgoyette 	(0x8000 | __MF (N16_T333_##op6, 9, 6) | __MF (rt3, 6, 3) \
    104  1.1.1.1.2.2  pgoyette 	 | __MF (ra3, 3, 3) | __MF (rb3, 0, 3))
    105  1.1.1.1.2.2  pgoyette #define N16_TYPE36(op6, rt3, imm6) \
    106  1.1.1.1.2.2  pgoyette 	(0x8000 | __MF (N16_T36_##op6, 9, 6) | __MF (rt3, 6, 3) \
    107  1.1.1.1.2.2  pgoyette 	 | __MF (imm6, 0, 6))
    108  1.1.1.1.2.2  pgoyette #define N16_TYPE38(op4, rt3, imm8) \
    109  1.1.1.1.2.2  pgoyette 	(0x8000 | __MF (N16_T38_##op4, 11, 4) | __MF (rt3, 8, 3) \
    110  1.1.1.1.2.2  pgoyette 	 | __MF (imm8, 0, 8))
    111  1.1.1.1.2.2  pgoyette #define N16_TYPE37(op4, rt3, ls, imm7) \
    112  1.1.1.1.2.2  pgoyette 	(0x8000 | __MF (N16_T37_##op4, 11, 4) | __MF (rt3, 8, 3) \
    113  1.1.1.1.2.2  pgoyette 	 | __MF (imm7, 0, 7) | __MF (ls, 7, 1))
    114  1.1.1.1.2.2  pgoyette #define N16_TYPE5(op10, imm5) \
    115  1.1.1.1.2.2  pgoyette 	(0x8000 | __MF (N16_T5_##op10, 5, 10) | __MF (imm5, 0, 5))
    116  1.1.1.1.2.2  pgoyette #define N16_TYPE8(op7, imm8) \
    117  1.1.1.1.2.2  pgoyette 	(0x8000 | __MF (N16_T8_##op7, 8, 7) | __MF (imm8, 0, 8))
    118  1.1.1.1.2.2  pgoyette #define N16_TYPE9(op6, imm9) \
    119  1.1.1.1.2.2  pgoyette 	(0x8000 | __MF (N16_T9_##op6, 9, 6) | __MF (imm9, 0, 9))
    120  1.1.1.1.2.2  pgoyette #define N16_TYPE10(op5, imm10) \
    121  1.1.1.1.2.2  pgoyette 	(0x8000 | __MF (N16_T10_##op5, 10, 5) | __MF (imm10, 0, 10))
    122  1.1.1.1.2.2  pgoyette #define N16_TYPE25(op8, re, imm5) \
    123  1.1.1.1.2.2  pgoyette 	(0x8000 | __MF (N16_T25_##op8, 7, 8) | __MF (re, 5, 2) \
    124  1.1.1.1.2.2  pgoyette 	 | __MF (imm5, 0, 5))
    125  1.1.1.1.2.2  pgoyette 
    126  1.1.1.1.2.2  pgoyette #define N16_MISC33(sub, rt, ra) \
    127  1.1.1.1.2.2  pgoyette 	N16_TYPE333 (MISC33, rt, ra, N16_MISC33_##sub)
    128  1.1.1.1.2.2  pgoyette #define N16_BFMI333(sub, rt, ra) \
    129  1.1.1.1.2.2  pgoyette 	N16_TYPE333 (BFMI333, rt, ra, N16_BFMI333_##sub)
    130  1.1.1.1.2.2  pgoyette 
    131  1.1.1.1.2.2  pgoyette /* Get instruction fields.
    132  1.1.1.1.2.2  pgoyette 
    133  1.1.1.1.2.2  pgoyette    Macros used for handling 32-bit and 16-bit instructions are
    134  1.1.1.1.2.2  pgoyette    prefixed with N32_ and N16_ respectively.  */
    135  1.1.1.1.2.2  pgoyette 
    136  1.1.1.1.2.2  pgoyette #define N32_OP6(insn)		(((insn) >> 25) & 0x3f)
    137  1.1.1.1.2.2  pgoyette #define N32_RT5(insn)		(((insn) >> 20) & 0x1f)
    138  1.1.1.1.2.2  pgoyette #define N32_RT53(insn)		(N32_RT5 (insn) & 0x7)
    139  1.1.1.1.2.2  pgoyette #define N32_RT54(insn)		nds32_r54map[N32_RT5 (insn)]
    140  1.1.1.1.2.2  pgoyette #define N32_RA5(insn)		(((insn) >> 15) & 0x1f)
    141  1.1.1.1.2.2  pgoyette #define N32_RA53(insn)		(N32_RA5 (insn) & 0x7)
    142  1.1.1.1.2.2  pgoyette #define N32_RA54(insn)		nds32_r54map[N32_RA5 (insn)]
    143  1.1.1.1.2.2  pgoyette #define N32_RB5(insn)		(((insn) >> 10) & 0x1f)
    144  1.1.1.1.2.2  pgoyette #define N32_UB5(insn)		(((insn) >> 10) & 0x1f)
    145  1.1.1.1.2.2  pgoyette #define N32_RB53(insn)		(N32_RB5 (insn) & 0x7)
    146  1.1.1.1.2.2  pgoyette #define N32_RB54(insn)		nds32_r54map[N32_RB5 (insn)]
    147  1.1.1.1.2.2  pgoyette #define N32_RD5(insn)		(((insn) >> 5) & 0x1f)
    148  1.1.1.1.2.2  pgoyette #define N32_SH5(insn)		(((insn) >> 5) & 0x1f)
    149  1.1.1.1.2.2  pgoyette #define N32_SUB5(insn)		(((insn) >> 0) & 0x1f)
    150  1.1.1.1.2.2  pgoyette #define N32_SWID(insn)		(((insn) >> 5) & 0x3ff)
    151  1.1.1.1.2.2  pgoyette #define N32_IMMU(insn, bs)	((insn) & __MASK (bs))
    152  1.1.1.1.2.2  pgoyette #define N32_IMMS(insn, bs)	((signed) __SEXT (((insn) & __MASK (bs)), bs))
    153  1.1.1.1.2.2  pgoyette #define N32_IMM5U(insn)		N32_IMMU (insn, 5)
    154  1.1.1.1.2.2  pgoyette #define N32_IMM12S(insn)	N32_IMMS (insn, 12)
    155  1.1.1.1.2.2  pgoyette #define N32_IMM14S(insn)	N32_IMMS (insn, 14)
    156  1.1.1.1.2.2  pgoyette #define N32_IMM15U(insn)	N32_IMMU (insn, 15)
    157  1.1.1.1.2.2  pgoyette #define N32_IMM15S(insn)	N32_IMMS (insn, 15)
    158  1.1.1.1.2.2  pgoyette #define N32_IMM16S(insn)	N32_IMMS (insn, 16)
    159  1.1.1.1.2.2  pgoyette #define N32_IMM17S(insn)	N32_IMMS (insn, 17)
    160  1.1.1.1.2.2  pgoyette #define N32_IMM20S(insn)	N32_IMMS (insn, 20)
    161  1.1.1.1.2.2  pgoyette #define N32_IMM20U(insn)	N32_IMMU (insn, 20)
    162  1.1.1.1.2.2  pgoyette #define N32_IMM24S(insn)	N32_IMMS (insn, 24)
    163  1.1.1.1.2.2  pgoyette 
    164  1.1.1.1.2.2  pgoyette #define N16_RT5(insn)		(((insn) >> 5) & 0x1f)
    165  1.1.1.1.2.2  pgoyette #define N16_RT4(insn)		nds32_r45map[(((insn) >> 5) & 0xf)]
    166  1.1.1.1.2.2  pgoyette #define N16_RT3(insn)		(((insn) >> 6) & 0x7)
    167  1.1.1.1.2.2  pgoyette #define N16_RT38(insn)		(((insn) >> 8) & 0x7)
    168  1.1.1.1.2.2  pgoyette #define N16_RT8(insn)		(((insn) >> 8) & 0x7)
    169  1.1.1.1.2.2  pgoyette #define N16_RA5(insn)		((insn) & 0x1f)
    170  1.1.1.1.2.2  pgoyette #define N16_RA3(insn)		(((insn) >> 3) & 0x7)
    171  1.1.1.1.2.2  pgoyette #define N16_RB3(insn)		((insn) & 0x7)
    172  1.1.1.1.2.2  pgoyette #define N16_IMM3U(insn)		N32_IMMU (insn, 3)
    173  1.1.1.1.2.2  pgoyette #define N16_IMM5U(insn)		N32_IMMU (insn, 5)
    174  1.1.1.1.2.2  pgoyette #define N16_IMM5S(insn)		N32_IMMS (insn, 5)
    175  1.1.1.1.2.2  pgoyette #define N16_IMM6U(insn)		N32_IMMU (insn, 6)
    176  1.1.1.1.2.2  pgoyette #define N16_IMM7U(insn)		N32_IMMU (insn, 7)
    177  1.1.1.1.2.2  pgoyette #define N16_IMM8S(insn)		N32_IMMS (insn, 8)
    178  1.1.1.1.2.2  pgoyette #define N16_IMM9U(insn)		N32_IMMU (insn, 9)
    179  1.1.1.1.2.2  pgoyette #define N16_IMM10S(insn)	N32_IMMS (insn, 10)
    180  1.1.1.1.2.2  pgoyette 
    181  1.1.1.1.2.2  pgoyette #define IS_WITHIN_U(v, n)	(((v) >> n) == 0)
    182  1.1.1.1.2.2  pgoyette #define IS_WITHIN_S(v, n)	IS_WITHIN_U ((v) + (1 << ((n) - 1)), n)
    183  1.1.1.1.2.2  pgoyette 
    184  1.1.1.1.2.2  pgoyette /* Get fields for specific instruction.  */
    185  1.1.1.1.2.2  pgoyette #define N32_JREG_T(insn)	(((insn) >> 8) & 0x3)
    186  1.1.1.1.2.2  pgoyette #define N32_JREG_HINT(insn)	(((insn) >> 5) & 0x7)
    187  1.1.1.1.2.2  pgoyette #define N32_BR2_SUB(insn)	(((insn) >> 16) & 0xf)
    188  1.1.1.1.2.2  pgoyette #define N32_COP_SUB(insn)	((insn) & 0xf)
    189  1.1.1.1.2.2  pgoyette #define N32_COP_CP(insn)	(((insn) >> 4) & 0x3)
    190  1.1.1.1.2.2  pgoyette 
    191  1.1.1.1.2.2  pgoyette /* Check fields.  */
    192  1.1.1.1.2.2  pgoyette #define N32_IS_RT3(insn)	(N32_RT5 (insn) < 8)
    193  1.1.1.1.2.2  pgoyette #define N32_IS_RA3(insn)	(N32_RA5 (insn) < 8)
    194  1.1.1.1.2.2  pgoyette #define N32_IS_RB3(insn)	(N32_RB5 (insn) < 8)
    195  1.1.1.1.2.2  pgoyette #define N32_IS_RT4(insn)	(nds32_r54map[N32_RT5 (insn)] != -1)
    196  1.1.1.1.2.2  pgoyette #define N32_IS_RA4(insn)	(nds32_r54map[N32_RA5 (insn)] != -1)
    197  1.1.1.1.2.2  pgoyette #define N32_IS_RB4(insn)	(nds32_r54map[N32_RB5 (insn)] != -1)
    198  1.1.1.1.2.2  pgoyette 
    199  1.1.1.1.2.2  pgoyette 
    200  1.1.1.1.2.2  pgoyette /* These are opcodes for Nxx_TYPE macros.
    201  1.1.1.1.2.2  pgoyette    They are prefixed by corresponding TYPE to avoid misusing.  */
    202  1.1.1.1.2.2  pgoyette 
    203  1.1.1.1.2.2  pgoyette enum n32_opcodes
    204  1.1.1.1.2.2  pgoyette {
    205  1.1.1.1.2.2  pgoyette   /* Main opcodes (OP6).  */
    206  1.1.1.1.2.2  pgoyette 
    207  1.1.1.1.2.2  pgoyette   N32_OP6_LBI = 0x0,
    208  1.1.1.1.2.2  pgoyette   N32_OP6_LHI,
    209  1.1.1.1.2.2  pgoyette   N32_OP6_LWI,
    210  1.1.1.1.2.2  pgoyette   N32_OP6_LDI,
    211  1.1.1.1.2.2  pgoyette   N32_OP6_LBI_BI,
    212  1.1.1.1.2.2  pgoyette   N32_OP6_LHI_BI,
    213  1.1.1.1.2.2  pgoyette   N32_OP6_LWI_BI,
    214  1.1.1.1.2.2  pgoyette   N32_OP6_LDI_BI,
    215  1.1.1.1.2.2  pgoyette 
    216  1.1.1.1.2.2  pgoyette   N32_OP6_SBI = 0x8,
    217  1.1.1.1.2.2  pgoyette   N32_OP6_SHI,
    218  1.1.1.1.2.2  pgoyette   N32_OP6_SWI,
    219  1.1.1.1.2.2  pgoyette   N32_OP6_SDI,
    220  1.1.1.1.2.2  pgoyette   N32_OP6_SBI_BI,
    221  1.1.1.1.2.2  pgoyette   N32_OP6_SHI_BI,
    222  1.1.1.1.2.2  pgoyette   N32_OP6_SWI_BI,
    223  1.1.1.1.2.2  pgoyette   N32_OP6_SDI_BI,
    224  1.1.1.1.2.2  pgoyette 
    225  1.1.1.1.2.2  pgoyette   N32_OP6_LBSI = 0x10,
    226  1.1.1.1.2.2  pgoyette   N32_OP6_LHSI,
    227  1.1.1.1.2.2  pgoyette   N32_OP6_LWSI,
    228  1.1.1.1.2.2  pgoyette   N32_OP6_DPREFI,
    229  1.1.1.1.2.2  pgoyette   N32_OP6_LBSI_BI,
    230  1.1.1.1.2.2  pgoyette   N32_OP6_LHSI_BI,
    231  1.1.1.1.2.2  pgoyette   N32_OP6_LWSI_BI,
    232  1.1.1.1.2.2  pgoyette   N32_OP6_LBGP,
    233  1.1.1.1.2.2  pgoyette 
    234  1.1.1.1.2.2  pgoyette   N32_OP6_LWC = 0x18,
    235  1.1.1.1.2.2  pgoyette   N32_OP6_SWC,
    236  1.1.1.1.2.2  pgoyette   N32_OP6_LDC,
    237  1.1.1.1.2.2  pgoyette   N32_OP6_SDC,
    238  1.1.1.1.2.2  pgoyette   N32_OP6_MEM,
    239  1.1.1.1.2.2  pgoyette   N32_OP6_LSMW,
    240  1.1.1.1.2.2  pgoyette   N32_OP6_HWGP,
    241  1.1.1.1.2.2  pgoyette   N32_OP6_SBGP,
    242  1.1.1.1.2.2  pgoyette 
    243  1.1.1.1.2.2  pgoyette   N32_OP6_ALU1 = 0x20,
    244  1.1.1.1.2.2  pgoyette   N32_OP6_ALU2,
    245  1.1.1.1.2.2  pgoyette   N32_OP6_MOVI,
    246  1.1.1.1.2.2  pgoyette   N32_OP6_SETHI,
    247  1.1.1.1.2.2  pgoyette   N32_OP6_JI,
    248  1.1.1.1.2.2  pgoyette   N32_OP6_JREG,
    249  1.1.1.1.2.2  pgoyette   N32_OP6_BR1,
    250  1.1.1.1.2.2  pgoyette   N32_OP6_BR2,
    251  1.1.1.1.2.2  pgoyette 
    252  1.1.1.1.2.2  pgoyette   N32_OP6_ADDI = 0x28,
    253  1.1.1.1.2.2  pgoyette   N32_OP6_SUBRI,
    254  1.1.1.1.2.2  pgoyette   N32_OP6_ANDI,
    255  1.1.1.1.2.2  pgoyette   N32_OP6_XORI,
    256  1.1.1.1.2.2  pgoyette   N32_OP6_ORI,
    257  1.1.1.1.2.2  pgoyette   N32_OP6_BR3,
    258  1.1.1.1.2.2  pgoyette   N32_OP6_SLTI,
    259  1.1.1.1.2.2  pgoyette   N32_OP6_SLTSI,
    260  1.1.1.1.2.2  pgoyette 
    261  1.1.1.1.2.2  pgoyette   N32_OP6_AEXT = 0x30,
    262  1.1.1.1.2.2  pgoyette   N32_OP6_CEXT,
    263  1.1.1.1.2.2  pgoyette   N32_OP6_MISC,
    264  1.1.1.1.2.2  pgoyette   N32_OP6_BITCI,
    265  1.1.1.1.2.2  pgoyette   N32_OP6_0x34,
    266  1.1.1.1.2.2  pgoyette   N32_OP6_COP,
    267  1.1.1.1.2.2  pgoyette   N32_OP6_0x36,
    268  1.1.1.1.2.2  pgoyette   N32_OP6_0x37,
    269  1.1.1.1.2.2  pgoyette 
    270  1.1.1.1.2.2  pgoyette   N32_OP6_SIMD = 0x38,
    271  1.1.1.1.2.2  pgoyette 
    272  1.1.1.1.2.2  pgoyette   /* Sub-opcodes of specific opcode.  */
    273  1.1.1.1.2.2  pgoyette 
    274  1.1.1.1.2.2  pgoyette   /* bit-24 */
    275  1.1.1.1.2.2  pgoyette   N32_BR1_BEQ = 0,
    276  1.1.1.1.2.2  pgoyette   N32_BR1_BNE = 1,
    277  1.1.1.1.2.2  pgoyette 
    278  1.1.1.1.2.2  pgoyette   /* bit[16:19] */
    279  1.1.1.1.2.2  pgoyette   N32_BR2_IFCALL = 0,
    280  1.1.1.1.2.2  pgoyette   N32_BR2_BEQZ = 2,
    281  1.1.1.1.2.2  pgoyette   N32_BR2_BNEZ = 3,
    282  1.1.1.1.2.2  pgoyette   N32_BR2_BGEZ = 4,
    283  1.1.1.1.2.2  pgoyette   N32_BR2_BLTZ = 5,
    284  1.1.1.1.2.2  pgoyette   N32_BR2_BGTZ = 6,
    285  1.1.1.1.2.2  pgoyette   N32_BR2_BLEZ = 7,
    286  1.1.1.1.2.2  pgoyette   N32_BR2_BGEZAL = 0xc,
    287  1.1.1.1.2.2  pgoyette   N32_BR2_BLTZAL = 0xd,
    288  1.1.1.1.2.2  pgoyette 
    289  1.1.1.1.2.2  pgoyette   /* bit-19 */
    290  1.1.1.1.2.2  pgoyette   N32_BR3_BEQC = 0,
    291  1.1.1.1.2.2  pgoyette   N32_BR3_BNEC = 1,
    292  1.1.1.1.2.2  pgoyette 
    293  1.1.1.1.2.2  pgoyette   /* bit-24 */
    294  1.1.1.1.2.2  pgoyette   N32_JI_J = 0,
    295  1.1.1.1.2.2  pgoyette   N32_JI_JAL = 1,
    296  1.1.1.1.2.2  pgoyette 
    297  1.1.1.1.2.2  pgoyette   /* bit[0:4] */
    298  1.1.1.1.2.2  pgoyette   N32_JREG_JR = 0,
    299  1.1.1.1.2.2  pgoyette   N32_JREG_JRAL = 1,
    300  1.1.1.1.2.2  pgoyette   N32_JREG_JRNEZ = 2,
    301  1.1.1.1.2.2  pgoyette   N32_JREG_JRALNEZ = 3,
    302  1.1.1.1.2.2  pgoyette 
    303  1.1.1.1.2.2  pgoyette   /* bit[0:4] */
    304  1.1.1.1.2.2  pgoyette   N32_ALU1_ADD_SLLI = 0x0,
    305  1.1.1.1.2.2  pgoyette   N32_ALU1_SUB_SLLI,
    306  1.1.1.1.2.2  pgoyette   N32_ALU1_AND_SLLI,
    307  1.1.1.1.2.2  pgoyette   N32_ALU1_XOR_SLLI,
    308  1.1.1.1.2.2  pgoyette   N32_ALU1_OR_SLLI,
    309  1.1.1.1.2.2  pgoyette   N32_ALU1_ADD = 0x0,
    310  1.1.1.1.2.2  pgoyette   N32_ALU1_SUB,
    311  1.1.1.1.2.2  pgoyette   N32_ALU1_AND,
    312  1.1.1.1.2.2  pgoyette   N32_ALU1_XOR,
    313  1.1.1.1.2.2  pgoyette   N32_ALU1_OR,
    314  1.1.1.1.2.2  pgoyette   N32_ALU1_NOR,
    315  1.1.1.1.2.2  pgoyette   N32_ALU1_SLT,
    316  1.1.1.1.2.2  pgoyette   N32_ALU1_SLTS,
    317  1.1.1.1.2.2  pgoyette   N32_ALU1_SLLI = 0x8,
    318  1.1.1.1.2.2  pgoyette   N32_ALU1_SRLI,
    319  1.1.1.1.2.2  pgoyette   N32_ALU1_SRAI,
    320  1.1.1.1.2.2  pgoyette   N32_ALU1_ROTRI,
    321  1.1.1.1.2.2  pgoyette   N32_ALU1_SLL,
    322  1.1.1.1.2.2  pgoyette   N32_ALU1_SRL,
    323  1.1.1.1.2.2  pgoyette   N32_ALU1_SRA,
    324  1.1.1.1.2.2  pgoyette   N32_ALU1_ROTR,
    325  1.1.1.1.2.2  pgoyette   N32_ALU1_SEB = 0x10,
    326  1.1.1.1.2.2  pgoyette   N32_ALU1_SEH,
    327  1.1.1.1.2.2  pgoyette   N32_ALU1_BITC,
    328  1.1.1.1.2.2  pgoyette   N32_ALU1_ZEH,
    329  1.1.1.1.2.2  pgoyette   N32_ALU1_WSBH,
    330  1.1.1.1.2.2  pgoyette   N32_ALU1_OR_SRLI,
    331  1.1.1.1.2.2  pgoyette   N32_ALU1_DIVSR,
    332  1.1.1.1.2.2  pgoyette   N32_ALU1_DIVR,
    333  1.1.1.1.2.2  pgoyette   N32_ALU1_SVA = 0x18,
    334  1.1.1.1.2.2  pgoyette   N32_ALU1_SVS,
    335  1.1.1.1.2.2  pgoyette   N32_ALU1_CMOVZ,
    336  1.1.1.1.2.2  pgoyette   N32_ALU1_CMOVN,
    337  1.1.1.1.2.2  pgoyette   N32_ALU1_ADD_SRLI,
    338  1.1.1.1.2.2  pgoyette   N32_ALU1_SUB_SRLI,
    339  1.1.1.1.2.2  pgoyette   N32_ALU1_AND_SRLI,
    340  1.1.1.1.2.2  pgoyette   N32_ALU1_XOR_SRLI,
    341  1.1.1.1.2.2  pgoyette 
    342  1.1.1.1.2.2  pgoyette   /* bit[0:5], where bit[6:9] == 0 */
    343  1.1.1.1.2.2  pgoyette   N32_ALU2_MAX = 0,
    344  1.1.1.1.2.2  pgoyette   N32_ALU2_MIN,
    345  1.1.1.1.2.2  pgoyette   N32_ALU2_AVE,
    346  1.1.1.1.2.2  pgoyette   N32_ALU2_ABS,
    347  1.1.1.1.2.2  pgoyette   N32_ALU2_CLIPS,
    348  1.1.1.1.2.2  pgoyette   N32_ALU2_CLIP,
    349  1.1.1.1.2.2  pgoyette   N32_ALU2_CLO,
    350  1.1.1.1.2.2  pgoyette   N32_ALU2_CLZ,
    351  1.1.1.1.2.2  pgoyette   N32_ALU2_BSET = 0x8,
    352  1.1.1.1.2.2  pgoyette   N32_ALU2_BCLR,
    353  1.1.1.1.2.2  pgoyette   N32_ALU2_BTGL,
    354  1.1.1.1.2.2  pgoyette   N32_ALU2_BTST,
    355  1.1.1.1.2.2  pgoyette   N32_ALU2_BSE,
    356  1.1.1.1.2.2  pgoyette   N32_ALU2_BSP,
    357  1.1.1.1.2.2  pgoyette   N32_ALU2_FFB,
    358  1.1.1.1.2.2  pgoyette   N32_ALU2_FFMISM,
    359  1.1.1.1.2.2  pgoyette   N32_ALU2_ADD_SC = 0x10,
    360  1.1.1.1.2.2  pgoyette   N32_ALU2_SUB_SC,
    361  1.1.1.1.2.2  pgoyette   N32_ALU2_ADD_WC,
    362  1.1.1.1.2.2  pgoyette   N32_ALU2_SUB_WC,
    363  1.1.1.1.2.2  pgoyette   N32_ALU2_KMxy,
    364  1.1.1.1.2.2  pgoyette   N32_ALU2_0x15,
    365  1.1.1.1.2.2  pgoyette   N32_ALU2_0x16,
    366  1.1.1.1.2.2  pgoyette   N32_ALU2_FFZMISM,
    367  1.1.1.1.2.2  pgoyette   N32_ALU2_KADD = 0x18,
    368  1.1.1.1.2.2  pgoyette   N32_ALU2_KSUB,
    369  1.1.1.1.2.2  pgoyette   N32_ALU2_KSLRA,
    370  1.1.1.1.2.2  pgoyette   N32_ALU2_MFUSR = 0x20,
    371  1.1.1.1.2.2  pgoyette   N32_ALU2_MTUSR,
    372  1.1.1.1.2.2  pgoyette   N32_ALU2_0x22,
    373  1.1.1.1.2.2  pgoyette   N32_ALU2_0x23,
    374  1.1.1.1.2.2  pgoyette   N32_ALU2_MUL,
    375  1.1.1.1.2.2  pgoyette   N32_ALU2_0x25,
    376  1.1.1.1.2.2  pgoyette   N32_ALU2_0x26,
    377  1.1.1.1.2.2  pgoyette   N32_ALU2_MULTS64 = 0x28,
    378  1.1.1.1.2.2  pgoyette   N32_ALU2_MULT64,
    379  1.1.1.1.2.2  pgoyette   N32_ALU2_MADDS64,
    380  1.1.1.1.2.2  pgoyette   N32_ALU2_MADD64,
    381  1.1.1.1.2.2  pgoyette   N32_ALU2_MSUBS64,
    382  1.1.1.1.2.2  pgoyette   N32_ALU2_MSUB64,
    383  1.1.1.1.2.2  pgoyette   N32_ALU2_DIVS,
    384  1.1.1.1.2.2  pgoyette   N32_ALU2_DIV,
    385  1.1.1.1.2.2  pgoyette   N32_ALU2_0x30 = 0x30,
    386  1.1.1.1.2.2  pgoyette   N32_ALU2_MULT32,
    387  1.1.1.1.2.2  pgoyette   N32_ALU2_0x32,
    388  1.1.1.1.2.2  pgoyette   N32_ALU2_MADD32,
    389  1.1.1.1.2.2  pgoyette   N32_ALU2_0x34,
    390  1.1.1.1.2.2  pgoyette   N32_ALU2_MSUB32,
    391  1.1.1.1.2.2  pgoyette 
    392  1.1.1.1.2.2  pgoyette   /* bit[0:5], where bit[6:9] != 0  */
    393  1.1.1.1.2.2  pgoyette   N32_ALU2_FFBI = 0xe,
    394  1.1.1.1.2.2  pgoyette   N32_ALU2_FLMISM = 0xf,
    395  1.1.1.1.2.2  pgoyette   N32_ALU2_MULSR64 = 0x28,
    396  1.1.1.1.2.2  pgoyette   N32_ALU2_MULR64 = 0x29,
    397  1.1.1.1.2.2  pgoyette   N32_ALU2_MADDR32 = 0x33,
    398  1.1.1.1.2.2  pgoyette   N32_ALU2_MSUBR32 = 0x35,
    399  1.1.1.1.2.2  pgoyette 
    400  1.1.1.1.2.2  pgoyette   /* bit[0:5] */
    401  1.1.1.1.2.2  pgoyette   N32_MEM_LB = 0,
    402  1.1.1.1.2.2  pgoyette   N32_MEM_LH,
    403  1.1.1.1.2.2  pgoyette   N32_MEM_LW,
    404  1.1.1.1.2.2  pgoyette   N32_MEM_LD,
    405  1.1.1.1.2.2  pgoyette   N32_MEM_LB_BI,
    406  1.1.1.1.2.2  pgoyette   N32_MEM_LH_BI,
    407  1.1.1.1.2.2  pgoyette   N32_MEM_LW_BI,
    408  1.1.1.1.2.2  pgoyette   N32_MEM_LD_BI,
    409  1.1.1.1.2.2  pgoyette   N32_MEM_SB,
    410  1.1.1.1.2.2  pgoyette   N32_MEM_SH,
    411  1.1.1.1.2.2  pgoyette   N32_MEM_SW,
    412  1.1.1.1.2.2  pgoyette   N32_MEM_SD,
    413  1.1.1.1.2.2  pgoyette   N32_MEM_SB_BI,
    414  1.1.1.1.2.2  pgoyette   N32_MEM_SH_BI,
    415  1.1.1.1.2.2  pgoyette   N32_MEM_SW_BI,
    416  1.1.1.1.2.2  pgoyette   N32_MEM_SD_BI,
    417  1.1.1.1.2.2  pgoyette   N32_MEM_LBS,
    418  1.1.1.1.2.2  pgoyette   N32_MEM_LHS,
    419  1.1.1.1.2.2  pgoyette   N32_MEM_LWS, /* Not used.  */
    420  1.1.1.1.2.2  pgoyette   N32_MEM_DPREF,
    421  1.1.1.1.2.2  pgoyette   N32_MEM_LBS_BI,
    422  1.1.1.1.2.2  pgoyette   N32_MEM_LHS_BI,
    423  1.1.1.1.2.2  pgoyette   N32_MEM_LWS_BI, /* Not used.  */
    424  1.1.1.1.2.2  pgoyette   N32_MEM_0x17, /* Not used.  */
    425  1.1.1.1.2.2  pgoyette   N32_MEM_LLW,
    426  1.1.1.1.2.2  pgoyette   N32_MEM_SCW,
    427  1.1.1.1.2.2  pgoyette   N32_MEM_LBUP = 0x20,
    428  1.1.1.1.2.2  pgoyette   N32_MEM_LWUP = 0x22,
    429  1.1.1.1.2.2  pgoyette   N32_MEM_SBUP = 0x28,
    430  1.1.1.1.2.2  pgoyette   N32_MEM_SWUP = 0x2a,
    431  1.1.1.1.2.2  pgoyette 
    432  1.1.1.1.2.2  pgoyette   /* bit[0:1] */
    433  1.1.1.1.2.2  pgoyette   N32_LSMW_LSMW = 0,
    434  1.1.1.1.2.2  pgoyette   N32_LSMW_LSMWA,
    435  1.1.1.1.2.2  pgoyette   N32_LSMW_LSMWZB,
    436  1.1.1.1.2.2  pgoyette 
    437  1.1.1.1.2.2  pgoyette   /* bit[2:4] */
    438  1.1.1.1.2.2  pgoyette   N32_LSMW_BI = 0,
    439  1.1.1.1.2.2  pgoyette   N32_LSMW_BIM,
    440  1.1.1.1.2.2  pgoyette   N32_LSMW_BD,
    441  1.1.1.1.2.2  pgoyette   N32_LSMW_BDM,
    442  1.1.1.1.2.2  pgoyette   N32_LSMW_AI,
    443  1.1.1.1.2.2  pgoyette   N32_LSMW_AIM,
    444  1.1.1.1.2.2  pgoyette   N32_LSMW_AD,
    445  1.1.1.1.2.2  pgoyette   N32_LSMW_ADM,
    446  1.1.1.1.2.2  pgoyette 
    447  1.1.1.1.2.2  pgoyette   /* bit[0:4] */
    448  1.1.1.1.2.2  pgoyette   N32_MISC_STANDBY = 0,
    449  1.1.1.1.2.2  pgoyette   N32_MISC_CCTL,
    450  1.1.1.1.2.2  pgoyette   N32_MISC_MFSR,
    451  1.1.1.1.2.2  pgoyette   N32_MISC_MTSR,
    452  1.1.1.1.2.2  pgoyette   N32_MISC_IRET,
    453  1.1.1.1.2.2  pgoyette   N32_MISC_TRAP,
    454  1.1.1.1.2.2  pgoyette   N32_MISC_TEQZ,
    455  1.1.1.1.2.2  pgoyette   N32_MISC_TNEZ,
    456  1.1.1.1.2.2  pgoyette   N32_MISC_DSB = 0x8,
    457  1.1.1.1.2.2  pgoyette   N32_MISC_ISB,
    458  1.1.1.1.2.2  pgoyette   N32_MISC_BREAK,
    459  1.1.1.1.2.2  pgoyette   N32_MISC_SYSCALL,
    460  1.1.1.1.2.2  pgoyette   N32_MISC_MSYNC,
    461  1.1.1.1.2.2  pgoyette   N32_MISC_ISYNC,
    462  1.1.1.1.2.2  pgoyette   N32_MISC_TLBOP,
    463  1.1.1.1.2.2  pgoyette   N32_MISC_0xf,
    464  1.1.1.1.2.2  pgoyette 
    465  1.1.1.1.2.2  pgoyette   /* bit[0:4] */
    466  1.1.1.1.2.2  pgoyette   N32_SIMD_PBSAD = 0,
    467  1.1.1.1.2.2  pgoyette   N32_SIMD_PBSADA = 1,
    468  1.1.1.1.2.2  pgoyette 
    469  1.1.1.1.2.2  pgoyette   /* bit[0:3] */
    470  1.1.1.1.2.2  pgoyette   N32_COP_CPE1 = 0,
    471  1.1.1.1.2.2  pgoyette   N32_COP_MFCP,
    472  1.1.1.1.2.2  pgoyette   N32_COP_CPLW,
    473  1.1.1.1.2.2  pgoyette   N32_COP_CPLD,
    474  1.1.1.1.2.2  pgoyette   N32_COP_CPE2,
    475  1.1.1.1.2.2  pgoyette   N32_COP_CPE3 = 8,
    476  1.1.1.1.2.2  pgoyette   N32_COP_MTCP,
    477  1.1.1.1.2.2  pgoyette   N32_COP_CPSW,
    478  1.1.1.1.2.2  pgoyette   N32_COP_CPSD,
    479  1.1.1.1.2.2  pgoyette   N32_COP_CPE4,
    480  1.1.1.1.2.2  pgoyette 
    481  1.1.1.1.2.2  pgoyette   /* cop/0 b[3:0] */
    482  1.1.1.1.2.2  pgoyette   N32_FPU_FS1 = 0,
    483  1.1.1.1.2.2  pgoyette   N32_FPU_MFCP,
    484  1.1.1.1.2.2  pgoyette   N32_FPU_FLS,
    485  1.1.1.1.2.2  pgoyette   N32_FPU_FLD,
    486  1.1.1.1.2.2  pgoyette   N32_FPU_FS2,
    487  1.1.1.1.2.2  pgoyette   N32_FPU_FD1 = 8,
    488  1.1.1.1.2.2  pgoyette   N32_FPU_MTCP,
    489  1.1.1.1.2.2  pgoyette   N32_FPU_FSS,
    490  1.1.1.1.2.2  pgoyette   N32_FPU_FSD,
    491  1.1.1.1.2.2  pgoyette   N32_FPU_FD2,
    492  1.1.1.1.2.2  pgoyette 
    493  1.1.1.1.2.2  pgoyette   /* FS1 b[9:6] */
    494  1.1.1.1.2.2  pgoyette   N32_FPU_FS1_FADDS = 0,
    495  1.1.1.1.2.2  pgoyette   N32_FPU_FS1_FSUBS,
    496  1.1.1.1.2.2  pgoyette   N32_FPU_FS1_FCPYNSS,
    497  1.1.1.1.2.2  pgoyette   N32_FPU_FS1_FCPYSS,
    498  1.1.1.1.2.2  pgoyette   N32_FPU_FS1_FMADDS,
    499  1.1.1.1.2.2  pgoyette   N32_FPU_FS1_FMSUBS,
    500  1.1.1.1.2.2  pgoyette   N32_FPU_FS1_FCMOVNS,
    501  1.1.1.1.2.2  pgoyette   N32_FPU_FS1_FCMOVZS,
    502  1.1.1.1.2.2  pgoyette   N32_FPU_FS1_FNMADDS,
    503  1.1.1.1.2.2  pgoyette   N32_FPU_FS1_FNMSUBS,
    504  1.1.1.1.2.2  pgoyette   N32_FPU_FS1_10,
    505  1.1.1.1.2.2  pgoyette   N32_FPU_FS1_11,
    506  1.1.1.1.2.2  pgoyette   N32_FPU_FS1_FMULS = 12,
    507  1.1.1.1.2.2  pgoyette   N32_FPU_FS1_FDIVS,
    508  1.1.1.1.2.2  pgoyette   N32_FPU_FS1_14,
    509  1.1.1.1.2.2  pgoyette   N32_FPU_FS1_F2OP = 15,
    510  1.1.1.1.2.2  pgoyette 
    511  1.1.1.1.2.2  pgoyette   /* FS1/F2OP b[14:10] */
    512  1.1.1.1.2.2  pgoyette   N32_FPU_FS1_F2OP_FS2D = 0x00,
    513  1.1.1.1.2.2  pgoyette   N32_FPU_FS1_F2OP_FSQRTS  = 0x01,
    514  1.1.1.1.2.2  pgoyette   N32_FPU_FS1_F2OP_FABSS  = 0x05,
    515  1.1.1.1.2.2  pgoyette   N32_FPU_FS1_F2OP_FUI2S  = 0x08,
    516  1.1.1.1.2.2  pgoyette   N32_FPU_FS1_F2OP_FSI2S  = 0x0c,
    517  1.1.1.1.2.2  pgoyette   N32_FPU_FS1_F2OP_FS2UI  = 0x10,
    518  1.1.1.1.2.2  pgoyette   N32_FPU_FS1_F2OP_FS2UI_Z = 0x14,
    519  1.1.1.1.2.2  pgoyette   N32_FPU_FS1_F2OP_FS2SI  = 0x18,
    520  1.1.1.1.2.2  pgoyette   N32_FPU_FS1_F2OP_FS2SI_Z = 0x1c,
    521  1.1.1.1.2.2  pgoyette 
    522  1.1.1.1.2.2  pgoyette   /* FS2 b[9:6] */
    523  1.1.1.1.2.2  pgoyette   N32_FPU_FS2_FCMPEQS = 0x0,
    524  1.1.1.1.2.2  pgoyette   N32_FPU_FS2_FCMPLTS = 0x2,
    525  1.1.1.1.2.2  pgoyette   N32_FPU_FS2_FCMPLES = 0x4,
    526  1.1.1.1.2.2  pgoyette   N32_FPU_FS2_FCMPUNS = 0x6,
    527  1.1.1.1.2.2  pgoyette   N32_FPU_FS2_FCMPEQS_E = 0x1,
    528  1.1.1.1.2.2  pgoyette   N32_FPU_FS2_FCMPLTS_E = 0x3,
    529  1.1.1.1.2.2  pgoyette   N32_FPU_FS2_FCMPLES_E = 0x5,
    530  1.1.1.1.2.2  pgoyette   N32_FPU_FS2_FCMPUNS_E = 0x7,
    531  1.1.1.1.2.2  pgoyette 
    532  1.1.1.1.2.2  pgoyette   /* FD1 b[9:6] */
    533  1.1.1.1.2.2  pgoyette   N32_FPU_FD1_FADDD = 0,
    534  1.1.1.1.2.2  pgoyette   N32_FPU_FD1_FSUBD,
    535  1.1.1.1.2.2  pgoyette   N32_FPU_FD1_FCPYNSD,
    536  1.1.1.1.2.2  pgoyette   N32_FPU_FD1_FCPYSD,
    537  1.1.1.1.2.2  pgoyette   N32_FPU_FD1_FMADDD,
    538  1.1.1.1.2.2  pgoyette   N32_FPU_FD1_FMSUBD,
    539  1.1.1.1.2.2  pgoyette   N32_FPU_FD1_FCMOVND,
    540  1.1.1.1.2.2  pgoyette   N32_FPU_FD1_FCMOVZD,
    541  1.1.1.1.2.2  pgoyette   N32_FPU_FD1_FNMADDD,
    542  1.1.1.1.2.2  pgoyette   N32_FPU_FD1_FNMSUBD,
    543  1.1.1.1.2.2  pgoyette   N32_FPU_FD1_10,
    544  1.1.1.1.2.2  pgoyette   N32_FPU_FD1_11,
    545  1.1.1.1.2.2  pgoyette   N32_FPU_FD1_FMULD = 12,
    546  1.1.1.1.2.2  pgoyette   N32_FPU_FD1_FDIVD,
    547  1.1.1.1.2.2  pgoyette   N32_FPU_FD1_14,
    548  1.1.1.1.2.2  pgoyette   N32_FPU_FD1_F2OP = 15,
    549  1.1.1.1.2.2  pgoyette 
    550  1.1.1.1.2.2  pgoyette   /* FD1/F2OP b[14:10] */
    551  1.1.1.1.2.2  pgoyette   N32_FPU_FD1_F2OP_FD2S = 0x00,
    552  1.1.1.1.2.2  pgoyette   N32_FPU_FD1_F2OP_FSQRTD = 0x01,
    553  1.1.1.1.2.2  pgoyette   N32_FPU_FD1_F2OP_FABSD = 0x05,
    554  1.1.1.1.2.2  pgoyette   N32_FPU_FD1_F2OP_FUI2D = 0x08,
    555  1.1.1.1.2.2  pgoyette   N32_FPU_FD1_F2OP_FSI2D = 0x0c,
    556  1.1.1.1.2.2  pgoyette   N32_FPU_FD1_F2OP_FD2UI = 0x10,
    557  1.1.1.1.2.2  pgoyette   N32_FPU_FD1_F2OP_FD2UI_Z = 0x14,
    558  1.1.1.1.2.2  pgoyette   N32_FPU_FD1_F2OP_FD2SI = 0x18,
    559  1.1.1.1.2.2  pgoyette   N32_FPU_FD1_F2OP_FD2SI_Z = 0x1c,
    560  1.1.1.1.2.2  pgoyette 
    561  1.1.1.1.2.2  pgoyette   /* FD2 b[9:6] */
    562  1.1.1.1.2.2  pgoyette   N32_FPU_FD2_FCMPEQD = 0x0,
    563  1.1.1.1.2.2  pgoyette   N32_FPU_FD2_FCMPLTD = 0x2,
    564  1.1.1.1.2.2  pgoyette   N32_FPU_FD2_FCMPLED = 0x4,
    565  1.1.1.1.2.2  pgoyette   N32_FPU_FD2_FCMPUND = 0x6,
    566  1.1.1.1.2.2  pgoyette   N32_FPU_FD2_FCMPEQD_E = 0x1,
    567  1.1.1.1.2.2  pgoyette   N32_FPU_FD2_FCMPLTD_E = 0x3,
    568  1.1.1.1.2.2  pgoyette   N32_FPU_FD2_FCMPLED_E = 0x5,
    569  1.1.1.1.2.2  pgoyette   N32_FPU_FD2_FCMPUND_E = 0x7,
    570  1.1.1.1.2.2  pgoyette 
    571  1.1.1.1.2.2  pgoyette   /* MFCP b[9:6] */
    572  1.1.1.1.2.2  pgoyette   N32_FPU_MFCP_FMFSR = 0x0,
    573  1.1.1.1.2.2  pgoyette   N32_FPU_MFCP_FMFDR = 0x1,
    574  1.1.1.1.2.2  pgoyette   N32_FPU_MFCP_XR = 0xc,
    575  1.1.1.1.2.2  pgoyette 
    576  1.1.1.1.2.2  pgoyette   /* MFCP/XR b[14:10] */
    577  1.1.1.1.2.2  pgoyette   N32_FPU_MFCP_XR_FMFCFG = 0x0,
    578  1.1.1.1.2.2  pgoyette   N32_FPU_MFCP_XR_FMFCSR = 0x1,
    579  1.1.1.1.2.2  pgoyette 
    580  1.1.1.1.2.2  pgoyette   /* MTCP b[9:6] */
    581  1.1.1.1.2.2  pgoyette   N32_FPU_MTCP_FMTSR = 0x0,
    582  1.1.1.1.2.2  pgoyette   N32_FPU_MTCP_FMTDR = 0x1,
    583  1.1.1.1.2.2  pgoyette   N32_FPU_MTCP_XR = 0xc,
    584  1.1.1.1.2.2  pgoyette 
    585  1.1.1.1.2.2  pgoyette   /* MTCP/XR b[14:10] */
    586  1.1.1.1.2.2  pgoyette   N32_FPU_MTCP_XR_FMTCSR = 0x1
    587  1.1.1.1.2.2  pgoyette };
    588  1.1.1.1.2.2  pgoyette 
    589  1.1.1.1.2.2  pgoyette enum n16_opcodes
    590  1.1.1.1.2.2  pgoyette {
    591  1.1.1.1.2.2  pgoyette   N16_T55_MOV55 = 0x0,
    592  1.1.1.1.2.2  pgoyette   N16_T55_MOVI55 = 0x1,
    593  1.1.1.1.2.2  pgoyette 
    594  1.1.1.1.2.2  pgoyette   N16_T45_0 = 0,
    595  1.1.1.1.2.2  pgoyette   N16_T45_ADD45 = 0x4,
    596  1.1.1.1.2.2  pgoyette   N16_T45_SUB45 = 0x5,
    597  1.1.1.1.2.2  pgoyette   N16_T45_ADDI45 = 0x6,
    598  1.1.1.1.2.2  pgoyette   N16_T45_SUBI45 = 0x7,
    599  1.1.1.1.2.2  pgoyette   N16_T45_SRAI45 = 0x8,
    600  1.1.1.1.2.2  pgoyette   N16_T45_SRLI45 = 0x9,
    601  1.1.1.1.2.2  pgoyette   N16_T45_LWI45_FE = 0x19,
    602  1.1.1.1.2.2  pgoyette   N16_T45_LWI450 = 0x1a,
    603  1.1.1.1.2.2  pgoyette   N16_T45_SWI450 = 0x1b,
    604  1.1.1.1.2.2  pgoyette   N16_T45_SLTS45 = 0x30,
    605  1.1.1.1.2.2  pgoyette   N16_T45_SLT45 = 0x31,
    606  1.1.1.1.2.2  pgoyette   N16_T45_SLTSI45 = 0x32,
    607  1.1.1.1.2.2  pgoyette   N16_T45_SLTI45 = 0x33,
    608  1.1.1.1.2.2  pgoyette   N16_T45_MOVPI45 = 0x3d,
    609  1.1.1.1.2.2  pgoyette 
    610  1.1.1.1.2.2  pgoyette   N15_T44_MOVD44 = 0x7d,
    611  1.1.1.1.2.2  pgoyette 
    612  1.1.1.1.2.2  pgoyette   N16_T333_0 = 0,
    613  1.1.1.1.2.2  pgoyette   N16_T333_SLLI333 = 0xa,
    614  1.1.1.1.2.2  pgoyette   N16_T333_BFMI333 = 0xb,
    615  1.1.1.1.2.2  pgoyette   N16_T333_ADD333 = 0xc,
    616  1.1.1.1.2.2  pgoyette   N16_T333_SUB333 = 0xd,
    617  1.1.1.1.2.2  pgoyette   N16_T333_ADDI333 = 0xe,
    618  1.1.1.1.2.2  pgoyette   N16_T333_SUBI333 = 0xf,
    619  1.1.1.1.2.2  pgoyette   N16_T333_LWI333 = 0x10,
    620  1.1.1.1.2.2  pgoyette   N16_T333_LWI333_BI = 0x11,
    621  1.1.1.1.2.2  pgoyette   N16_T333_LHI333 = 0x12,
    622  1.1.1.1.2.2  pgoyette   N16_T333_LBI333 = 0x13,
    623  1.1.1.1.2.2  pgoyette   N16_T333_SWI333 = 0x14,
    624  1.1.1.1.2.2  pgoyette   N16_T333_SWI333_BI = 0x15,
    625  1.1.1.1.2.2  pgoyette   N16_T333_SHI333 = 0x16,
    626  1.1.1.1.2.2  pgoyette   N16_T333_SBI333 = 0x17,
    627  1.1.1.1.2.2  pgoyette   N16_T333_MISC33 = 0x3f,
    628  1.1.1.1.2.2  pgoyette 
    629  1.1.1.1.2.2  pgoyette   N16_T36_ADDRI36_SP = 0x18,
    630  1.1.1.1.2.2  pgoyette 
    631  1.1.1.1.2.2  pgoyette   N16_T37_XWI37 = 0x7,
    632  1.1.1.1.2.2  pgoyette   N16_T37_XWI37SP = 0xe,
    633  1.1.1.1.2.2  pgoyette 
    634  1.1.1.1.2.2  pgoyette   N16_T38_BEQZ38 = 0x8,
    635  1.1.1.1.2.2  pgoyette   N16_T38_BNEZ38 = 0x9,
    636  1.1.1.1.2.2  pgoyette   N16_T38_BEQS38 = 0xa,
    637  1.1.1.1.2.2  pgoyette   N16_T38_BNES38 = 0xb,
    638  1.1.1.1.2.2  pgoyette 
    639  1.1.1.1.2.2  pgoyette   N16_T5_JR5 = 0x2e8,
    640  1.1.1.1.2.2  pgoyette   N16_T5_JRAL5 = 0x2e9,
    641  1.1.1.1.2.2  pgoyette   N16_T5_EX9IT = 0x2ea,
    642  1.1.1.1.2.2  pgoyette   /* 0x2eb reserved.  */
    643  1.1.1.1.2.2  pgoyette   N16_T5_RET5 = 0x2ec,
    644  1.1.1.1.2.2  pgoyette   N16_T5_ADD5PC = 0x2ed,
    645  1.1.1.1.2.2  pgoyette   /* 0x2e[ef] reserved.  */
    646  1.1.1.1.2.2  pgoyette   N16_T5_BREAK16 = 0x350,
    647  1.1.1.1.2.2  pgoyette 
    648  1.1.1.1.2.2  pgoyette   N16_T8_J8 = 0x55,
    649  1.1.1.1.2.2  pgoyette   N16_T8_BEQZS8 = 0x68,
    650  1.1.1.1.2.2  pgoyette   N16_T8_BNEZS8 = 0x69,
    651  1.1.1.1.2.2  pgoyette 
    652  1.1.1.1.2.2  pgoyette   /* N16_T9_BREAK16 = 0x35
    653  1.1.1.1.2.2  pgoyette      Since v3, SWID of BREAK16 above 32 are used for encoding EX9.IT.  */
    654  1.1.1.1.2.2  pgoyette   N16_T9_EX9IT = 0x35,
    655  1.1.1.1.2.2  pgoyette   N16_T9_IFCALL9 = 0x3c,
    656  1.1.1.1.2.2  pgoyette 
    657  1.1.1.1.2.2  pgoyette   N16_T10_ADDI10S = 0x1b,
    658  1.1.1.1.2.2  pgoyette 
    659  1.1.1.1.2.2  pgoyette   N16_T25_PUSH25 = 0xf8,
    660  1.1.1.1.2.2  pgoyette   N16_T25_POP25 = 0xf9,
    661  1.1.1.1.2.2  pgoyette 
    662  1.1.1.1.2.2  pgoyette   /* Sub-opcodes.  */
    663  1.1.1.1.2.2  pgoyette   N16_MISC33_0 = 0,
    664  1.1.1.1.2.2  pgoyette   N16_MISC33_1 = 1,
    665  1.1.1.1.2.2  pgoyette   N16_MISC33_NEG33 = 2,
    666  1.1.1.1.2.2  pgoyette   N16_MISC33_NOT33 = 3,
    667  1.1.1.1.2.2  pgoyette   N16_MISC33_MUL33 = 4,
    668  1.1.1.1.2.2  pgoyette   N16_MISC33_XOR33 = 5,
    669  1.1.1.1.2.2  pgoyette   N16_MISC33_AND33 = 6,
    670  1.1.1.1.2.2  pgoyette   N16_MISC33_OR33 = 7,
    671  1.1.1.1.2.2  pgoyette 
    672  1.1.1.1.2.2  pgoyette   N16_BFMI333_ZEB33 = 0,
    673  1.1.1.1.2.2  pgoyette   N16_BFMI333_ZEH33 = 1,
    674  1.1.1.1.2.2  pgoyette   N16_BFMI333_SEB33 = 2,
    675  1.1.1.1.2.2  pgoyette   N16_BFMI333_SEH33 = 3,
    676  1.1.1.1.2.2  pgoyette   N16_BFMI333_XLSB33 = 4,
    677  1.1.1.1.2.2  pgoyette   N16_BFMI333_X11B33 = 5,
    678  1.1.1.1.2.2  pgoyette   N16_BFMI333_BMSKI33 = 6,
    679  1.1.1.1.2.2  pgoyette   N16_BFMI333_FEXTI33 = 7
    680  1.1.1.1.2.2  pgoyette };
    681  1.1.1.1.2.2  pgoyette 
    682  1.1.1.1.2.2  pgoyette /* These macros a deprecated.  DO NOT use them anymore.
    684  1.1.1.1.2.2  pgoyette    And please help rewrite code used them.  */
    685  1.1.1.1.2.2  pgoyette 
    686  1.1.1.1.2.2  pgoyette /* 32-bit instructions without operands.  */
    687  1.1.1.1.2.2  pgoyette #define INSN_SETHI  0x46000000
    688  1.1.1.1.2.2  pgoyette #define INSN_ORI    0x58000000
    689  1.1.1.1.2.2  pgoyette #define INSN_JR     0x4a000000
    690  1.1.1.1.2.2  pgoyette #define INSN_RET    0x4a000020
    691  1.1.1.1.2.2  pgoyette #define INSN_JAL    0x49000000
    692  1.1.1.1.2.2  pgoyette #define INSN_J      0x48000000
    693  1.1.1.1.2.2  pgoyette #define INSN_JRAL   0x4a000001
    694  1.1.1.1.2.2  pgoyette #define INSN_BGEZAL 0x4e0c0000
    695  1.1.1.1.2.2  pgoyette #define INSN_BLTZAL 0x4e0d0000
    696  1.1.1.1.2.2  pgoyette #define INSN_BEQ    0x4c000000
    697  1.1.1.1.2.2  pgoyette #define INSN_BNE    0x4c004000
    698  1.1.1.1.2.2  pgoyette #define INSN_BEQZ   0x4e020000
    699  1.1.1.1.2.2  pgoyette #define INSN_BNEZ   0x4e030000
    700  1.1.1.1.2.2  pgoyette #define INSN_BGEZ   0x4e040000
    701  1.1.1.1.2.2  pgoyette #define INSN_BLTZ   0x4e050000
    702  1.1.1.1.2.2  pgoyette #define INSN_BGTZ   0x4e060000
    703  1.1.1.1.2.2  pgoyette #define INSN_BLEZ   0x4e070000
    704  1.1.1.1.2.2  pgoyette #define INSN_MOVI   0x44000000
    705  1.1.1.1.2.2  pgoyette #define INSN_ADDI   0x50000000
    706  1.1.1.1.2.2  pgoyette #define INSN_ANDI   0x54000000
    707  1.1.1.1.2.2  pgoyette #define INSN_LDI    0x06000000
    708  1.1.1.1.2.2  pgoyette #define INSN_SDI    0x16000000
    709  1.1.1.1.2.2  pgoyette #define INSN_LWI    0x04000000
    710  1.1.1.1.2.2  pgoyette #define INSN_LWSI   0x24000000
    711  1.1.1.1.2.2  pgoyette #define INSN_LWIP   0x0c000000
    712  1.1.1.1.2.2  pgoyette #define INSN_LHI    0x02000000
    713  1.1.1.1.2.2  pgoyette #define INSN_LHSI   0x22000000
    714  1.1.1.1.2.2  pgoyette #define INSN_LBI    0x00000000
    715  1.1.1.1.2.2  pgoyette #define INSN_LBSI   0x20000000
    716  1.1.1.1.2.2  pgoyette #define INSN_SWI    0x14000000
    717  1.1.1.1.2.2  pgoyette #define INSN_SWIP   0x1c000000
    718  1.1.1.1.2.2  pgoyette #define INSN_SHI    0x12000000
    719  1.1.1.1.2.2  pgoyette #define INSN_SBI    0x10000000
    720  1.1.1.1.2.2  pgoyette #define INSN_SLTI   0x5c000000
    721  1.1.1.1.2.2  pgoyette #define INSN_SLTSI  0x5e000000
    722  1.1.1.1.2.2  pgoyette #define INSN_ADD    0x40000000
    723  1.1.1.1.2.2  pgoyette #define INSN_SUB    0x40000001
    724  1.1.1.1.2.2  pgoyette #define INSN_SLT    0x40000006
    725  1.1.1.1.2.2  pgoyette #define INSN_SLTS   0x40000007
    726  1.1.1.1.2.2  pgoyette #define INSN_SLLI   0x40000008
    727  1.1.1.1.2.2  pgoyette #define INSN_SRLI   0x40000009
    728  1.1.1.1.2.2  pgoyette #define INSN_SRAI   0x4000000a
    729  1.1.1.1.2.2  pgoyette #define INSN_SEB    0x40000010
    730  1.1.1.1.2.2  pgoyette #define INSN_SEH    0x40000011
    731  1.1.1.1.2.2  pgoyette #define INSN_ZEB    INSN_ANDI + 0xFF
    732  1.1.1.1.2.2  pgoyette #define INSN_ZEH    0x40000013
    733  1.1.1.1.2.2  pgoyette #define INSN_BREAK  0x6400000a
    734  1.1.1.1.2.2  pgoyette #define INSN_NOP    0x40000009
    735  1.1.1.1.2.2  pgoyette #define INSN_FLSI   0x30000000
    736  1.1.1.1.2.2  pgoyette #define INSN_FSSI   0x32000000
    737  1.1.1.1.2.2  pgoyette #define INSN_FLDI   0x34000000
    738  1.1.1.1.2.2  pgoyette #define INSN_FSDI   0x36000000
    739  1.1.1.1.2.2  pgoyette #define INSN_BEQC   0x5a000000
    740  1.1.1.1.2.2  pgoyette #define INSN_BNEC   0x5a080000
    741  1.1.1.1.2.2  pgoyette #define INSN_DSB    0x64000008
    742  1.1.1.1.2.2  pgoyette #define INSN_IFCALL 0x4e000000
    743  1.1.1.1.2.2  pgoyette #define INSN_IFRET  0x4a000060
    744  1.1.1.1.2.2  pgoyette #define INSN_BR1    0x4c000000
    745  1.1.1.1.2.2  pgoyette #define INSN_BR2    0x4e000000
    746  1.1.1.1.2.2  pgoyette 
    747  1.1.1.1.2.2  pgoyette /* 16-bit instructions without operand.  */
    748  1.1.1.1.2.2  pgoyette #define INSN_MOV55	0x8000
    749  1.1.1.1.2.2  pgoyette #define INSN_MOVI55	0x8400
    750  1.1.1.1.2.2  pgoyette #define INSN_ADD45	0x8800
    751  1.1.1.1.2.2  pgoyette #define INSN_SUB45	0x8a00
    752  1.1.1.1.2.2  pgoyette #define INSN_ADDI45	0x8c00
    753  1.1.1.1.2.2  pgoyette #define INSN_SUBI45	0x8e00
    754  1.1.1.1.2.2  pgoyette #define INSN_SRAI45	0x9000
    755  1.1.1.1.2.2  pgoyette #define INSN_SRLI45	0x9200
    756  1.1.1.1.2.2  pgoyette #define INSN_SLLI333	0x9400
    757  1.1.1.1.2.2  pgoyette #define INSN_BFMI333	0x9600
    758  1.1.1.1.2.2  pgoyette #define INSN_ADD333	0x9800
    759  1.1.1.1.2.2  pgoyette #define INSN_SUB333	0x9a00
    760  1.1.1.1.2.2  pgoyette #define INSN_ADDI333	0x9c00
    761  1.1.1.1.2.2  pgoyette #define INSN_SUBI333	0x9e00
    762  1.1.1.1.2.2  pgoyette #define INSN_LWI333	0xa000
    763  1.1.1.1.2.2  pgoyette #define INSN_LWI333P	0xa200
    764  1.1.1.1.2.2  pgoyette #define INSN_LHI333	0xa400
    765  1.1.1.1.2.2  pgoyette #define INSN_LBI333	0xa600
    766  1.1.1.1.2.2  pgoyette #define INSN_SWI333	0xa800
    767  1.1.1.1.2.2  pgoyette #define INSN_SWI333P	0xaa00
    768  1.1.1.1.2.2  pgoyette #define INSN_SHI333	0xac00
    769  1.1.1.1.2.2  pgoyette #define INSN_SBI333	0xae00
    770  1.1.1.1.2.2  pgoyette #define INSN_RSV01	0xb000
    771  1.1.1.1.2.2  pgoyette #define INSN_RSV02	0xb200
    772  1.1.1.1.2.2  pgoyette #define INSN_LWI450	0xb400
    773  1.1.1.1.2.2  pgoyette #define INSN_SWI450	0xb600
    774  1.1.1.1.2.2  pgoyette #define INSN_LWI37	0xb800
    775  1.1.1.1.2.2  pgoyette #define INSN_SWI37	0xb880
    776  1.1.1.1.2.2  pgoyette #define INSN_BEQZ38	0xc000
    777  1.1.1.1.2.2  pgoyette #define INSN_BNEZ38	0xc800
    778  1.1.1.1.2.2  pgoyette #define INSN_BEQS38	0xd000
    779  1.1.1.1.2.2  pgoyette #define INSN_J8		0xd500
    780  1.1.1.1.2.2  pgoyette #define INSN_BNES38	0xd800
    781  1.1.1.1.2.2  pgoyette #define INSN_JR5	0xdd00
    782  1.1.1.1.2.2  pgoyette #define INSN_RET5	0xdd80
    783  1.1.1.1.2.2  pgoyette #define INSN_JRAL5	0xdd20
    784  1.1.1.1.2.2  pgoyette #define INSN_EX9_IT_2	0xdd40
    785  1.1.1.1.2.2  pgoyette #define INSN_SLTS45	0xe000
    786  1.1.1.1.2.2  pgoyette #define INSN_SLT45	0xe200
    787  1.1.1.1.2.2  pgoyette #define INSN_SLTSI45	0xe400
    788  1.1.1.1.2.2  pgoyette #define INSN_SLTI45	0xe600
    789  1.1.1.1.2.2  pgoyette #define INSN_BEQZS8	0xe800
    790  1.1.1.1.2.2  pgoyette #define INSN_BNEZS8	0xe900
    791  1.1.1.1.2.2  pgoyette #define INSN_BREAK16	0xea00
    792  1.1.1.1.2.2  pgoyette #define INSN_EX9_IT_1	0xea00
    793  1.1.1.1.2.2  pgoyette #define INSN_NOP16	0x9200
    794  1.1.1.1.2.2  pgoyette /* 16-bit version 2.  */
    795  1.1.1.1.2.2  pgoyette #define INSN_ADDI10_SP	0xec00
    796  1.1.1.1.2.2  pgoyette #define INSN_LWI37SP	0xf000
    797  1.1.1.1.2.2  pgoyette #define INSN_SWI37SP	0xf080
    798  1.1.1.1.2.2  pgoyette /* 16-bit version 3.  */
    799  1.1.1.1.2.2  pgoyette #define INSN_IFRET16	0x83ff
    800  1.1.1.1.2.2  pgoyette #define INSN_ADDRI36_SP	0xb000
    801  1.1.1.1.2.2  pgoyette #define INSN_LWI45_FE	0xb200
    802  1.1.1.1.2.2  pgoyette #define INSN_IFCALL9	0xf800
    803  1.1.1.1.2.2  pgoyette #define INSN_MISC33	0xfe00
    804  1.1.1.1.2.2  pgoyette 
    805  1.1.1.1.2.2  pgoyette /* Instruction with specific operands.  */
    806  1.1.1.1.2.2  pgoyette #define INSN_ADDI_GP_TO_FP	0x51cd8000	/* BASELINE_V1.  */
    807  1.1.1.1.2.2  pgoyette #define INSN_ADDIGP_TO_FP	0x3fc80000	/* BASELINE_V2.  */
    808  1.1.1.1.2.2  pgoyette #define INSN_MOVI_TO_FP		0x45c00000
    809  1.1.1.1.2.2  pgoyette #define INSN_MFUSR_PC		0x420F8020
    810  1.1.1.1.2.2  pgoyette #define INSN_MFUSR_PC_MASK	0xFE0FFFFF
    811  1.1.1.1.2.2  pgoyette 
    812  1.1.1.1.2.2  pgoyette /* Instructions use $ta register as operand.  */
    813  1.1.1.1.2.2  pgoyette #define INSN_SETHI_TA	(INSN_SETHI | (REG_TA << 20))
    814  1.1.1.1.2.2  pgoyette #define INSN_ORI_TA	(INSN_ORI | (REG_TA << 20) | (REG_TA << 15))
    815  1.1.1.1.2.2  pgoyette #define INSN_ADD_TA	(INSN_ADD | (REG_TA << 20))
    816  1.1.1.1.2.2  pgoyette #define INSN_ADD45_TA	(INSN_ADD45 | (REG_TA << 5))
    817  1.1.1.1.2.2  pgoyette #define INSN_JR5_TA	(INSN_JR5 | (REG_TA << 0))
    818  1.1.1.1.2.2  pgoyette #define INSN_RET5_TA	(INSN_RET5 | (REG_TA << 0))
    819  1.1.1.1.2.2  pgoyette #define INSN_JR_TA	(INSN_JR | (REG_TA << 10))
    820  1.1.1.1.2.2  pgoyette #define INSN_RET_TA	(INSN_RET | (REG_TA << 10))
    821  1.1.1.1.2.2  pgoyette #define INSN_JRAL_TA	(INSN_JRAL | (REG_LP << 20) | (REG_TA << 10))
    822  1.1.1.1.2.2  pgoyette #define INSN_JRAL5_TA	(INSN_JRAL5 | (REG_TA << 0))
    823  1.1.1.1.2.2  pgoyette #define INSN_BEQZ_TA	(INSN_BEQZ | (REG_TA << 20))
    824  1.1.1.1.2.2  pgoyette #define INSN_BNEZ_TA	(INSN_BNEZ | (REG_TA << 20))
    825  1.1.1.1.2.2  pgoyette #define INSN_MOVI_TA	(INSN_MOVI | (REG_TA << 20))
    826  1.1.1.1.2.2  pgoyette #define INSN_BEQ_TA	(INSN_BEQ | (REG_TA << 15))
    827  1.1.1.1.2.2  pgoyette #define INSN_BNE_TA	(INSN_BNE | (REG_TA << 15))
    828  1.1.1.1.2.2  pgoyette 
    829  1.1.1.1.2.2  pgoyette /* Instructions use $r5 register as operand.  */
    830  1.1.1.1.2.2  pgoyette #define INSN_BNE_R5	(INSN_BNE | (REG_R5 << 15))
    831  1.1.1.1.2.2  pgoyette #define INSN_BEQ_R5	(INSN_BEQ | (REG_R5 << 15))
    832                        
    833                        #endif
    834