Thumb2 t2Bcc should encode as t2B when condition is 'always'.

llvm-svn: 138898
This commit is contained in:
Jim Grosbach 2011-08-31 21:17:31 +00:00
parent a0d85139e5
commit 99bc84662f
1 changed files with 5 additions and 0 deletions

View File

@ -3478,6 +3478,11 @@ processInstruction(MCInst &Inst,
if (Inst.getOperand(3).getImm() < 8 && Operands.size() == 6)
Inst.setOpcode(ARM::tADDi3);
break;
case ARM::t2Bcc:
// If the conditional is AL, we really want t2B.
if (Inst.getOperand(1).getImm() == ARMCC::AL)
Inst.setOpcode(ARM::t2B);
break;
case ARM::tBcc:
// If the conditional is AL, we really want tB.
if (Inst.getOperand(1).getImm() == ARMCC::AL)