mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
tBcc is OK to be predicated in Thumb2 outside of IT blocks (obviously).
llvm-svn: 138873
This commit is contained in:
parent
8ae6a88723
commit
4dddfb237c
@ -3337,10 +3337,10 @@ validateInstruction(MCInst &Inst,
|
||||
"', but expected '" +
|
||||
ARMCondCodeToString(ARMCC::CondCodes(ITCond)) + "'");
|
||||
}
|
||||
// Check for non-'al' condition codes outside of the IT block.
|
||||
// Check for non-'al' condition codes outside of the IT block.
|
||||
} else if (isThumbTwo() && MCID.isPredicable() &&
|
||||
Inst.getOperand(MCID.findFirstPredOperandIdx()).getImm() !=
|
||||
ARMCC::AL)
|
||||
ARMCC::AL && Inst.getOpcode() != ARM::tBcc)
|
||||
return Error(Loc, "predicated instructions must be in IT block");
|
||||
|
||||
switch (Inst.getOpcode()) {
|
||||
|
Loading…
Reference in New Issue
Block a user