scale.backend.x86
Class X86RRRDInstruction

java.lang.Object
  extended by scale.backend.Instruction
      extended by scale.backend.x86.X86Instruction
          extended by scale.backend.x86.X86RInstruction
              extended by scale.backend.x86.X86RRInstruction
                  extended by scale.backend.x86.X86RRRInstruction
                      extended by scale.backend.x86.X86RRRDInstruction
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
X86RRRDDInstruction

public class X86RRRDInstruction
extends X86RRRInstruction

This is the base class for all X86 instructions except branches that reference three registers and a displacement.

$Id$

Copyright 2008 by James H. Burrill
All Rights Reserved.


Field Summary
protected  Displacement disp
           
 
Fields inherited from class scale.backend.x86.X86RRRInstruction
reg3
 
Fields inherited from class scale.backend.x86.X86RRInstruction
reg2
 
Fields inherited from class scale.backend.x86.X86RInstruction
reg
 
Fields inherited from class scale.backend.x86.X86Instruction
opcode, setCC, useCC
 
Constructor Summary
X86RRRDInstruction(int opcode, int reg2, int reg3, Displacement disp, int reg)
           
X86RRRDInstruction(int opcode, int reg, int reg2, int reg3, Displacement disp)
           
 
Method Summary
 void assembler(Assembler asm, Emit emit)
          Insert the assembler representation of the instruction into the output stream.
protected  boolean checkForm(int opcode)
          Return true if the specified form is valid for this instruction opcode.
 Displacement getDisplacement()
           
 void setDisplacement(Displacement disp)
           
 java.lang.String toString()
           
 
Methods inherited from class scale.backend.x86.X86RRRInstruction
getReg3, remapRegisters, remapSrcRegister, setReg3, uses
 
Methods inherited from class scale.backend.x86.X86RRInstruction
getReg2, setReg2
 
Methods inherited from class scale.backend.x86.X86RInstruction
defs, getDestRegister, getReg, remapDestRegister, setReg, specifyRegisterUsage
 
Methods inherited from class scale.backend.x86.X86Instruction
assembleDisp, buildAddress, canBeDeleted, getDisplacement2, getOpcode, getOperandSize, getOperandSizeLabel, getScale, independent, independentCC, instructionSize, isReversed, setDisplacement2, setOpcode, setOperandSize, setScale, setsCC, setSetCC, setsSpecialReg, setUseCC, usesCC
 
Methods inherited from class scale.backend.Instruction
clone, copy, ehash, getBBID, getCopyDest, getCopySrc, getExecutionCycles, getFunctionalUnit, getLoopNumber, getNext, getPredicate, getPredicates, getSrcRegisters, getTag, isBranch, isCopy, isLabel, isLoad, isMandatory, isMarker, isPhi, isPredicated, isPredicatedOnTrue, isPrefetch, isSpillInstruction, isSpillLoadPoint, isSpillStorePoint, isStore, markSpillInstruction, mods, nullified, nullify, numPredicates, removePredicates, setBBID, setLoopNumber, setMandatory, setNext, setPredicate, setPredicate, setPredicatedOnTrue, setPredicates, setTag, specifyNotSpillLoadPoint, specifySpillStorePoint
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

disp

protected Displacement disp
Constructor Detail

X86RRRDInstruction

public X86RRRDInstruction(int opcode,
                          int reg,
                          int reg2,
                          int reg3,
                          Displacement disp)

X86RRRDInstruction

public X86RRRDInstruction(int opcode,
                          int reg2,
                          int reg3,
                          Displacement disp,
                          int reg)
Method Detail

checkForm

protected boolean checkForm(int opcode)
Description copied from class: X86Instruction
Return true if the specified form is valid for this instruction opcode.

Overrides:
checkForm in class X86RRRInstruction

getDisplacement

public Displacement getDisplacement()
Overrides:
getDisplacement in class X86Instruction

setDisplacement

public void setDisplacement(Displacement disp)
Overrides:
setDisplacement in class X86Instruction

assembler

public void assembler(Assembler asm,
                      Emit emit)
Insert the assembler representation of the instruction into the output stream.

Overrides:
assembler in class X86RRRInstruction

toString

public java.lang.String toString()
Overrides:
toString in class X86RRRInstruction