llvm.org GIT mirror llvm / 429af6f
Add a comment to explain what's really going on. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163005 91177308-0d34-0410-b5e6-96231b3b80d8 Chad Rosier 7 years ago
1 changed file(s) with 6 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
53465346 case ARM::tMUL: {
53475347 // The second source operand must be the same register as the destination
53485348 // operand.
5349 //
5350 // In this case, we must directly check the parsed operands because the
5351 // cvtThumbMultiply() function is written in such a way that it guarantees
5352 // this first statement is always true for the new Inst. Essentially, the
5353 // destination is unconditionally copied into the second source operand
5354 // without checking to see if it matches what we actually parsed.
53495355 if (Operands.size() == 6 &&
53505356 (((ARMOperand*)Operands[3])->getReg() !=
53515357 ((ARMOperand*)Operands[5])->getReg()) &&