|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object scale.backend.trips2.Opcodes
public class Opcodes
This class provides Trips instruction information.
$Id: Opcodes.java,v 1.19 2005-10-11 14:38:00 burrill Exp $
Copyright 2004 by the Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.
Trips opcodes are represented by an integer.
Field Summary | |
---|---|
static int |
_DUMMYSD
|
static int |
_ENTER
|
static int |
_ENTERA
|
static int |
_ENTERB
|
static int |
_LAST
|
static int |
_LDSPILL
|
static int |
_LPF
|
static int |
_NOP
|
static int |
_PHI
|
static int |
_SDSPILL
|
static int |
ADD
|
static int |
ADDI
|
static int |
AND
|
static int |
ANDI
|
static int |
APP
|
static byte |
B0
This indicates a Trips Branch Instruction with no operands |
static byte |
B1
This indicates a Trips Branch Instruction with one operand |
static int |
BR
|
static int |
BRO
|
static byte |
C0
This indicates a Trips Constant Instruction with no operands |
static byte |
C1
This indicates a Trips Constant Instruction with one operand |
static int |
CALL
|
static int |
CALLO
|
static int |
DIVS
|
static int |
DIVSI
|
static int |
DIVU
|
static int |
DIVUI
|
static byte |
ENT
This indicates an enter directive |
static int |
EXTSB
|
static int |
EXTSH
|
static int |
EXTSW
|
static int |
EXTUB
|
static int |
EXTUH
|
static int |
EXTUW
|
static int |
FADD
|
static int |
FDIV
|
static int |
FDTOI
|
static int |
FDTOS
|
static int |
FEQ
|
static int |
FGE
|
static int |
FGT
|
static int |
FITOD
|
static int |
FLE
|
static int |
FLT
|
static int |
FMUL
|
static int |
FNE
|
static int |
FSTOD
|
static int |
FSUB
|
static byte |
G0
This indicates a Trips General Instruction with no operands |
static byte |
G1
This indicates a Trips General Instruction with one operand |
static byte |
G2
This indicates a Trips General Instruction with two operands |
static int |
GENS
|
static int |
GENU
|
static byte |
I0
This indicates a Trips Immediate Instruction with no operands |
static byte |
I1
This indicates a Trips Immediate Instruction with one operand |
static byte |
L1
This indicates a Trips Load Instruction |
static int |
LB
|
static int |
LBS
|
static int |
LD
|
static int |
LH
|
static int |
LHS
|
static byte |
LPF
This indicates an LPF instruction |
static int |
LW
|
static int |
LWS
|
static int |
MFPC
|
static int |
MOV
|
static int |
MOVI
|
static int |
MUL
|
static int |
MULI
|
static int |
NULL
|
static int |
OR
|
static int |
ORI
|
static byte |
PHI
This indicates a Phi Instruction |
static byte |
R0
This indicates a Trips Read Instruction with one operand |
static int |
READ
|
static int |
RET
|
static byte |
S2
This indicates a Trips Store Instruction |
static int |
SB
|
static int |
SCALL
|
static int |
SD
|
static int |
SH
|
static int |
SLL
|
static int |
SLLI
|
static int |
SRA
|
static int |
SRAI
|
static int |
SRL
|
static int |
SRLI
|
static int |
SUB
|
static int |
SUBI
|
static int |
SW
|
static int |
TEQ
|
static int |
TEQI
|
static int |
TGE
|
static int |
TGEI
|
static int |
TGEU
|
static int |
TGEUI
|
static int |
TGT
|
static int |
TGTI
|
static int |
TGTU
|
static int |
TGTUI
|
static int |
TLE
|
static int |
TLEI
|
static int |
TLEU
|
static int |
TLEUI
|
static int |
TLT
|
static int |
TLTI
|
static int |
TLTU
|
static int |
TLTUI
|
static int |
TNE
|
static int |
TNEI
|
static byte |
UNK
This indicates an unknown/unused instruction |
static byte |
W1
This indicates a Trips Write Instruction with one operand |
static int |
WRITE
|
static int |
XOR
|
static int |
XORI
|
Constructor Summary | |
---|---|
Opcodes()
|
Method Summary | |
---|---|
static byte |
getFormat(int opcode)
Return the instruction format. |
static int |
getIntImmOp(int op)
Return the immediate form of an integer instruction. |
static int |
getIntOp(int op)
Return the non-immediate form of an integer instruction. |
static int |
getNumTargets(Instruction inst)
Return the number of targets. |
static int |
getNumTargets(int opcode)
Return the number of targets. |
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 |
getOp(java.lang.String opcode)
Return the opcode for a mneumonic |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final byte ENT
public static final byte G0
public static final byte G1
public static final byte G2
public static final byte I0
public static final byte I1
public static final byte L1
public static final byte S2
public static final byte B0
public static final byte B1
public static final byte C0
public static final byte C1
public static final byte R0
public static final byte W1
public static final byte PHI
public static final byte LPF
public static final byte UNK
public static final int ADD
public static final int SUB
public static final int MUL
public static final int DIVS
public static final int DIVU
public static final int AND
public static final int OR
public static final int XOR
public static final int SLL
public static final int SRL
public static final int SRA
public static final int TEQ
public static final int TNE
public static final int TLE
public static final int TLEU
public static final int TLT
public static final int TLTU
public static final int TGE
public static final int TGEU
public static final int TGT
public static final int TGTU
public static final int ADDI
public static final int SUBI
public static final int MULI
public static final int DIVSI
public static final int DIVUI
public static final int ANDI
public static final int ORI
public static final int XORI
public static final int SLLI
public static final int SRLI
public static final int SRAI
public static final int TEQI
public static final int TNEI
public static final int TLEI
public static final int TLEUI
public static final int TLTI
public static final int TLTUI
public static final int TGEI
public static final int TGEUI
public static final int TGTI
public static final int TGTUI
public static final int FADD
public static final int FSUB
public static final int FMUL
public static final int FDIV
public static final int FEQ
public static final int FNE
public static final int FLE
public static final int FLT
public static final int FGE
public static final int FGT
public static final int FITOD
public static final int FDTOI
public static final int FSTOD
public static final int FDTOS
public static final int GENS
public static final int GENU
public static final int APP
public static final int LB
public static final int LH
public static final int LW
public static final int LD
public static final int LBS
public static final int LHS
public static final int LWS
public static final int SB
public static final int SH
public static final int SW
public static final int SD
public static final int EXTSB
public static final int EXTSH
public static final int EXTSW
public static final int EXTUB
public static final int EXTUH
public static final int EXTUW
public static final int BR
public static final int CALL
public static final int RET
public static final int BRO
public static final int CALLO
public static final int SCALL
public static final int MOV
public static final int MOVI
public static final int MFPC
public static final int WRITE
public static final int READ
public static final int NULL
public static final int _NOP
public static final int _ENTER
public static final int _ENTERA
public static final int _ENTERB
public static final int _PHI
public static final int _SDSPILL
public static final int _LDSPILL
public static final int _DUMMYSD
public static final int _LPF
public static final int _LAST
Constructor Detail |
---|
public Opcodes()
Method Detail |
---|
public static int getNumTargets(Instruction inst)
public static int getNumTargets(int opcode)
public static int getIntOp(int op)
public static int getIntImmOp(int op)
public static java.lang.String getOp(Instruction inst)
public static java.lang.String getOp(Branch inst)
public static java.lang.String getOp(int opcode)
public static int getOp(java.lang.String opcode)
public static byte getFormat(int opcode)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |