projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc7bc58
)
Thumb2 t2Bcc should encode as t2B when condition is 'always'.
author
Jim Grosbach
<grosbach@apple.com>
Wed, 31 Aug 2011 21:17:31 +0000
(21:17 +0000)
committer
Jim Grosbach
<grosbach@apple.com>
Wed, 31 Aug 2011 21:17:31 +0000
(21:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138898
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
index bd3e8711ece4de206328e1247e82e7fade20ae53..96ce5cd449387ce34f8aa76a1432691319aaf022 100644
(file)
--- a/
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
+++ b/
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
@@
-3478,6
+3478,11
@@
processInstruction(MCInst &Inst,
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)