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:
d2fc31b
)
All conditional branches are disallowed in IT blocks, not just CBZ/CBNZ.
author
Owen Anderson
<resistor@mac.com>
Thu, 8 Sep 2011 22:48:37 +0000
(22:48 +0000)
committer
Owen Anderson
<resistor@mac.com>
Thu, 8 Sep 2011 22:48:37 +0000
(22:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139329
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/ARM/Disassembler/ARMDisassembler.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/ARM/Disassembler/ARMDisassembler.cpp
b/lib/Target/ARM/Disassembler/ARMDisassembler.cpp
index d361a6006f3f58353112ae19c52cb380fa8782ea..2791350b733e1b3a9f38a64dfb3de2359eb660ce 100644
(file)
--- a/
lib/Target/ARM/Disassembler/ARMDisassembler.cpp
+++ b/
lib/Target/ARM/Disassembler/ARMDisassembler.cpp
@@
-429,12
+429,13
@@
ThumbDisassembler::AddThumbPredicate(MCInst &MI) const {
switch (MI.getOpcode()) {
case ARM::tBcc:
case ARM::t2Bcc:
- return Success;
case ARM::tCBZ:
case ARM::tCBNZ:
- // Some instructions are not allowed in IT blocks.
+ // Some instructions (mostly conditional branches) are not
+ // allowed in IT blocks.
if (!ITBlock.empty())
return SoftFail;
+ return Success;
break;
default:
break;