Go to the documentation of this file.
208 signed int simmediate : 16;
215 unsigned int uimmediate : 16;
221 unsigned int c_op : 3;
222 unsigned int cache : 2;
223 unsigned int simmediate : 16;
232 unsigned int func : 6;
241 unsigned int func : 6;
247 unsigned int fmt : 4;
251 unsigned int func : 6;
260 unsigned int func : 4;
261 unsigned int fmt : 2;
266 unsigned int code:20;
270 #elif defined(__MIPSEL__)
278 signed int simmediate : 16;
285 unsigned int uimmediate : 16;
292 unsigned int simmediate : 16;
293 unsigned int cache : 2;
294 unsigned int c_op : 3;
300 unsigned int func : 6;
309 unsigned int func : 6;
318 unsigned int func : 6;
322 unsigned int fmt : 4;
328 unsigned int fmt : 2;
329 unsigned int func : 4;
339 unsigned int code:20;
344 #error "MIPS but neither __MIPSEL__ nor __MIPSEB__?"
365 #define MIPSInst(x) x
367 #define I_OPCODE_SFT 26
368 #define MIPSInst_OPCODE(x) (MIPSInst(x) >> I_OPCODE_SFT)
370 #define I_JTARGET_SFT 0
371 #define MIPSInst_JTARGET(x) (MIPSInst(x) & 0x03ffffff)
374 #define MIPSInst_RS(x) ((MIPSInst(x) & 0x03e00000) >> I_RS_SFT)
377 #define MIPSInst_RT(x) ((MIPSInst(x) & 0x001f0000) >> I_RT_SFT)
380 #define MIPSInst_SIMM(x) ((int)((short)(MIPSInst(x) & 0xffff)))
381 #define MIPSInst_UIMM(x) (MIPSInst(x) & 0xffff)
383 #define I_CACHEOP_SFT 18
384 #define MIPSInst_CACHEOP(x) ((MIPSInst(x) & 0x001c0000) >> I_CACHEOP_SFT)
386 #define I_CACHESEL_SFT 16
387 #define MIPSInst_CACHESEL(x) ((MIPSInst(x) & 0x00030000) >> I_CACHESEL_SFT)
390 #define MIPSInst_RD(x) ((MIPSInst(x) & 0x0000f800) >> I_RD_SFT)
393 #define MIPSInst_RE(x) ((MIPSInst(x) & 0x000007c0) >> I_RE_SFT)
396 #define MIPSInst_FUNC(x) (MIPSInst(x) & 0x0000003f)
398 #define I_FFMT_SFT 21
399 #define MIPSInst_FFMT(x) ((MIPSInst(x) & 0x01e00000) >> I_FFMT_SFT)
402 #define MIPSInst_FT(x) ((MIPSInst(x) & 0x001f0000) >> I_FT_SFT)
405 #define MIPSInst_FS(x) ((MIPSInst(x) & 0x0000f800) >> I_FS_SFT)
408 #define MIPSInst_FD(x) ((MIPSInst(x) & 0x000007c0) >> I_FD_SFT)
411 #define MIPSInst_FR(x) ((MIPSInst(x) & 0x03e00000) >> I_FR_SFT)
413 #define I_FMA_FUNC_SFT 2
414 #define MIPSInst_FMA_FUNC(x) ((MIPSInst(x) & 0x0000003c) >> I_FMA_FUNC_SFT)
416 #define I_FMA_FFMT_SFT 0
417 #define MIPSInst_FMA_FFMT(x) (MIPSInst(x) & 0x00000003)