|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object scale.backend.mips.Opcodes
public class Opcodes
This class provides Mips instruction information.
$Id: Opcodes.java,v 1.9 2007-01-04 16:48:47 burrill Exp $
Copyright 2006 by the Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.
MIPS opcodes come in three formats:
Field Summary | |
---|---|
static int |
ABS_D
|
static int |
ABS_S
|
static int |
ADD
|
static int |
ADD_D
|
static int |
ADD_S
|
static int |
ADDI
|
static int |
ADDIU
|
static int |
ADDU
|
static int |
AND
|
static int |
ANDI
|
static int |
BC1F
|
static int |
BC1FL
|
static int |
BC1T
|
static int |
BC1TL
|
static int |
BEQ
|
static int |
BEQL
|
static int |
BGEZ
|
static int |
BGEZAL
|
static int |
BGEZALL
|
static int |
BGEZL
|
static int |
BGTZ
|
static int |
BGTZL
|
static int |
BLEZ
|
static int |
BLEZL
|
static int |
BLTZ
|
static int |
BLTZAL
|
static int |
BLTZALL
|
static int |
BLTZL
|
static int |
BNE
|
static int |
BNEL
|
static int |
BREAK
|
static int |
C_EQ_D
|
static int |
C_EQ_S
|
static int |
C_F_D
|
static int |
C_F_S
|
static int |
C_LE_D
|
static int |
C_LE_S
|
static int |
C_LT_D
|
static int |
C_LT_S
|
static int |
C_NGE_D
|
static int |
C_NGE_S
|
static int |
C_NGL_D
|
static int |
C_NGL_S
|
static int |
C_NGLE_D
|
static int |
C_NGLE_S
|
static int |
C_NGT_D
|
static int |
C_NGT_S
|
static int |
C_OLE_D
|
static int |
C_OLE_S
|
static int |
C_OLT_D
|
static int |
C_OLT_S
|
static int |
C_SEQ_D
|
static int |
C_SEQ_S
|
static int |
C_SF_D
|
static int |
C_SF_S
|
static int |
C_UEQ_D
|
static int |
C_UEQ_S
|
static int |
C_ULE_D
|
static int |
C_ULE_S
|
static int |
C_ULT_D
|
static int |
C_ULT_S
|
static int |
C_UN_D
|
static int |
C_UN_S
|
static int |
CEIL_L_D
|
static int |
CEIL_L_S
|
static int |
CEIL_W_D
|
static int |
CEIL_W_S
|
static int |
CFC1
|
static int |
CTC1
|
static int |
CVT_D_L
|
static int |
CVT_D_S
|
static int |
CVT_D_W
|
static int |
CVT_L_D
|
static int |
CVT_L_S
|
static int |
CVT_S_D
|
static int |
CVT_S_L
|
static int |
CVT_S_W
|
static int |
CVT_W_D
|
static int |
CVT_W_S
|
static int |
DADD
|
static int |
DADDI
|
static int |
DADDIU
|
static int |
DADDU
|
static int |
DDIV
|
static int |
DDIVU
|
static int |
DIV
|
static int |
DIV_D
|
static int |
DIV_S
|
static int |
DIVU
|
static int |
DMFC1
|
static int |
DMTC1
|
static int |
DMULT
|
static int |
DMULTU
|
static int |
DSLL
|
static int |
DSLL32
|
static int |
DSLLV
|
static int |
DSRA
|
static int |
DSRA32
|
static int |
DSRAV
|
static int |
DSRL
|
static int |
DSRL32
|
static int |
DSRLV
|
static int |
DSUB
|
static int |
DSUBU
|
static int |
FLOOR_L_D
|
static int |
FLOOR_L_S
|
static int |
FLOOR_W_D
|
static int |
FLOOR_W_S
|
static int |
J
|
static int |
JAL
|
static int |
JALR
|
static int |
JR
|
static int |
LB
|
static int |
LBU
|
static int |
LD
|
static int |
LDC1
|
static int |
LDL
|
static int |
LDR
|
static int |
LDXC1
|
static int |
LH
|
static int |
LHU
|
static int |
LL
|
static int |
LLD
|
static int |
LUI
|
static int |
LW
|
static int |
LWC1
|
static int |
LWL
|
static int |
LWR
|
static int |
LWU
|
static int |
LWXC1
|
static int |
MADD_D
|
static int |
MADD_S
|
static int |
MFC1
|
static int |
MFHI
|
static int |
MFLO
|
static int |
MOV_D
|
static int |
MOV_S
|
static int |
MOVF
|
static int |
MOVF_D
|
static int |
MOVF_S
|
static int |
MOVN
|
static int |
MOVN_D
|
static int |
MOVN_S
|
static int |
MOVT
|
static int |
MOVT_D
|
static int |
MOVT_S
|
static int |
MOVZ
|
static int |
MOVZ_D
|
static int |
MOVZ_S
|
static int |
MSUB_D
|
static int |
MSUB_S
|
static int |
MTC1
|
static int |
MTHI
|
static int |
MTLO
|
static int |
MUL_D
|
static int |
MUL_S
|
static int |
MULT
|
static int |
MULTU
|
static int |
NEG_D
|
static int |
NEG_S
|
static int |
NMADD_D
|
static int |
NMADD_S
|
static int |
NMSUB_D
|
static int |
NMSUB_S
|
static int |
NOP
NOP is SLL $0, $0, $0 |
static int |
NOR
|
static int |
OR
|
static int |
ORI
|
static int |
PREF
|
static int |
PREFX
|
static int |
RECIP_D
|
static int |
RECIP_S
|
static int |
ROUND_L_D
|
static int |
ROUND_L_S
|
static int |
ROUND_W_D
|
static int |
ROUND_W_S
|
static int |
RSQRT_D
|
static int |
RSQRT_S
|
static int |
SB
|
static int |
SC
|
static int |
SCD
|
static int |
SD
|
static int |
SDC1
|
static int |
SDL
|
static int |
SDR
|
static int |
SDXC1
|
static int |
SH
|
static int |
SLL
|
static int |
SLLV
|
static int |
SLT
|
static int |
SLTI
|
static int |
SLTIU
|
static int |
SLTU
|
static int |
SQRT_D
|
static int |
SQRT_S
|
static int |
SRA
|
static int |
SRAV
|
static int |
SRL
|
static int |
SRLV
|
static int |
SUB
|
static int |
SUB_D
|
static int |
SUB_S
|
static int |
SUBU
|
static int |
SW
|
static int |
SWC1
|
static int |
SWL
|
static int |
SWR
|
static int |
SWXC1
|
static int |
SYNC
|
static int |
SYSCALL
|
static int |
TEQ
|
static int |
TEQI
|
static int |
TGE
|
static int |
TGEI
|
static int |
TGEIU
|
static int |
TGEU
|
static int |
TLT
|
static int |
TLTI
|
static int |
TLTIU
|
static int |
TLTU
|
static int |
TNE
|
static int |
TNEI
|
static int |
TRUNC_L_D
|
static int |
TRUNC_L_S
|
static int |
TRUNC_W_D
|
static int |
TRUNC_W_S
|
static int |
XOR
|
static int |
XORI
|
Constructor Summary | |
---|---|
Opcodes()
|
Method Summary | |
---|---|
static java.lang.String |
getOp(Branch inst)
Return the opcode mnemonic for the instruction. |
static java.lang.String |
getOp(Instruction inst)
Return the opcode mnemonic for the instruction. |
static java.lang.String |
getOp(int opcode)
Return the opcode mnemonic for the instruction opcode. |
static int |
lookupFltBranch(int size,
int which)
|
static int |
lookupFltCompare(int size,
int which)
Return the appropriate opcode for a float compare |
static boolean |
lookupFltCompareOrder(int size,
int which)
|
static int |
lookupFltMovGP(int size,
int which)
|
static boolean |
reversedOperands(int Opcode)
Return true if the instruction modifies the last operand instead of the first |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NOP
public static final int ADD
public static final int ADDI
public static final int ADDIU
public static final int ADDU
public static final int AND
public static final int ANDI
public static final int BEQ
public static final int BEQL
public static final int BGEZ
public static final int BGEZAL
public static final int BGEZALL
public static final int BGEZL
public static final int BGTZ
public static final int BGTZL
public static final int BLEZ
public static final int BLEZL
public static final int BLTZ
public static final int BLTZAL
public static final int BLTZALL
public static final int BLTZL
public static final int BNE
public static final int BNEL
public static final int BREAK
public static final int DADD
public static final int DADDI
public static final int DADDIU
public static final int DADDU
public static final int DDIV
public static final int DDIVU
public static final int DIV
public static final int DIVU
public static final int DMULT
public static final int DMULTU
public static final int DSLL
public static final int DSLL32
public static final int DSLLV
public static final int DSRA
public static final int DSRA32
public static final int DSRAV
public static final int DSRL
public static final int DSRL32
public static final int DSRLV
public static final int DSUB
public static final int DSUBU
public static final int J
public static final int JAL
public static final int JALR
public static final int JR
public static final int LB
public static final int LBU
public static final int LD
public static final int LDL
public static final int LDR
public static final int LH
public static final int LHU
public static final int LL
public static final int LLD
public static final int LUI
public static final int LW
public static final int LWL
public static final int LWR
public static final int LWU
public static final int MFHI
public static final int MFLO
public static final int MOVN
public static final int MOVZ
public static final int MTHI
public static final int MTLO
public static final int MULT
public static final int MULTU
public static final int NOR
public static final int OR
public static final int ORI
public static final int PREF
public static final int SB
public static final int SC
public static final int SCD
public static final int SD
public static final int SDL
public static final int SDR
public static final int SH
public static final int SLL
public static final int SLLV
public static final int SLT
public static final int SLTI
public static final int SLTIU
public static final int SLTU
public static final int SRA
public static final int SRAV
public static final int SRL
public static final int SRLV
public static final int SUB
public static final int SUBU
public static final int SW
public static final int SWL
public static final int SWR
public static final int SYNC
public static final int SYSCALL
public static final int TEQ
public static final int TEQI
public static final int TGE
public static final int TGEI
public static final int TGEIU
public static final int TGEU
public static final int TLT
public static final int TLTI
public static final int TLTIU
public static final int TLTU
public static final int TNE
public static final int TNEI
public static final int XOR
public static final int XORI
public static final int ABS_S
public static final int ABS_D
public static final int ADD_S
public static final int ADD_D
public static final int BC1F
public static final int BC1FL
public static final int BC1T
public static final int BC1TL
public static final int C_F_S
public static final int C_F_D
public static final int C_UN_S
public static final int C_UN_D
public static final int C_EQ_S
public static final int C_EQ_D
public static final int C_UEQ_S
public static final int C_UEQ_D
public static final int C_OLT_S
public static final int C_OLT_D
public static final int C_ULT_S
public static final int C_ULT_D
public static final int C_OLE_S
public static final int C_OLE_D
public static final int C_ULE_S
public static final int C_ULE_D
public static final int C_SF_S
public static final int C_SF_D
public static final int C_NGLE_S
public static final int C_NGLE_D
public static final int C_SEQ_S
public static final int C_SEQ_D
public static final int C_NGL_S
public static final int C_NGL_D
public static final int C_LT_S
public static final int C_LT_D
public static final int C_NGE_S
public static final int C_NGE_D
public static final int C_LE_S
public static final int C_LE_D
public static final int C_NGT_S
public static final int C_NGT_D
public static final int CEIL_L_S
public static final int CEIL_L_D
public static final int CEIL_W_S
public static final int CEIL_W_D
public static final int CFC1
public static final int CTC1
public static final int CVT_D_S
public static final int CVT_D_W
public static final int CVT_D_L
public static final int CVT_L_S
public static final int CVT_L_D
public static final int CVT_S_D
public static final int CVT_S_W
public static final int CVT_S_L
public static final int CVT_W_S
public static final int CVT_W_D
public static final int DIV_S
public static final int DIV_D
public static final int DMFC1
public static final int DMTC1
public static final int FLOOR_L_S
public static final int FLOOR_L_D
public static final int FLOOR_W_S
public static final int FLOOR_W_D
public static final int LDC1
public static final int LDXC1
public static final int LWC1
public static final int LWXC1
public static final int MADD_S
public static final int MADD_D
public static final int MFC1
public static final int MOV_S
public static final int MOV_D
public static final int MOVF
public static final int MOVF_S
public static final int MOVF_D
public static final int MOVN_S
public static final int MOVN_D
public static final int MOVT
public static final int MOVT_S
public static final int MOVT_D
public static final int MOVZ_S
public static final int MOVZ_D
public static final int MSUB_S
public static final int MSUB_D
public static final int MTC1
public static final int MUL_S
public static final int MUL_D
public static final int NEG_S
public static final int NEG_D
public static final int NMADD_S
public static final int NMADD_D
public static final int NMSUB_S
public static final int NMSUB_D
public static final int PREFX
public static final int RECIP_S
public static final int RECIP_D
public static final int ROUND_L_S
public static final int ROUND_L_D
public static final int ROUND_W_S
public static final int ROUND_W_D
public static final int RSQRT_S
public static final int RSQRT_D
public static final int SDC1
public static final int SDXC1
public static final int SQRT_S
public static final int SQRT_D
public static final int SUB_S
public static final int SUB_D
public static final int SWC1
public static final int SWXC1
public static final int TRUNC_L_S
public static final int TRUNC_L_D
public static final int TRUNC_W_S
public static final int TRUNC_W_D
Constructor Detail |
---|
public Opcodes()
Method Detail |
---|
public static boolean reversedOperands(int Opcode)
public static int lookupFltCompare(int size, int which)
public static boolean lookupFltCompareOrder(int size, int which)
public static int lookupFltBranch(int size, int which)
public static int lookupFltMovGP(int size, int which)
public static java.lang.String getOp(Instruction inst)
public static java.lang.String getOp(Branch inst)
public static java.lang.String getOp(int opcode)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |