[llvm-commits] [llvm] r138898 - /llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
Jim Grosbach
grosbach at apple.com
Wed Aug 31 14:17:31 PDT 2011
Author: grosbach
Date: Wed Aug 31 16:17:31 2011
New Revision: 138898
URL: http://llvm.org/viewvc/llvm-project?rev=138898&view=rev
Log:
Thumb2 t2Bcc should encode as t2B when condition is 'always'.
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=138898&r1=138897&r2=138898&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp (original)
+++ llvm/trunk/lib/Target/ARM/AsmParser/ARMAsmParser.cpp Wed Aug 31 16:17:31 2011
@@ -3478,6 +3478,11 @@
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)
More information about the llvm-commits
mailing list