aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/ARM/Disassembler/ARMDisassembler.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2011-09-19 22:34:23 +0000
committerOwen Anderson <resistor@mac.com>2011-09-19 22:34:23 +0000
commit04c7877894492d6e8aa45567988cd7de100589d8 (patch)
treeffac4b172066bb1f2ee6e8d760fb34edc306993a /lib/Target/ARM/Disassembler/ARMDisassembler.cpp
parent7f739bee261debdf56bd89ac922b57eca53e91dc (diff)
Thumb2 TBB and TBH instructions are only allowed at the end of IT blocks, not in the middle.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140079 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/Disassembler/ARMDisassembler.cpp')
-rw-r--r--lib/Target/ARM/Disassembler/ARMDisassembler.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/ARM/Disassembler/ARMDisassembler.cpp b/lib/Target/ARM/Disassembler/ARMDisassembler.cpp
index dea38bf00a..5fd641db2d 100644
--- a/lib/Target/ARM/Disassembler/ARMDisassembler.cpp
+++ b/lib/Target/ARM/Disassembler/ARMDisassembler.cpp
@@ -454,6 +454,8 @@ ThumbDisassembler::AddThumbPredicate(MCInst &MI) const {
break;
case ARM::tB:
case ARM::t2B:
+ case ARM::t2TBB:
+ case ARM::t2TBH:
// Some instructions (mostly unconditional branches) can
// only appears at the end of, or outside of, an IT.
if (ITBlock.size() > 1)