commit | 395b453bed53a60c559b679eb92f75d0b140b307 | [log] [tgz] |
---|---|---|
author | Jim Grosbach <grosbach@apple.com> | Wed Aug 17 22:57:40 2011 +0000 |
committer | Jim Grosbach <grosbach@apple.com> | Wed Aug 17 22:57:40 2011 +0000 |
tree | 07ad4ebfd212c198e619afe9ecb467bf70f7fe18 | |
parent | f6d3a4c7c4d14ad7a4e07e9f80f94f73651960d8 [diff] [blame] |
Thumb assembly parsing and encoding for B. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137891 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp index 74d34e1..f89968f 100644 --- a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp +++ b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
@@ -3035,6 +3035,10 @@ if (Inst.getOperand(3).getImm() < 8) Inst.setOpcode(ARM::tADDi3); break; + case ARM::tBcc: + // If the conditional is AL, we really want tB. + if (Inst.getOperand(1).getImm() == ARMCC::AL) + Inst.setOpcode(ARM::tB); } }