[llvm-bugs] [Bug 25797] New: missing break in HexagonDisassembler

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Dec 10 02:28:19 PST 2015


https://llvm.org/bugs/show_bug.cgi?id=25797

            Bug ID: 25797
           Summary: missing break in HexagonDisassembler
           Product: libraries
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Target Description Classes
          Assignee: unassignedbugs at nondot.org
          Reporter: itsme at xs4all.nl
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

V4_SA1_addrx  gets too many operands because of a missing break.

patch:

diff --git a/lib/Target/Hexagon/Disassembler/HexagonDisassembler.cpp
b/lib/Target/Hexagon/Disassembler/HexagonDisassembler.cpp
index 1db59e1..f6d8793 100644
--- a/lib/Target/Hexagon/Disassembler/HexagonDisassembler.cpp
+++ b/lib/Target/Hexagon/Disassembler/HexagonDisassembler.cpp
@@ -1459,6 +1459,7 @@ void HexagonDisassembler::addSubinstOperands(MCInst *MI,
unsigned opcode,
     operand = getRegFromSubinstEncoding((inst & 0xf0) >> 4);
     Op = MCOperand::createReg(operand);
     MI->addOperand(Op);
+    break;
   case Hexagon::V4_SA1_and1:
   case Hexagon::V4_SA1_dec:
   case Hexagon::V4_SA1_inc:

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151210/e0bf196e/attachment.html>


More information about the llvm-bugs mailing list