Rizin
unix-like reverse engineering framework and cli tools
mips.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 Free Software Foundation, Inc.
2 // SPDX-License-Identifier: GPL-1.0-or-later
3 
4 /* mips.h. Mips opcode list for GDB, the GNU debugger.
5  Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
6  2003, 2004, 2005, 2008
7  Free Software Foundation, Inc.
8  Contributed by Ralph Campbell and OSF
9  Commented and modified by Ian Lance Taylor, Cygnus Support
10 
11 This file is part of GDB, GAS, and the GNU binutils.
12 
13 GDB, GAS, and the GNU binutils are free software; you can redistribute
14 them and/or modify them under the terms of the GNU General Public
15 License as published by the Free Software Foundation; either version
16 1, or (at your option) any later version.
17 
18 GDB, GAS, and the GNU binutils are distributed in the hope that they
19 will be useful, but WITHOUT ANY WARRANTY; without even the implied
20 warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
21 the GNU General Public License for more details.
22 
23 You should have received a copy of the GNU General Public License
24 along with this file; see the file COPYING. If not, write to the Free
25 Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */
26 
27 #ifndef _MIPS_H_
28 #define _MIPS_H_
29 
30 /* These are bit masks and shift counts to use to access the various
31  fields of an instruction. To retrieve the X field of an
32  instruction, use the expression
33  (i >> OP_SH_X) & OP_MASK_X
34  To set the same field (to j), use
35  i = (i &~ (OP_MASK_X << OP_SH_X)) | (j << OP_SH_X)
36 
37  Make sure you use fields that are appropriate for the instruction,
38  of course.
39 
40  The 'i' format uses OP, RS, RT and IMMEDIATE.
41 
42  The 'j' format uses OP and TARGET.
43 
44  The 'r' format uses OP, RS, RT, RD, SHAMT and FUNCT.
45 
46  The 'b' format uses OP, RS, RT and DELTA.
47 
48  The floating point 'i' format uses OP, RS, RT and IMMEDIATE.
49 
50  The floating point 'r' format uses OP, FMT, FT, FS, FD and FUNCT.
51 
52  A breakpoint instruction uses OP, CODE and SPEC (10 bits of the
53  breakpoint instruction are not defined; Kane says the breakpoint
54  code field in BREAK is 20 bits; yet MIPS assemblers and debuggers
55  only use ten bits). An optional two-operand form of break/sdbbp
56  allows the lower ten bits to be set too, and MIPS32 and later
57  architectures allow 20 bits to be set with a signal operand
58  (using CODE20).
59 
60  The syscall instruction uses CODE20.
61 
62  The general coprocessor instructions use COPZ. */
63 
64 #define OP_MASK_OP 0x3f
65 #define OP_SH_OP 26
66 #define OP_MASK_RS 0x1f
67 #define OP_SH_RS 21
68 #define OP_MASK_FR 0x1f
69 #define OP_SH_FR 21
70 #define OP_MASK_FMT 0x1f
71 #define OP_SH_FMT 21
72 #define OP_MASK_BCC 0x7
73 #define OP_SH_BCC 18
74 #define OP_MASK_CODE 0x3ff
75 #define OP_SH_CODE 16
76 #define OP_MASK_CODE2 0x3ff
77 #define OP_SH_CODE2 6
78 #define OP_MASK_RT 0x1f
79 #define OP_SH_RT 16
80 #define OP_MASK_FT 0x1f
81 #define OP_SH_FT 16
82 #define OP_MASK_CACHE 0x1f
83 #define OP_SH_CACHE 16
84 #define OP_MASK_RD 0x1f
85 #define OP_SH_RD 11
86 #define OP_MASK_FS 0x1f
87 #define OP_SH_FS 11
88 #define OP_MASK_PREFX 0x1f
89 #define OP_SH_PREFX 11
90 #define OP_MASK_CCC 0x7
91 #define OP_SH_CCC 8
92 #define OP_MASK_CODE20 0xfffff /* 20 bit syscall/breakpoint code. */
93 #define OP_SH_CODE20 6
94 #define OP_MASK_SHAMT 0x1f
95 #define OP_SH_SHAMT 6
96 #define OP_MASK_FD 0x1f
97 #define OP_SH_FD 6
98 #define OP_MASK_TARGET 0x3ffffff
99 #define OP_SH_TARGET 0
100 #define OP_MASK_COPZ 0x1ffffff
101 #define OP_SH_COPZ 0
102 #define OP_MASK_IMMEDIATE 0xffff
103 #define OP_SH_IMMEDIATE 0
104 #define OP_MASK_DELTA 0xffff
105 #define OP_SH_DELTA 0
106 #define OP_MASK_FUNCT 0x3f
107 #define OP_SH_FUNCT 0
108 #define OP_MASK_SPEC 0x3f
109 #define OP_SH_SPEC 0
110 #define OP_SH_LOCC 8 /* FP condition code. */
111 #define OP_SH_HICC 18 /* FP condition code. */
112 #define OP_MASK_CC 0x7
113 #define OP_SH_COP1NORM 25 /* Normal COP1 encoding. */
114 #define OP_MASK_COP1NORM 0x1 /* a single bit. */
115 #define OP_SH_COP1SPEC 21 /* COP1 encodings. */
116 #define OP_MASK_COP1SPEC 0xf
117 #define OP_MASK_COP1SCLR 0x4
118 #define OP_MASK_COP1CMP 0x3
119 #define OP_SH_COP1CMP 4
120 #define OP_SH_FORMAT 21 /* FP short format field. */
121 #define OP_MASK_FORMAT 0x7
122 #define OP_SH_TRUE 16
123 #define OP_MASK_TRUE 0x1
124 #define OP_SH_GE 17
125 #define OP_MASK_GE 0x01
126 #define OP_SH_UNSIGNED 16
127 #define OP_MASK_UNSIGNED 0x1
128 #define OP_SH_HINT 16
129 #define OP_MASK_HINT 0x1f
130 #define OP_SH_MMI 0 /* Multimedia (parallel) op. */
131 #define OP_MASK_MMI 0x3f
132 #define OP_SH_MMISUB 6
133 #define OP_MASK_MMISUB 0x1f
134 #define OP_MASK_PERFREG 0x1f /* Performance monitoring. */
135 #define OP_SH_PERFREG 1
136 #define OP_SH_SEL 0 /* Coprocessor select field. */
137 #define OP_MASK_SEL 0x7 /* The sel field of mfcZ and mtcZ. */
138 #define OP_SH_CODE19 6 /* 19 bit wait code. */
139 #define OP_MASK_CODE19 0x7ffff
140 #define OP_SH_ALN 21
141 #define OP_MASK_ALN 0x7
142 #define OP_SH_VSEL 21
143 #define OP_MASK_VSEL 0x1f
144 #define OP_MASK_VECBYTE 0x7 /* Selector field is really 4 bits, \
145  but 0x8-0xf don't select bytes. */
146 #define OP_SH_VECBYTE 22
147 #define OP_MASK_VECALIGN 0x7 /* Vector byte-align (alni.ob) op. */
148 #define OP_SH_VECALIGN 21
149 #define OP_MASK_INSMSB 0x1f /* "ins" MSB. */
150 #define OP_SH_INSMSB 11
151 #define OP_MASK_EXTMSBD 0x1f /* "ext" MSBD. */
152 #define OP_SH_EXTMSBD 11
153 
154 /* MIPS DSP ASE */
155 #define OP_SH_DSPACC 11
156 #define OP_MASK_DSPACC 0x3
157 #define OP_SH_DSPACC_S 21
158 #define OP_MASK_DSPACC_S 0x3
159 #define OP_SH_DSPSFT 20
160 #define OP_MASK_DSPSFT 0x3f
161 #define OP_SH_DSPSFT_7 19
162 #define OP_MASK_DSPSFT_7 0x7f
163 #define OP_SH_SA3 21
164 #define OP_MASK_SA3 0x7
165 #define OP_SH_SA4 21
166 #define OP_MASK_SA4 0xf
167 #define OP_SH_IMM8 16
168 #define OP_MASK_IMM8 0xff
169 #define OP_SH_IMM10 16
170 #define OP_MASK_IMM10 0x3ff
171 #define OP_SH_WRDSP 11
172 #define OP_MASK_WRDSP 0x3f
173 #define OP_SH_RDDSP 16
174 #define OP_MASK_RDDSP 0x3f
175 #define OP_SH_BP 11
176 #define OP_MASK_BP 0x3
177 
178 /* MIPS MT ASE */
179 #define OP_SH_MT_U 5
180 #define OP_MASK_MT_U 0x1
181 #define OP_SH_MT_H 4
182 #define OP_MASK_MT_H 0x1
183 #define OP_SH_MTACC_T 18
184 #define OP_MASK_MTACC_T 0x3
185 #define OP_SH_MTACC_D 13
186 #define OP_MASK_MTACC_D 0x3
187 
188 #define OP_OP_COP0 0x10
189 #define OP_OP_COP1 0x11
190 #define OP_OP_COP2 0x12
191 #define OP_OP_COP3 0x13
192 #define OP_OP_LWC1 0x31
193 #define OP_OP_LWC2 0x32
194 #define OP_OP_LWC3 0x33 /* a.k.a. pref */
195 #define OP_OP_LDC1 0x35
196 #define OP_OP_LDC2 0x36
197 #define OP_OP_LDC3 0x37 /* a.k.a. ld */
198 #define OP_OP_SWC1 0x39
199 #define OP_OP_SWC2 0x3a
200 #define OP_OP_SWC3 0x3b
201 #define OP_OP_SDC1 0x3d
202 #define OP_OP_SDC2 0x3e
203 #define OP_OP_SDC3 0x3f /* a.k.a. sd */
204 
205 /* Values in the 'VSEL' field. */
206 #define MDMX_FMTSEL_IMM_QH 0x1d
207 #define MDMX_FMTSEL_IMM_OB 0x1e
208 #define MDMX_FMTSEL_VEC_QH 0x15
209 #define MDMX_FMTSEL_VEC_OB 0x16
210 
211 /* UDI */
212 #define OP_SH_UDI1 6
213 #define OP_MASK_UDI1 0x1f
214 #define OP_SH_UDI2 6
215 #define OP_MASK_UDI2 0x3ff
216 #define OP_SH_UDI3 6
217 #define OP_MASK_UDI3 0x7fff
218 #define OP_SH_UDI4 6
219 #define OP_MASK_UDI4 0xfffff
220 
221 /* This structure holds information for a particular instruction. */
222 
223 struct mips_opcode {
224  /* The name of the instruction. */
225  const char *name;
226  /* A string describing the arguments for this instruction. */
227  const char *args;
228  /* The basic opcode for the instruction. When assembling, this
229  opcode is modified by the arguments to produce the actual opcode
230  that is used. If pinfo is INSN_MACRO, then this is 0. */
231  unsigned long match;
232  /* If pinfo is not INSN_MACRO, then this is a bit mask for the
233  relevant portions of the opcode when disassembling. If the
234  actual opcode anded with the match field equals the opcode field,
235  then we have found the correct instruction. If pinfo is
236  INSN_MACRO, then this field is the macro identifier. */
237  unsigned long mask;
238  /* For a macro, this is INSN_MACRO. Otherwise, it is a collection
239  of bits describing the instruction, notably any relevant hazard
240  information. */
241  unsigned long pinfo;
242  /* A collection of additional bits describing the instruction. */
243  unsigned long pinfo2;
244  /* A collection of bits describing the instruction sets of which this
245  instruction or macro is a member. */
246  unsigned long membership;
247 };
248 
249 /* These are the characters which may appear in the args field of an
250  instruction. They appear in the order in which the fields appear
251  when the instruction is used. Commas and parentheses in the args
252  string are ignored when assembling, and written into the output
253  when disassembling.
254 
255  Each of these characters corresponds to a mask field defined above.
256 
257  "<" 5 bit shift amount (OP_*_SHAMT)
258  ">" shift amount between 32 and 63, stored after subtracting 32 (OP_*_SHAMT)
259  "a" 26 bit target address (OP_*_TARGET)
260  "b" 5 bit base register (OP_*_RS)
261  "c" 10 bit breakpoint code (OP_*_CODE)
262  "d" 5 bit destination register specifier (OP_*_RD)
263  "h" 5 bit prefx hint (OP_*_PREFX)
264  "i" 16 bit unsigned immediate (OP_*_IMMEDIATE)
265  "j" 16 bit signed immediate (OP_*_DELTA)
266  "k" 5 bit cache opcode in target register position (OP_*_CACHE)
267  Also used for immediate operands in vr5400 vector insns.
268  "o" 16 bit signed offset (OP_*_DELTA)
269  "p" 16 bit PC relative branch target address (OP_*_DELTA)
270  "q" 10 bit extra breakpoint code (OP_*_CODE2)
271  "r" 5 bit same register used as both source and target (OP_*_RS)
272  "s" 5 bit source register specifier (OP_*_RS)
273  "t" 5 bit target register (OP_*_RT)
274  "u" 16 bit upper 16 bits of address (OP_*_IMMEDIATE)
275  "v" 5 bit same register used as both source and destination (OP_*_RS)
276  "w" 5 bit same register used as both target and destination (OP_*_RT)
277  "U" 5 bit same destination register in both OP_*_RD and OP_*_RT
278  (used by clo and clz)
279  "C" 25 bit coprocessor function code (OP_*_COPZ)
280  "B" 20 bit syscall/breakpoint function code (OP_*_CODE20)
281  "J" 19 bit wait function code (OP_*_CODE19)
282  "x" accept and ignore register name
283  "z" must be zero register
284  "K" 5 bit Hardware Register (rdhwr instruction) (OP_*_RD)
285  "+A" 5 bit ins/ext/dins/dext/dinsm/dextm position, which becomes
286  LSB (OP_*_SHAMT).
287  Enforces: 0 <= pos < 32.
288  "+B" 5 bit ins/dins size, which becomes MSB (OP_*_INSMSB).
289  Requires that "+A" or "+E" occur first to set position.
290  Enforces: 0 < (pos+size) <= 32.
291  "+C" 5 bit ext/dext size, which becomes MSBD (OP_*_EXTMSBD).
292  Requires that "+A" or "+E" occur first to set position.
293  Enforces: 0 < (pos+size) <= 32.
294  (Also used by "dext" w/ different limits, but limits for
295  that are checked by the M_DEXT macro.)
296  "+E" 5 bit dinsu/dextu position, which becomes LSB-32 (OP_*_SHAMT).
297  Enforces: 32 <= pos < 64.
298  "+F" 5 bit "dinsm/dinsu" size, which becomes MSB-32 (OP_*_INSMSB).
299  Requires that "+A" or "+E" occur first to set position.
300  Enforces: 32 < (pos+size) <= 64.
301  "+G" 5 bit "dextm" size, which becomes MSBD-32 (OP_*_EXTMSBD).
302  Requires that "+A" or "+E" occur first to set position.
303  Enforces: 32 < (pos+size) <= 64.
304  "+H" 5 bit "dextu" size, which becomes MSBD (OP_*_EXTMSBD).
305  Requires that "+A" or "+E" occur first to set position.
306  Enforces: 32 < (pos+size) <= 64.
307 
308  Floating point instructions:
309  "D" 5 bit destination register (OP_*_FD)
310  "M" 3 bit compare condition code (OP_*_CCC) (only used for mips4 and up)
311  "N" 3 bit branch condition code (OP_*_BCC) (only used for mips4 and up)
312  "S" 5 bit fs source 1 register (OP_*_FS)
313  "T" 5 bit ft source 2 register (OP_*_FT)
314  "R" 5 bit fr source 3 register (OP_*_FR)
315  "V" 5 bit same register used as floating source and destination (OP_*_FS)
316  "W" 5 bit same register used as floating target and destination (OP_*_FT)
317 
318  Coprocessor instructions:
319  "E" 5 bit target register (OP_*_RT)
320  "G" 5 bit destination register (OP_*_RD)
321  "H" 3 bit sel field for (d)mtc* and (d)mfc* (OP_*_SEL)
322  "P" 5 bit performance-monitor register (OP_*_PERFREG)
323  "e" 5 bit vector register byte specifier (OP_*_VECBYTE)
324  "%" 3 bit immediate vr5400 vector alignment operand (OP_*_VECALIGN)
325  see also "k" above
326  "+D" Combined destination register ("G") and sel ("H") for CP0 ops,
327  for pretty-printing in disassembly only.
328 
329  Macro instructions:
330  "A" General 32 bit expression
331  "I" 32 bit immediate (value placed in imm_expr).
332  "+I" 32 bit immediate (value placed in imm2_expr).
333  "F" 64 bit floating point constant in .rdata
334  "L" 64 bit floating point constant in .lit8
335  "f" 32 bit floating point constant
336  "l" 32 bit floating point constant in .lit4
337 
338  MDMX instruction operands (note that while these use the FP register
339  fields, they accept both $fN and $vN names for the registers):
340  "O" MDMX alignment offset (OP_*_ALN)
341  "Q" MDMX vector/scalar/immediate source (OP_*_VSEL and OP_*_FT)
342  "X" MDMX destination register (OP_*_FD)
343  "Y" MDMX source register (OP_*_FS)
344  "Z" MDMX source register (OP_*_FT)
345 
346  DSP ASE usage:
347  "2" 2 bit unsigned immediate for byte align (OP_*_BP)
348  "3" 3 bit unsigned immediate (OP_*_SA3)
349  "4" 4 bit unsigned immediate (OP_*_SA4)
350  "5" 8 bit unsigned immediate (OP_*_IMM8)
351  "6" 5 bit unsigned immediate (OP_*_RS)
352  "7" 2 bit dsp accumulator register (OP_*_DSPACC)
353  "8" 6 bit unsigned immediate (OP_*_WRDSP)
354  "9" 2 bit dsp accumulator register (OP_*_DSPACC_S)
355  "0" 6 bit signed immediate (OP_*_DSPSFT)
356  ":" 7 bit signed immediate (OP_*_DSPSFT_7)
357  "'" 6 bit unsigned immediate (OP_*_RDDSP)
358  "@" 10 bit signed immediate (OP_*_IMM10)
359 
360  MT ASE usage:
361  "!" 1 bit usermode flag (OP_*_MT_U)
362  "$" 1 bit load high flag (OP_*_MT_H)
363  "*" 2 bit dsp/smartmips accumulator register (OP_*_MTACC_T)
364  "&" 2 bit dsp/smartmips accumulator register (OP_*_MTACC_D)
365  "g" 5 bit coprocessor 1 and 2 destination register (OP_*_RD)
366  "+t" 5 bit coprocessor 0 destination register (OP_*_RT)
367  "+T" 5 bit coprocessor 0 destination register (OP_*_RT) - disassembly only
368 
369  UDI immediates:
370  "+1" UDI immediate bits 6-10
371  "+2" UDI immediate bits 6-15
372  "+3" UDI immediate bits 6-20
373  "+4" UDI immediate bits 6-25
374 
375  Other:
376  "()" parens surrounding optional value
377  "," separates operands
378  "[]" brackets around index for vector-op scalar operand specifier (vr5400)
379  "+" Start of extension sequence.
380 
381  Characters used so far, for quick reference when adding more:
382  "234567890"
383  "%[]<>(),+:'@!$*&"
384  "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
385  "abcdefghijklopqrstuvwxz"
386 
387  Extension character sequences used so far ("+" followed by the
388  following), for quick reference when adding more:
389  "1234"
390  "ABCDEFGHIT"
391  "t"
392 */
393 
394 /* These are the bits which may be set in the pinfo field of an
395  instructions, if it is not equal to INSN_MACRO. */
396 
397 /* Modifies the general purpose register in OP_*_RD. */
398 #define INSN_WRITE_GPR_D 0x00000001
399 /* Modifies the general purpose register in OP_*_RT. */
400 #define INSN_WRITE_GPR_T 0x00000002
401 /* Modifies general purpose register 31. */
402 #define INSN_WRITE_GPR_31 0x00000004
403 /* Modifies the floating point register in OP_*_FD. */
404 #define INSN_WRITE_FPR_D 0x00000008
405 /* Modifies the floating point register in OP_*_FS. */
406 #define INSN_WRITE_FPR_S 0x00000010
407 /* Modifies the floating point register in OP_*_FT. */
408 #define INSN_WRITE_FPR_T 0x00000020
409 /* Reads the general purpose register in OP_*_RS. */
410 #define INSN_READ_GPR_S 0x00000040
411 /* Reads the general purpose register in OP_*_RT. */
412 #define INSN_READ_GPR_T 0x00000080
413 /* Reads the floating point register in OP_*_FS. */
414 #define INSN_READ_FPR_S 0x00000100
415 /* Reads the floating point register in OP_*_FT. */
416 #define INSN_READ_FPR_T 0x00000200
417 /* Reads the floating point register in OP_*_FR. */
418 #define INSN_READ_FPR_R 0x00000400
419 /* Modifies coprocessor condition code. */
420 #define INSN_WRITE_COND_CODE 0x00000800
421 /* Reads coprocessor condition code. */
422 #define INSN_READ_COND_CODE 0x00001000
423 /* TLB operation. */
424 #define INSN_TLB 0x00002000
425 /* Reads coprocessor register other than floating point register. */
426 #define INSN_COP 0x00004000
427 /* Instruction loads value from memory, requiring delay. */
428 #define INSN_LOAD_MEMORY_DELAY 0x00008000
429 /* Instruction loads value from coprocessor, requiring delay. */
430 #define INSN_LOAD_COPROC_DELAY 0x00010000
431 /* Instruction has unconditional branch delay slot. */
432 #define INSN_UNCOND_BRANCH_DELAY 0x00020000
433 /* Instruction has conditional branch delay slot. */
434 #define INSN_COND_BRANCH_DELAY 0x00040000
435 /* Conditional branch likely: if branch not taken, insn nullified. */
436 #define INSN_COND_BRANCH_LIKELY 0x00080000
437 /* Moves to coprocessor register, requiring delay. */
438 #define INSN_COPROC_MOVE_DELAY 0x00100000
439 /* Loads coprocessor register from memory, requiring delay. */
440 #define INSN_COPROC_MEMORY_DELAY 0x00200000
441 /* Reads the HI register. */
442 #define INSN_READ_HI 0x00400000
443 /* Reads the LO register. */
444 #define INSN_READ_LO 0x00800000
445 /* Modifies the HI register. */
446 #define INSN_WRITE_HI 0x01000000
447 /* Modifies the LO register. */
448 #define INSN_WRITE_LO 0x02000000
449 /* Takes a trap (easier to keep out of delay slot). */
450 #define INSN_TRAP 0x04000000
451 /* Instruction stores value into memory. */
452 #define INSN_STORE_MEMORY 0x08000000
453 /* Instruction uses single precision floating point. */
454 #define FP_S 0x10000000
455 /* Instruction uses double precision floating point. */
456 #define FP_D 0x20000000
457 /* Instruction is part of the tx39's integer multiply family. */
458 #define INSN_MULT 0x40000000
459 /* Instruction synchronize shared memory. */
460 #define INSN_SYNC 0x80000000
461 
462 /* These are the bits which may be set in the pinfo2 field of an
463  instruction. */
464 
465 /* Instruction is a simple alias (I.E. "move" for daddu/addu/or) */
466 #define INSN2_ALIAS 0x00000001
467 /* Instruction reads MDMX accumulator. */
468 #define INSN2_READ_MDMX_ACC 0x00000002
469 /* Instruction writes MDMX accumulator. */
470 #define INSN2_WRITE_MDMX_ACC 0x00000004
471 
472 /* Instruction is actually a macro. It should be ignored by the
473  disassembler, and requires special treatment by the assembler. */
474 #define INSN_MACRO 0xffffffff
475 
476 /* Masks used to mark instructions to indicate which MIPS ISA level
477  they were introduced in. INSN_ISA_MASK masks an enumeration that
478  specifies the base ISA level(s). The remainder of a 32-bit
479  word constructed using these macros is a bitmask of the remaining
480  INSN_* values below. */
481 
482 #define INSN_ISA_MASK 0x0000000ful
483 
484 /* We cannot start at zero due to ISA_UNKNOWN below. */
485 #define INSN_ISA1 1
486 #define INSN_ISA2 2
487 #define INSN_ISA3 3
488 #define INSN_ISA4 4
489 #define INSN_ISA5 5
490 #define INSN_ISA32 6
491 #define INSN_ISA32R2 7
492 #define INSN_ISA64 8
493 #define INSN_ISA64R2 9
494 /* Below this point the INSN_* values correspond to combinations of ISAs.
495  They are only for use in the opcodes table to indicate membership of
496  a combination of ISAs that cannot be expressed using the usual inclusion
497  ordering on the above INSN_* values. */
498 #define INSN_ISA3_32 10
499 #define INSN_ISA3_32R2 11
500 #define INSN_ISA4_32 12
501 #define INSN_ISA4_32R2 13
502 #define INSN_ISA5_32R2 14
503 
504 /* Given INSN_ISA* values X and Y, where X ranges over INSN_ISA1 through
505  INSN_ISA5_32R2 and Y ranges over INSN_ISA1 through INSN_ISA64R2,
506  this table describes whether at least one of the ISAs described by X
507  is/are implemented by ISA Y. (Think of Y as the ISA level supported by
508  a particular core and X as the ISA level(s) at which a certain instruction
509  is defined.) The ISA(s) described by X is/are implemented by Y iff
510  (mips_isa_table[(Y & INSN_ISA_MASK) - 1] >> ((X & INSN_ISA_MASK) - 1)) & 1
511  is non-zero. */
512 static const unsigned int mips_isa_table[] = { 0x0001, 0x0003, 0x0607, 0x1e0f, 0x3e1f, 0x0a23, 0x3e63, 0x3ebf, 0x3fff };
513 
514 /* Masks used for Chip specific instructions. */
515 #define INSN_CHIP_MASK 0xc3ff0800
516 
517 /* Cavium Networks Octeon instructions. */
518 #define INSN_OCTEON 0x00000800
519 
520 /* Masks used for MIPS-defined ASEs. */
521 #define INSN_ASE_MASK 0x3c00f000
522 
523 /* DSP ASE */
524 #define INSN_DSP 0x00001000
525 #define INSN_DSP64 0x00002000
526 /* MIPS 16 ASE */
527 #define INSN_MIPS16 0x00004000
528 /* MIPS-3D ASE */
529 #define INSN_MIPS3D 0x00008000
530 
531 /* MIPS R4650 instruction. */
532 #define INSN_4650 0x00010000
533 /* LSI R4010 instruction. */
534 #define INSN_4010 0x00020000
535 /* NEC VR4100 instruction. */
536 #define INSN_4100 0x00040000
537 /* Toshiba R3900 instruction. */
538 #define INSN_3900 0x00080000
539 /* MIPS R10000 instruction. */
540 #define INSN_10000 0x00100000
541 /* Broadcom SB-1 instruction. */
542 #define INSN_SB1 0x00200000
543 /* NEC VR4111/VR4181 instruction. */
544 #define INSN_4111 0x00400000
545 /* NEC VR4120 instruction. */
546 #define INSN_4120 0x00800000
547 /* NEC VR5400 instruction. */
548 #define INSN_5400 0x01000000
549 /* NEC VR5500 instruction. */
550 #define INSN_5500 0x02000000
551 
552 /* MDMX ASE */
553 #define INSN_MDMX 0x04000000
554 /* MT ASE */
555 #define INSN_MT 0x08000000
556 /* SmartMIPS ASE */
557 #define INSN_SMARTMIPS 0x10000000
558 /* DSP R2 ASE */
559 #define INSN_DSPR2 0x20000000
560 /* ST Microelectronics Loongson 2E. */
561 #define INSN_LOONGSON_2E 0x40000000
562 /* ST Microelectronics Loongson 2F. */
563 #define INSN_LOONGSON_2F 0x80000000
564 
565 /* MIPS ISA defines, use instead of hardcoding ISA level. */
566 
567 #define ISA_UNKNOWN 0 /* Gas internal use. */
568 #define ISA_MIPS1 INSN_ISA1
569 #define ISA_MIPS2 INSN_ISA2
570 #define ISA_MIPS3 INSN_ISA3
571 #define ISA_MIPS4 INSN_ISA4
572 #define ISA_MIPS5 INSN_ISA5
573 
574 #define ISA_MIPS32 INSN_ISA32
575 #define ISA_MIPS64 INSN_ISA64
576 
577 #define ISA_MIPS32R2 INSN_ISA32R2
578 #define ISA_MIPS64R2 INSN_ISA64R2
579 
580 /* CPU defines, use instead of hardcoding processor number. Keep this
581  in sync with bfd/archures.c in order for machine selection to work. */
582 #define CPU_UNKNOWN 0 /* Gas internal use. */
583 #define CPU_R3000 3000
584 #define CPU_R3900 3900
585 #define CPU_R4000 4000
586 #define CPU_R4010 4010
587 #define CPU_VR4100 4100
588 #define CPU_R4111 4111
589 #define CPU_VR4120 4120
590 #define CPU_R4300 4300
591 #define CPU_R4400 4400
592 #define CPU_R4600 4600
593 #define CPU_R4650 4650
594 #define CPU_R5000 5000
595 #define CPU_VR5400 5400
596 #define CPU_VR5500 5500
597 #define CPU_R6000 6000
598 #define CPU_RM7000 7000
599 #define CPU_R8000 8000
600 #define CPU_RM9000 9000
601 #define CPU_R10000 10000
602 #define CPU_R12000 12000
603 #define CPU_MIPS16 16
604 #define CPU_MIPS32 32
605 #define CPU_MIPS32R2 33
606 #define CPU_MIPS5 5
607 #define CPU_MIPS64 64
608 #define CPU_MIPS64R2 65
609 #define CPU_SB1 12310201 /* octal 'SB', 01. */
610 #define CPU_LOONGSON_2E 3001
611 #define CPU_LOONGSON_2F 3002
612 #define CPU_OCTEON 6501
613 
614 /* Test for membership in an ISA including chip specific ISAs. INSN
615  is pointer to an element of the opcode table; ISA is the specified
616  ISA/ASE bitmask to test against; and CPU is the CPU specific ISA to
617  test, or zero if no CPU specific ISA test is desired. */
618 
619 #define OPCODE_IS_MEMBER(insn, isa, cpu) \
620  (((isa & INSN_ISA_MASK) != 0 && ((insn)->membership & INSN_ISA_MASK) != 0 && ((mips_isa_table[(isa & INSN_ISA_MASK) - 1] >> (((insn)->membership & INSN_ISA_MASK) - 1)) & 1) != 0) || ((isa & ~INSN_ISA_MASK) & ((insn)->membership & ~INSN_ISA_MASK)) != 0 || (cpu == CPU_R4650 && ((insn)->membership & INSN_4650) != 0) || (cpu == CPU_RM7000 && ((insn)->membership & INSN_4650) != 0) || (cpu == CPU_RM9000 && ((insn)->membership & INSN_4650) != 0) || (cpu == CPU_R4010 && ((insn)->membership & INSN_4010) != 0) || (cpu == CPU_VR4100 && ((insn)->membership & INSN_4100) != 0) || (cpu == CPU_R3900 && ((insn)->membership & INSN_3900) != 0) || ((cpu == CPU_R10000 || cpu == CPU_R12000) && ((insn)->membership & INSN_10000) != 0) || (cpu == CPU_SB1 && ((insn)->membership & INSN_SB1) != 0) || (cpu == CPU_R4111 && ((insn)->membership & INSN_4111) != 0) || (cpu == CPU_VR4120 && ((insn)->membership & INSN_4120) != 0) || (cpu == CPU_VR5400 && ((insn)->membership & INSN_5400) != 0) || (cpu == CPU_VR5500 && ((insn)->membership & INSN_5500) != 0) || (cpu == CPU_LOONGSON_2E && ((insn)->membership & INSN_LOONGSON_2E) != 0) || (cpu == CPU_LOONGSON_2F && ((insn)->membership & INSN_LOONGSON_2F) != 0) || (cpu == CPU_OCTEON && ((insn)->membership & INSN_OCTEON) != 0) || 0) /* Please keep this term for easier source merging. */
621 
622 /* This is a list of macro expanded instructions.
623 
624  _I appended means immediate
625  _A appended means address
626  _AB appended means address with base register
627  _D appended means 64 bit floating point constant
628  _S appended means 32 bit floating point constant. */
629 
630 enum {
851  M_COP3,
853 };
854 
855 /* The order of overloaded instructions matters. Label arguments and
856  register arguments look the same. Instructions that can have either
857  for arguments must apear in the correct order in this table for the
858  assembler to pick the right one. In other words, entries with
859  immediate operands must apear after the same instruction with
860  registers.
861 
862  Many instructions are short hand for other instructions (i.e., The
863  jal <register> instruction is short for jalr <register>). */
864 
865 extern const struct mips_opcode mips_builtin_opcodes[];
866 extern const int bfd_mips_num_builtin_opcodes;
867 extern struct mips_opcode *mips_opcodes;
869 #define NUMOPCODES bfd_mips_num_opcodes
870 
871 /* The rest of this file adds definitions for the mips16 TinyRISC
872  processor. */
873 
874 /* These are the bitmasks and shift counts used for the different
875  fields in the instruction formats. Other than OP, no masks are
876  provided for the fixed portions of an instruction, since they are
877  not needed.
878 
879  The I format uses IMM11.
880 
881  The RI format uses RX and IMM8.
882 
883  The RR format uses RX, and RY.
884 
885  The RRI format uses RX, RY, and IMM5.
886 
887  The RRR format uses RX, RY, and RZ.
888 
889  The RRI_A format uses RX, RY, and IMM4.
890 
891  The SHIFT format uses RX, RY, and SHAMT.
892 
893  The I8 format uses IMM8.
894 
895  The I8_MOVR32 format uses RY and REGR32.
896 
897  The IR_MOV32R format uses REG32R and MOV32Z.
898 
899  The I64 format uses IMM8.
900 
901  The RI64 format uses RY and IMM5.
902  */
903 
904 #define MIPS16OP_MASK_OP 0x1f
905 #define MIPS16OP_SH_OP 11
906 #define MIPS16OP_MASK_IMM11 0x7ff
907 #define MIPS16OP_SH_IMM11 0
908 #define MIPS16OP_MASK_RX 0x7
909 #define MIPS16OP_SH_RX 8
910 #define MIPS16OP_MASK_IMM8 0xff
911 #define MIPS16OP_SH_IMM8 0
912 #define MIPS16OP_MASK_RY 0x7
913 #define MIPS16OP_SH_RY 5
914 #define MIPS16OP_MASK_IMM5 0x1f
915 #define MIPS16OP_SH_IMM5 0
916 #define MIPS16OP_MASK_RZ 0x7
917 #define MIPS16OP_SH_RZ 2
918 #define MIPS16OP_MASK_IMM4 0xf
919 #define MIPS16OP_SH_IMM4 0
920 #define MIPS16OP_MASK_REGR32 0x1f
921 #define MIPS16OP_SH_REGR32 0
922 #define MIPS16OP_MASK_REG32R 0x1f
923 #define MIPS16OP_SH_REG32R 3
924 #define MIPS16OP_EXTRACT_REG32R(i) ((((i) >> 5) & 7) | ((i)&0x18))
925 #define MIPS16OP_MASK_MOVE32Z 0x7
926 #define MIPS16OP_SH_MOVE32Z 0
927 #define MIPS16OP_MASK_IMM6 0x3f
928 #define MIPS16OP_SH_IMM6 5
929 
930 /* These are the characters which may appears in the args field of an
931  instruction. They appear in the order in which the fields appear
932  when the instruction is used. Commas and parentheses in the args
933  string are ignored when assembling, and written into the output
934  when disassembling.
935 
936  "y" 3 bit register (MIPS16OP_*_RY)
937  "x" 3 bit register (MIPS16OP_*_RX)
938  "z" 3 bit register (MIPS16OP_*_RZ)
939  "Z" 3 bit register (MIPS16OP_*_MOVE32Z)
940  "v" 3 bit same register as source and destination (MIPS16OP_*_RX)
941  "w" 3 bit same register as source and destination (MIPS16OP_*_RY)
942  "0" zero register ($0)
943  "S" stack pointer ($sp or $29)
944  "P" program counter
945  "R" return address register ($ra or $31)
946  "X" 5 bit MIPS register (MIPS16OP_*_REGR32)
947  "Y" 5 bit MIPS register (MIPS16OP_*_REG32R)
948  "6" 6 bit unsigned break code (MIPS16OP_*_IMM6)
949  "a" 26 bit jump address
950  "e" 11 bit extension value
951  "l" register list for entry instruction
952  "L" register list for exit instruction
953 
954  The remaining codes may be extended. Except as otherwise noted,
955  the full extended operand is a 16 bit signed value.
956  "<" 3 bit unsigned shift count * 0 (MIPS16OP_*_RZ) (full 5 bit unsigned)
957  ">" 3 bit unsigned shift count * 0 (MIPS16OP_*_RX) (full 5 bit unsigned)
958  "[" 3 bit unsigned shift count * 0 (MIPS16OP_*_RZ) (full 6 bit unsigned)
959  "]" 3 bit unsigned shift count * 0 (MIPS16OP_*_RX) (full 6 bit unsigned)
960  "4" 4 bit signed immediate * 0 (MIPS16OP_*_IMM4) (full 15 bit signed)
961  "5" 5 bit unsigned immediate * 0 (MIPS16OP_*_IMM5)
962  "H" 5 bit unsigned immediate * 2 (MIPS16OP_*_IMM5)
963  "W" 5 bit unsigned immediate * 4 (MIPS16OP_*_IMM5)
964  "D" 5 bit unsigned immediate * 8 (MIPS16OP_*_IMM5)
965  "j" 5 bit signed immediate * 0 (MIPS16OP_*_IMM5)
966  "8" 8 bit unsigned immediate * 0 (MIPS16OP_*_IMM8)
967  "V" 8 bit unsigned immediate * 4 (MIPS16OP_*_IMM8)
968  "C" 8 bit unsigned immediate * 8 (MIPS16OP_*_IMM8)
969  "U" 8 bit unsigned immediate * 0 (MIPS16OP_*_IMM8) (full 16 bit unsigned)
970  "k" 8 bit signed immediate * 0 (MIPS16OP_*_IMM8)
971  "K" 8 bit signed immediate * 8 (MIPS16OP_*_IMM8)
972  "p" 8 bit conditional branch address (MIPS16OP_*_IMM8)
973  "q" 11 bit branch address (MIPS16OP_*_IMM11)
974  "A" 8 bit PC relative address * 4 (MIPS16OP_*_IMM8)
975  "B" 5 bit PC relative address * 8 (MIPS16OP_*_IMM5)
976  "E" 5 bit PC relative address * 4 (MIPS16OP_*_IMM5)
977  "m" 7 bit register list for save instruction (18 bit extended)
978  "M" 7 bit register list for restore instruction (18 bit extended)
979  */
980 
981 /* Save/restore encoding for the args field when all 4 registers are
982  either saved as arguments or saved/restored as statics. */
983 #define MIPS16_ALL_ARGS 0xe
984 #define MIPS16_ALL_STATICS 0xb
985 
986 /* For the mips16, we use the same opcode table format and a few of
987  the same flags. However, most of the flags are different. */
988 
989 /* Modifies the register in MIPS16OP_*_RX. */
990 #define MIPS16_INSN_WRITE_X 0x00000001
991 /* Modifies the register in MIPS16OP_*_RY. */
992 #define MIPS16_INSN_WRITE_Y 0x00000002
993 /* Modifies the register in MIPS16OP_*_RZ. */
994 #define MIPS16_INSN_WRITE_Z 0x00000004
995 /* Modifies the T ($24) register. */
996 #define MIPS16_INSN_WRITE_T 0x00000008
997 /* Modifies the SP ($29) register. */
998 #define MIPS16_INSN_WRITE_SP 0x00000010
999 /* Modifies the RA ($31) register. */
1000 #define MIPS16_INSN_WRITE_31 0x00000020
1001 /* Modifies the general purpose register in MIPS16OP_*_REG32R. */
1002 #define MIPS16_INSN_WRITE_GPR_Y 0x00000040
1003 /* Reads the register in MIPS16OP_*_RX. */
1004 #define MIPS16_INSN_READ_X 0x00000080
1005 /* Reads the register in MIPS16OP_*_RY. */
1006 #define MIPS16_INSN_READ_Y 0x00000100
1007 /* Reads the register in MIPS16OP_*_MOVE32Z. */
1008 #define MIPS16_INSN_READ_Z 0x00000200
1009 /* Reads the T ($24) register. */
1010 #define MIPS16_INSN_READ_T 0x00000400
1011 /* Reads the SP ($29) register. */
1012 #define MIPS16_INSN_READ_SP 0x00000800
1013 /* Reads the RA ($31) register. */
1014 #define MIPS16_INSN_READ_31 0x00001000
1015 /* Reads the program counter. */
1016 #define MIPS16_INSN_READ_PC 0x00002000
1017 /* Reads the general purpose register in MIPS16OP_*_REGR32. */
1018 #define MIPS16_INSN_READ_GPR_X 0x00004000
1019 /* Is a branch insn. */
1020 #define MIPS16_INSN_BRANCH 0x00010000
1021 
1022 /* The following flags have the same value for the mips16 opcode
1023  table:
1024  INSN_UNCOND_BRANCH_DELAY
1025  INSN_COND_BRANCH_DELAY
1026  INSN_COND_BRANCH_LIKELY (never used)
1027  INSN_READ_HI
1028  INSN_READ_LO
1029  INSN_WRITE_HI
1030  INSN_WRITE_LO
1031  INSN_TRAP
1032  INSN_ISA3
1033  */
1034 
1035 extern const struct mips_opcode mips16_opcodes[];
1036 extern const int bfd_mips16_num_opcodes;
1037 
1038 #endif /* _MIPS_H_ */
const struct mips_opcode mips_builtin_opcodes[]
Definition: mips-opc.c:180
@ M_BGTL_I
Definition: mips.h:649
@ M_DREMU_3I
Definition: mips.h:699
@ M_DSUBU_I_2
Definition: mips.h:702
@ M_MULO
Definition: mips.h:753
@ M_LD_OB
Definition: mips.h:716
@ M_LWC3_AB
Definition: mips.h:744
@ M_BNE
Definition: mips.h:670
@ M_BGTU
Definition: mips.h:650
@ M_DMULO_I
Definition: mips.h:693
@ M_REM_3I
Definition: mips.h:760
@ M_SWL_AB
Definition: mips.h:818
@ M_LH_AB
Definition: mips.h:724
@ M_BGE_I
Definition: mips.h:640
@ M_LWL_AB
Definition: mips.h:746
@ M_SLE_I
Definition: mips.h:796
@ M_USW_A
Definition: mips.h:843
@ M_BGTL
Definition: mips.h:647
@ M_LBU_AB
Definition: mips.h:713
@ M_DMULOU_I
Definition: mips.h:695
@ M_LHU_AB
Definition: mips.h:726
@ M_S_DAB
Definition: mips.h:773
@ M_DIVU_3
Definition: mips.h:685
@ M_LB_AB
Definition: mips.h:711
@ M_SWC0_A
Definition: mips.h:809
@ M_DMULOU
Definition: mips.h:694
@ M_SEQ
Definition: mips.h:785
@ M_SCD_AB
Definition: mips.h:776
@ M_L_DOB
Definition: mips.h:707
@ M_LWU_AB
Definition: mips.h:749
@ M_DDIV_3
Definition: mips.h:677
@ M_BLTL_I
Definition: mips.h:665
@ M_MULOU_I
Definition: mips.h:756
@ M_BLT
Definition: mips.h:662
@ M_ABS
Definition: mips.h:630
@ M_LWC3_A
Definition: mips.h:743
@ M_SB_A
Definition: mips.h:803
@ M_USW
Definition: mips.h:842
@ M_COP0
Definition: mips.h:847
@ M_USD
Definition: mips.h:844
@ M_SUBU_I
Definition: mips.h:822
@ M_BEQ
Definition: mips.h:635
@ M_LWC1_A
Definition: mips.h:739
@ M_DMULO
Definition: mips.h:692
@ M_NOR_I
Definition: mips.h:757
@ M_ULHU_A
Definition: mips.h:837
@ M_LWC1_AB
Definition: mips.h:740
@ M_LI_S
Definition: mips.h:730
@ M_S_DOB
Definition: mips.h:772
@ M_BGEU
Definition: mips.h:642
@ M_LDC2_AB
Definition: mips.h:719
@ M_TGE_I
Definition: mips.h:825
@ M_LDL_AB
Definition: mips.h:721
@ M_LHU_A
Definition: mips.h:725
@ M_SLE
Definition: mips.h:795
@ M_SLEU_I
Definition: mips.h:798
@ M_ULH_A
Definition: mips.h:835
@ M_TLTU_I
Definition: mips.h:828
@ M_LWC0_A
Definition: mips.h:737
@ M_LI_D
Definition: mips.h:728
@ M_DROL
Definition: mips.h:763
@ M_SLTU_I
Definition: mips.h:800
@ M_DROR_I
Definition: mips.h:769
@ M_BGEUL
Definition: mips.h:643
@ M_DEXT
Definition: mips.h:681
@ M_DLCA_AB
Definition: mips.h:688
@ M_BLTUL
Definition: mips.h:667
@ M_J_A
Definition: mips.h:703
@ M_S_S
Definition: mips.h:774
@ M_BLT_I
Definition: mips.h:664
@ M_LI_DD
Definition: mips.h:729
@ M_LWC2_AB
Definition: mips.h:742
@ M_LDR_AB
Definition: mips.h:722
@ M_DROR
Definition: mips.h:767
@ M_REMU_3
Definition: mips.h:761
@ M_BEQ_I
Definition: mips.h:636
@ M_BGEUL_I
Definition: mips.h:645
@ M_USH
Definition: mips.h:840
@ M_CACHE_AB
Definition: mips.h:673
@ M_LL_AB
Definition: mips.h:732
@ M_DLI
Definition: mips.h:689
@ M_ULW
Definition: mips.h:838
@ M_SWC1_AB
Definition: mips.h:812
@ M_LWL_A
Definition: mips.h:745
@ M_SGE
Definition: mips.h:787
@ M_BLEU_I
Definition: mips.h:660
@ M_ULH
Definition: mips.h:834
@ M_LCA_AB
Definition: mips.h:714
@ M_SWC3_AB
Definition: mips.h:816
@ M_DREMU_3
Definition: mips.h:698
@ M_BGEL
Definition: mips.h:639
@ M_BLTL
Definition: mips.h:663
@ M_LD_AB
Definition: mips.h:717
@ M_DIV_3
Definition: mips.h:683
@ M_BGE
Definition: mips.h:638
@ M_DDIV_3I
Definition: mips.h:678
@ M_JAL_A
Definition: mips.h:706
@ M_MUL
Definition: mips.h:751
@ M_DSUBU_I
Definition: mips.h:701
@ M_DREM_3I
Definition: mips.h:697
@ M_MUL_I
Definition: mips.h:752
@ M_SW_AB
Definition: mips.h:808
@ M_SLEU
Definition: mips.h:797
@ M_SGE_I
Definition: mips.h:788
@ M_DIV_3I
Definition: mips.h:684
@ M_LH_A
Definition: mips.h:723
@ M_USH_A
Definition: mips.h:841
@ M_BLEUL_I
Definition: mips.h:661
@ M_OR_I
Definition: mips.h:758
@ M_DREM_3
Definition: mips.h:696
@ M_ROR_I
Definition: mips.h:770
@ M_LWC2_A
Definition: mips.h:741
@ M_SH_AB
Definition: mips.h:806
@ M_SD_OB
Definition: mips.h:778
@ M_ROL
Definition: mips.h:764
@ M_BNEL_I
Definition: mips.h:672
@ M_BNE_I
Definition: mips.h:671
@ M_SLT_I
Definition: mips.h:799
@ M_TRUNCWS
Definition: mips.h:831
@ M_SH_A
Definition: mips.h:805
@ M_SWC3_A
Definition: mips.h:815
@ M_DMUL_I
Definition: mips.h:691
@ M_LWC0_AB
Definition: mips.h:738
@ M_LDC3_AB
Definition: mips.h:720
@ M_BLE_I
Definition: mips.h:656
@ M_TRUNCWD
Definition: mips.h:830
@ M_DADD_I
Definition: mips.h:675
@ M_SWC2_A
Definition: mips.h:813
@ M_SGEU_I
Definition: mips.h:790
@ M_DABS
Definition: mips.h:674
@ M_SUB_I
Definition: mips.h:821
@ M_SDC2_AB
Definition: mips.h:781
@ M_MULO_I
Definition: mips.h:754
@ M_DROL_I
Definition: mips.h:765
@ M_ULD
Definition: mips.h:832
@ M_DDIVU_3
Definition: mips.h:679
@ M_DDIVU_3I
Definition: mips.h:680
@ M_SWR_AB
Definition: mips.h:820
@ M_JAL_1
Definition: mips.h:704
@ M_ADDU_I
Definition: mips.h:632
@ M_REMU_3I
Definition: mips.h:762
@ M_AND_I
Definition: mips.h:633
@ M_BLTU
Definition: mips.h:666
@ M_BGTUL
Definition: mips.h:651
@ M_DIVU_3I
Definition: mips.h:686
@ M_SDR_AB
Definition: mips.h:784
@ M_SGTU
Definition: mips.h:793
@ M_COP1
Definition: mips.h:848
@ M_COP3
Definition: mips.h:850
@ M_SDC3_AB
Definition: mips.h:782
@ M_TGEU_I
Definition: mips.h:826
@ M_SC_AB
Definition: mips.h:775
@ M_BLEU
Definition: mips.h:658
@ M_SDC1_AB
Definition: mips.h:780
@ M_ULW_A
Definition: mips.h:839
@ M_LW_AB
Definition: mips.h:736
@ M_SD_A
Definition: mips.h:777
@ M_S_DA
Definition: mips.h:771
@ M_LDC1_AB
Definition: mips.h:718
@ M_DADDU_I
Definition: mips.h:676
@ M_TEQ_I
Definition: mips.h:824
@ M_ADD_I
Definition: mips.h:631
@ M_SWR_A
Definition: mips.h:819
@ M_SWC1_A
Definition: mips.h:811
@ M_ROL_I
Definition: mips.h:766
@ M_DLA_AB
Definition: mips.h:687
@ M_TLT_I
Definition: mips.h:827
@ M_MOVE
Definition: mips.h:750
@ M_LB_A
Definition: mips.h:710
@ M_BLEL
Definition: mips.h:655
@ M_JAL_2
Definition: mips.h:705
@ M_LW_A
Definition: mips.h:735
@ M_USD_A
Definition: mips.h:845
@ M_XOR_I
Definition: mips.h:846
@ M_SD_AB
Definition: mips.h:779
@ M_REM_3
Definition: mips.h:759
@ M_NUM_MACROS
Definition: mips.h:851
@ M_ULD_A
Definition: mips.h:833
@ M_BGT_I
Definition: mips.h:648
@ M_DMUL
Definition: mips.h:690
@ M_ROR
Definition: mips.h:768
@ M_BLEL_I
Definition: mips.h:657
@ M_LWR_A
Definition: mips.h:747
@ M_SB_AB
Definition: mips.h:804
@ M_BALIGN
Definition: mips.h:634
@ M_SDL_AB
Definition: mips.h:783
@ M_SGEU
Definition: mips.h:789
@ M_COP2
Definition: mips.h:849
@ M_SWC0_AB
Definition: mips.h:810
@ M_LWR_AB
Definition: mips.h:748
@ M_LBU_A
Definition: mips.h:712
@ M_BEQL_I
Definition: mips.h:637
@ M_LS_A
Definition: mips.h:734
@ M_BLE
Definition: mips.h:654
@ M_LD_A
Definition: mips.h:715
@ M_SGTU_I
Definition: mips.h:794
@ M_BGTU_I
Definition: mips.h:652
@ M_BLEUL
Definition: mips.h:659
@ M_LLD_AB
Definition: mips.h:733
@ M_LA_AB
Definition: mips.h:709
@ M_SEQ_I
Definition: mips.h:786
@ M_TNE_I
Definition: mips.h:829
@ M_BLTU_I
Definition: mips.h:668
@ M_SW_A
Definition: mips.h:807
@ M_SNE
Definition: mips.h:801
@ M_DSUB_I
Definition: mips.h:700
@ M_SWL_A
Definition: mips.h:817
@ M_SGT
Definition: mips.h:791
@ M_DINS
Definition: mips.h:682
@ M_SNE_I
Definition: mips.h:802
@ M_BGEU_I
Definition: mips.h:644
@ M_LI_SS
Definition: mips.h:731
@ M_BGT
Definition: mips.h:646
@ M_BGTUL_I
Definition: mips.h:653
@ M_SGT_I
Definition: mips.h:792
@ M_BLTUL_I
Definition: mips.h:669
@ M_BGEL_I
Definition: mips.h:641
@ M_MULOU
Definition: mips.h:755
@ M_ULHU
Definition: mips.h:836
@ M_LI
Definition: mips.h:727
@ M_SWC2_AB
Definition: mips.h:814
@ M_L_DAB
Definition: mips.h:708
@ M_SUBU_I_2
Definition: mips.h:823
struct mips_opcode * mips_opcodes
Definition: mips-opc.c:2015
const int bfd_mips16_num_opcodes
Definition: mips16-opc.c:243
const struct mips_opcode mips16_opcodes[]
Definition: mips16-opc.c:67
static const unsigned int mips_isa_table[]
Definition: mips.h:511
int bfd_mips_num_opcodes
Definition: mips-opc.c:2017
const int bfd_mips_num_builtin_opcodes
Definition: mips-opc.c:2011
unsigned long mask
Definition: mips.h:236
unsigned long pinfo2
Definition: mips.h:242
const char * args
Definition: mips.h:226
const char * name
Definition: mips.h:224
unsigned long match
Definition: mips.h:230
unsigned long membership
Definition: mips.h:245
unsigned long pinfo
Definition: mips.h:240