mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-16 23:19:37 +00:00
tBcc is OK to be predicated in Thumb2 outside of IT blocks (obviously).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138873 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ba567d670d
commit
c9a9b44285
@ -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…
x
Reference in New Issue
Block a user