llvm.org GIT mirror llvm / 87f0cda
Merging r226583: ------------------------------------------------------------------------ r226583 | thomas.stellard | 2015-01-20 12:49:41 -0500 (Tue, 20 Jan 2015) | 5 lines R600/SI: Update SIInstrInfo:verifyInstruction() after r225662 Now that we have our own custom register operand types, we need to handle them in the verifiier. ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_36@226722 91177308-0d34-0410-b5e6-96231b3b80d8 Tom Stellard 4 years ago
1 changed file(s) with 12 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
11291129 }
11301130
11311131 switch (Desc.OpInfo[i].OperandType) {
1132 case MCOI::OPERAND_REGISTER: {
1133 if (MI->getOperand(i).isImm() &&
1134 !isImmOperandLegal(MI, i, MI->getOperand(i))) {
1135 ErrInfo = "Illegal immediate value for operand.";
1136 return false;
1137 }
1132 case MCOI::OPERAND_REGISTER:
1133 if (MI->getOperand(i).isImm() || MI->getOperand(i).isFPImm()) {
1134 ErrInfo = "Illegal immediate value for operand.";
1135 return false;
1136 }
1137 break;
1138 case AMDGPU::OPERAND_REG_IMM32:
1139 break;
1140 case AMDGPU::OPERAND_REG_INLINE_C:
1141 if (MI->getOperand(i).isImm() && !isInlineConstant(MI->getOperand(i))) {
1142 ErrInfo = "Illegal immediate value for operand.";
1143 return false;
11381144 }
11391145 break;
11401146 case MCOI::OPERAND_IMMEDIATE: