mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Thumb2 t2Bcc should encode as t2B when condition is 'always'.
llvm-svn: 138898
This commit is contained in:
parent
8771512b75
commit
3dd66f0c98
@ -3478,6 +3478,11 @@ processInstruction(MCInst &Inst,
|
|||||||
if (Inst.getOperand(3).getImm() < 8 && Operands.size() == 6)
|
if (Inst.getOperand(3).getImm() < 8 && Operands.size() == 6)
|
||||||
Inst.setOpcode(ARM::tADDi3);
|
Inst.setOpcode(ARM::tADDi3);
|
||||||
break;
|
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:
|
case ARM::tBcc:
|
||||||
// If the conditional is AL, we really want tB.
|
// If the conditional is AL, we really want tB.
|
||||||
if (Inst.getOperand(1).getImm() == ARMCC::AL)
|
if (Inst.getOperand(1).getImm() == ARMCC::AL)
|
||||||
|
Loading…
Reference in New Issue
Block a user