Thumb2 TBB and TBH instructions are only allowed at the end of IT blocks, not in...
authorOwen Anderson <resistor@mac.com>
Mon, 19 Sep 2011 22:34:23 +0000 (22:34 +0000)
committerOwen Anderson <resistor@mac.com>
Mon, 19 Sep 2011 22:34:23 +0000 (22:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140079 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/Disassembler/ARMDisassembler.cpp

index dea38bf00a36d831149086c568f434e2ef241ba5..5fd641db2de1690077b5d52d83dbe113c8333602 100644 (file)
@@ -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)