[llvm-commits] [llvm] r138873 - /llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
Jim Grosbach
grosbach at apple.com
Wed Aug 31 11:29:05 PDT 2011
Author: grosbach
Date: Wed Aug 31 13:29:05 2011
New Revision: 138873
URL: http://llvm.org/viewvc/llvm-project?rev=138873&view=rev
Log:
tBcc is OK to be predicated in Thumb2 outside of IT blocks (obviously).
Modified:
llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
Modified: llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp?rev=138873&r1=138872&r2=138873&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp (original)
+++ llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp Wed Aug 31 13:29:05 2011
@@ -3337,10 +3337,10 @@
"', 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()) {
More information about the llvm-commits
mailing list