Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 1 | // $Id$ |
| 2 | //*************************************************************************** |
| 3 | // File: |
| 4 | // MachineInstr.cpp |
| 5 | // |
| 6 | // Purpose: |
| 7 | // |
| 8 | // |
| 9 | // Strategy: |
| 10 | // |
| 11 | // History: |
| 12 | // 7/2/01 - Vikram Adve - Created |
| 13 | //**************************************************************************/ |
| 14 | |
Chris Lattner | 7e583cf | 2001-07-21 20:58:30 +0000 | [diff] [blame] | 15 | #include "llvm/CodeGen/MachineInstr.h" |
Chris Lattner | 68498ce | 2001-07-21 23:24:48 +0000 | [diff] [blame] | 16 | #include "llvm/ConstPoolVals.h" |
| 17 | #include "llvm/Instruction.h" |
| 18 | #include <strstream> |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 19 | |
| 20 | //************************ Class Implementations **************************/ |
| 21 | |
Vikram S. Adve | 1885da4 | 2001-07-31 21:49:28 +0000 | [diff] [blame] | 22 | // Constructor for instructions with fixed #operands (nearly all) |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 23 | MachineInstr::MachineInstr(MachineOpCode _opCode, |
| 24 | OpCodeMask _opCodeMask) |
| 25 | : opCode(_opCode), |
| 26 | opCodeMask(_opCodeMask), |
Vikram S. Adve | 6a175e0 | 2001-07-28 04:06:37 +0000 | [diff] [blame] | 27 | operands(TargetInstrDescriptors[_opCode].numOperands) |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 28 | { |
Vikram S. Adve | 1885da4 | 2001-07-31 21:49:28 +0000 | [diff] [blame] | 29 | assert(TargetInstrDescriptors[_opCode].numOperands >= 0); |
| 30 | } |
| 31 | |
| 32 | // Constructor for instructions with variable #operands |
| 33 | MachineInstr::MachineInstr(MachineOpCode _opCode, |
| 34 | unsigned numOperands, |
| 35 | OpCodeMask _opCodeMask) |
| 36 | : opCode(_opCode), |
| 37 | opCodeMask(_opCodeMask), |
| 38 | operands(numOperands) |
| 39 | { |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 40 | } |
| 41 | |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 42 | void |
| 43 | MachineInstr::SetMachineOperand(unsigned int i, |
| 44 | MachineOperand::MachineOperandType operandType, |
Ruchira Sasanka | 45c171e | 2001-08-07 20:16:52 +0000 | [diff] [blame] | 45 | Value* _val, bool isdef=false) |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 46 | { |
Vikram S. Adve | 6a175e0 | 2001-07-28 04:06:37 +0000 | [diff] [blame] | 47 | assert(i < operands.size()); |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 48 | operands[i].Initialize(operandType, _val); |
Ruchira Sasanka | 45c171e | 2001-08-07 20:16:52 +0000 | [diff] [blame] | 49 | operands[i].isDef = isdef; |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 50 | } |
| 51 | |
| 52 | void |
| 53 | MachineInstr::SetMachineOperand(unsigned int i, |
| 54 | MachineOperand::MachineOperandType operandType, |
Ruchira Sasanka | 45c171e | 2001-08-07 20:16:52 +0000 | [diff] [blame] | 55 | int64_t intValue, bool isdef=false) |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 56 | { |
Vikram S. Adve | 6a175e0 | 2001-07-28 04:06:37 +0000 | [diff] [blame] | 57 | assert(i < operands.size()); |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 58 | operands[i].InitializeConst(operandType, intValue); |
Ruchira Sasanka | 45c171e | 2001-08-07 20:16:52 +0000 | [diff] [blame] | 59 | operands[i].isDef = isdef; |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 60 | } |
| 61 | |
| 62 | void |
| 63 | MachineInstr::SetMachineOperand(unsigned int i, |
Ruchira Sasanka | 45c171e | 2001-08-07 20:16:52 +0000 | [diff] [blame] | 64 | unsigned int regNum, bool isdef=false) |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 65 | { |
Vikram S. Adve | 6a175e0 | 2001-07-28 04:06:37 +0000 | [diff] [blame] | 66 | assert(i < operands.size()); |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 67 | operands[i].InitializeReg(regNum); |
Ruchira Sasanka | 45c171e | 2001-08-07 20:16:52 +0000 | [diff] [blame] | 68 | operands[i].isDef = isdef; |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 69 | } |
| 70 | |
| 71 | void |
Ruchira Sasanka | 0b03c6a | 2001-08-07 21:01:23 +0000 | [diff] [blame^] | 72 | MachineInstr::dump(unsigned int indent) const |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 73 | { |
| 74 | for (unsigned i=0; i < indent; i++) |
| 75 | cout << " "; |
| 76 | |
| 77 | cout << *this; |
| 78 | } |
| 79 | |
| 80 | ostream& |
| 81 | operator<< (ostream& os, const MachineInstr& minstr) |
| 82 | { |
Vikram S. Adve | 6a175e0 | 2001-07-28 04:06:37 +0000 | [diff] [blame] | 83 | os << TargetInstrDescriptors[minstr.opCode].opCodeString; |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 84 | |
| 85 | for (unsigned i=0, N=minstr.getNumOperands(); i < N; i++) |
| 86 | os << "\t" << minstr.getOperand(i); |
| 87 | |
Vikram S. Adve | 6a175e0 | 2001-07-28 04:06:37 +0000 | [diff] [blame] | 88 | #undef DEBUG_VAL_OP_ITERATOR |
| 89 | #ifdef DEBUG_VAL_OP_ITERATOR |
| 90 | os << endl << "\tValue operands are: "; |
| 91 | for (MachineInstr::val_op_const_iterator vo(&minstr); ! vo.done(); ++vo) |
| 92 | { |
| 93 | const Value* val = *vo; |
| 94 | os << val << (vo.isDef()? "(def), " : ", "); |
| 95 | } |
| 96 | os << endl; |
| 97 | #endif |
| 98 | |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 99 | return os; |
| 100 | } |
| 101 | |
| 102 | ostream& |
| 103 | operator<< (ostream& os, const MachineOperand& mop) |
| 104 | { |
| 105 | strstream regInfo; |
Vikram S. Adve | 6a175e0 | 2001-07-28 04:06:37 +0000 | [diff] [blame] | 106 | if (mop.opType == MachineOperand::MO_VirtualRegister) |
| 107 | regInfo << "(val " << mop.value << ")" << ends; |
| 108 | else if (mop.opType == MachineOperand::MO_MachineRegister) |
| 109 | regInfo << "(" << mop.regNum << ")" << ends; |
| 110 | else if (mop.opType == MachineOperand::MO_CCRegister) |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 111 | regInfo << "(val " << mop.value << ")" << ends; |
| 112 | |
Vikram S. Adve | 6a175e0 | 2001-07-28 04:06:37 +0000 | [diff] [blame] | 113 | switch(mop.opType) |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 114 | { |
Vikram S. Adve | 6a175e0 | 2001-07-28 04:06:37 +0000 | [diff] [blame] | 115 | case MachineOperand::MO_VirtualRegister: |
| 116 | case MachineOperand::MO_MachineRegister: |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 117 | os << "%reg" << regInfo.str(); |
| 118 | free(regInfo.str()); |
| 119 | break; |
| 120 | |
| 121 | case MachineOperand::MO_CCRegister: |
| 122 | os << "%ccreg" << regInfo.str(); |
| 123 | free(regInfo.str()); |
| 124 | break; |
| 125 | |
| 126 | case MachineOperand::MO_SignExtendedImmed: |
| 127 | os << mop.immedVal; |
| 128 | break; |
| 129 | |
| 130 | case MachineOperand::MO_UnextendedImmed: |
| 131 | os << mop.immedVal; |
| 132 | break; |
| 133 | |
| 134 | case MachineOperand::MO_PCRelativeDisp: |
| 135 | os << "%disp(label " << mop.value << ")"; |
| 136 | break; |
| 137 | |
| 138 | default: |
| 139 | assert(0 && "Unrecognized operand type"); |
| 140 | break; |
| 141 | } |
| 142 | |
| 143 | return os; |
| 144 | } |
| 145 | |
| 146 | |
| 147 | //--------------------------------------------------------------------------- |
| 148 | // Target-independent utility routines for creating machine instructions |
| 149 | //--------------------------------------------------------------------------- |
| 150 | |
| 151 | |
| 152 | //------------------------------------------------------------------------ |
| 153 | // Function Set2OperandsFromInstr |
| 154 | // Function Set3OperandsFromInstr |
| 155 | // |
| 156 | // For the common case of 2- and 3-operand arithmetic/logical instructions, |
| 157 | // set the m/c instr. operands directly from the VM instruction's operands. |
| 158 | // Check whether the first or second operand is 0 and can use a dedicated "0" register. |
| 159 | // Check whether the second operand should use an immediate field or register. |
| 160 | // (First and third operands are never immediates for such instructions.) |
| 161 | // |
| 162 | // Arguments: |
| 163 | // canDiscardResult: Specifies that the result operand can be discarded |
| 164 | // by using the dedicated "0" |
| 165 | // |
| 166 | // op1position, op2position and resultPosition: Specify in which position |
| 167 | // in the machine instruction the 3 operands (arg1, arg2 |
| 168 | // and result) should go. |
| 169 | // |
| 170 | // RETURN VALUE: unsigned int flags, where |
| 171 | // flags & 0x01 => operand 1 is constant and needs a register |
| 172 | // flags & 0x02 => operand 2 is constant and needs a register |
| 173 | //------------------------------------------------------------------------ |
| 174 | |
| 175 | void |
| 176 | Set2OperandsFromInstr(MachineInstr* minstr, |
| 177 | InstructionNode* vmInstrNode, |
Vikram S. Adve | 6a175e0 | 2001-07-28 04:06:37 +0000 | [diff] [blame] | 178 | const TargetMachine& target, |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 179 | bool canDiscardResult, |
| 180 | int op1Position, |
| 181 | int resultPosition) |
| 182 | { |
Vikram S. Adve | 6a175e0 | 2001-07-28 04:06:37 +0000 | [diff] [blame] | 183 | Set3OperandsFromInstr(minstr, vmInstrNode, target, |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 184 | canDiscardResult, op1Position, |
| 185 | /*op2Position*/ -1, resultPosition); |
| 186 | } |
| 187 | |
Vikram S. Adve | 6a175e0 | 2001-07-28 04:06:37 +0000 | [diff] [blame] | 188 | #undef REVERT_TO_EXPLICIT_CONSTANT_CHECKS |
| 189 | #ifdef REVERT_TO_EXPLICIT_CONSTANT_CHECKS |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 190 | unsigned |
| 191 | Set3OperandsFromInstrJUNK(MachineInstr* minstr, |
| 192 | InstructionNode* vmInstrNode, |
Vikram S. Adve | 6a175e0 | 2001-07-28 04:06:37 +0000 | [diff] [blame] | 193 | const TargetMachine& target, |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 194 | bool canDiscardResult, |
| 195 | int op1Position, |
| 196 | int op2Position, |
| 197 | int resultPosition) |
| 198 | { |
| 199 | assert(op1Position >= 0); |
| 200 | assert(resultPosition >= 0); |
| 201 | |
| 202 | unsigned returnFlags = 0x0; |
| 203 | |
| 204 | // Check if operand 1 is 0 and if so, try to use the register that gives 0, if any. |
| 205 | Value* op1Value = vmInstrNode->leftChild()->getValue(); |
| 206 | bool isValidConstant; |
| 207 | int64_t intValue = GetConstantValueAsSignedInt(op1Value, isValidConstant); |
Vikram S. Adve | 6a175e0 | 2001-07-28 04:06:37 +0000 | [diff] [blame] | 208 | if (isValidConstant && intValue == 0 && target.zeroRegNum >= 0) |
| 209 | minstr->SetMachineOperand(op1Position, /*regNum*/ target.zeroRegNum); |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 210 | else |
| 211 | { |
| 212 | if (op1Value->getValueType() == Value::ConstantVal) |
| 213 | {// value is constant and must be loaded from constant pool |
| 214 | returnFlags = returnFlags | (1 << op1Position); |
| 215 | } |
Vikram S. Adve | 6a175e0 | 2001-07-28 04:06:37 +0000 | [diff] [blame] | 216 | minstr->SetMachineOperand(op1Position,MachineOperand::MO_VirtualRegister, |
| 217 | op1Value); |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 218 | } |
| 219 | |
| 220 | // Check if operand 2 (if any) fits in the immediate field of the instruction, |
| 221 | // of if it is 0 and can use a dedicated machine register |
| 222 | if (op2Position >= 0) |
| 223 | { |
| 224 | Value* op2Value = vmInstrNode->rightChild()->getValue(); |
| 225 | int64_t immedValue; |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 226 | unsigned int machineRegNum; |
| 227 | |
| 228 | MachineOperand::MachineOperandType |
Vikram S. Adve | 6a175e0 | 2001-07-28 04:06:37 +0000 | [diff] [blame] | 229 | op2type = ChooseRegOrImmed(op2Value, minstr->getOpCode(), target, |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 230 | /*canUseImmed*/ true, |
Vikram S. Adve | 6a175e0 | 2001-07-28 04:06:37 +0000 | [diff] [blame] | 231 | machineRegNum, immedValue); |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 232 | |
Vikram S. Adve | 6a175e0 | 2001-07-28 04:06:37 +0000 | [diff] [blame] | 233 | if (op2type == MachineOperand::MO_MachineRegister) |
| 234 | minstr->SetMachineOperand(op2Position, machineRegNum); |
| 235 | else if (op2type == MachineOperand::MO_VirtualRegister) |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 236 | { |
Vikram S. Adve | 6a175e0 | 2001-07-28 04:06:37 +0000 | [diff] [blame] | 237 | if (op2Value->getValueType() == Value::ConstantVal) |
| 238 | {// value is constant and must be loaded from constant pool |
| 239 | returnFlags = returnFlags | (1 << op2Position); |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 240 | } |
Vikram S. Adve | 6a175e0 | 2001-07-28 04:06:37 +0000 | [diff] [blame] | 241 | minstr->SetMachineOperand(op2Position, op2type, op2Value); |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 242 | } |
| 243 | else |
Vikram S. Adve | 6a175e0 | 2001-07-28 04:06:37 +0000 | [diff] [blame] | 244 | { |
| 245 | assert(op2type != MO_CCRegister); |
| 246 | minstr->SetMachineOperand(op2Position, op2type, immedValue); |
| 247 | } |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 248 | } |
| 249 | |
| 250 | // If operand 3 (result) can be discarded, use a dead register if one exists |
Vikram S. Adve | 6a175e0 | 2001-07-28 04:06:37 +0000 | [diff] [blame] | 251 | if (canDiscardResult && target.zeroRegNum >= 0) |
| 252 | minstr->SetMachineOperand(resultPosition, target.zeroRegNum); |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 253 | else |
Vikram S. Adve | 6a175e0 | 2001-07-28 04:06:37 +0000 | [diff] [blame] | 254 | minstr->SetMachineOperand(resultPosition, MachineOperand::MO_VirtualRegister, vmInstrNode->getValue()); |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 255 | |
| 256 | return returnFlags; |
| 257 | } |
Vikram S. Adve | 6a175e0 | 2001-07-28 04:06:37 +0000 | [diff] [blame] | 258 | #endif |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 259 | |
| 260 | |
| 261 | void |
| 262 | Set3OperandsFromInstr(MachineInstr* minstr, |
| 263 | InstructionNode* vmInstrNode, |
Vikram S. Adve | 6a175e0 | 2001-07-28 04:06:37 +0000 | [diff] [blame] | 264 | const TargetMachine& target, |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 265 | bool canDiscardResult, |
| 266 | int op1Position, |
| 267 | int op2Position, |
| 268 | int resultPosition) |
| 269 | { |
| 270 | assert(op1Position >= 0); |
| 271 | assert(resultPosition >= 0); |
| 272 | |
| 273 | // operand 1 |
Vikram S. Adve | 6a175e0 | 2001-07-28 04:06:37 +0000 | [diff] [blame] | 274 | minstr->SetMachineOperand(op1Position, MachineOperand::MO_VirtualRegister, |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 275 | vmInstrNode->leftChild()->getValue()); |
| 276 | |
| 277 | // operand 2 (if any) |
| 278 | if (op2Position >= 0) |
Vikram S. Adve | 6a175e0 | 2001-07-28 04:06:37 +0000 | [diff] [blame] | 279 | minstr->SetMachineOperand(op2Position, MachineOperand::MO_VirtualRegister, |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 280 | vmInstrNode->rightChild()->getValue()); |
| 281 | |
| 282 | // result operand: if it can be discarded, use a dead register if one exists |
Vikram S. Adve | 6a175e0 | 2001-07-28 04:06:37 +0000 | [diff] [blame] | 283 | if (canDiscardResult && target.zeroRegNum >= 0) |
| 284 | minstr->SetMachineOperand(resultPosition, target.zeroRegNum); |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 285 | else |
Vikram S. Adve | 6a175e0 | 2001-07-28 04:06:37 +0000 | [diff] [blame] | 286 | minstr->SetMachineOperand(resultPosition, MachineOperand::MO_VirtualRegister, vmInstrNode->getValue()); |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 287 | } |
| 288 | |
| 289 | |
| 290 | MachineOperand::MachineOperandType |
| 291 | ChooseRegOrImmed(Value* val, |
| 292 | MachineOpCode opCode, |
Vikram S. Adve | 6a175e0 | 2001-07-28 04:06:37 +0000 | [diff] [blame] | 293 | const TargetMachine& target, |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 294 | bool canUseImmed, |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 295 | unsigned int& getMachineRegNum, |
| 296 | int64_t& getImmedValue) |
| 297 | { |
Vikram S. Adve | 6a175e0 | 2001-07-28 04:06:37 +0000 | [diff] [blame] | 298 | MachineOperand::MachineOperandType opType = |
| 299 | MachineOperand::MO_VirtualRegister; |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 300 | getMachineRegNum = 0; |
| 301 | getImmedValue = 0; |
| 302 | |
| 303 | // Check for the common case first: argument is not constant |
| 304 | // |
| 305 | if (val->getValueType() != Value::ConstantVal) |
| 306 | return opType; |
| 307 | |
| 308 | // Now get the constant value and check if it fits in the IMMED field. |
| 309 | // Take advantage of the fact that the max unsigned value will rarely |
| 310 | // fit into any IMMED field and ignore that case (i.e., cast smaller |
| 311 | // unsigned constants to signed). |
| 312 | // |
| 313 | bool isValidConstant; |
| 314 | int64_t intValue = GetConstantValueAsSignedInt(val, isValidConstant); |
| 315 | |
| 316 | if (isValidConstant) |
| 317 | { |
Vikram S. Adve | 6a175e0 | 2001-07-28 04:06:37 +0000 | [diff] [blame] | 318 | if (intValue == 0 && target.zeroRegNum >= 0) |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 319 | { |
Vikram S. Adve | 6a175e0 | 2001-07-28 04:06:37 +0000 | [diff] [blame] | 320 | opType = MachineOperand::MO_MachineRegister; |
| 321 | getMachineRegNum = target.zeroRegNum; |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 322 | } |
| 323 | else if (canUseImmed && |
Vikram S. Adve | 6a175e0 | 2001-07-28 04:06:37 +0000 | [diff] [blame] | 324 | target.getInstrInfo().constantFitsInImmedField(opCode,intValue)) |
Vikram S. Adve | 70bc4b5 | 2001-07-21 12:41:50 +0000 | [diff] [blame] | 325 | { |
| 326 | opType = MachineOperand::MO_SignExtendedImmed; |
| 327 | getImmedValue = intValue; |
| 328 | } |
| 329 | } |
| 330 | |
| 331 | return opType; |
| 332 | } |