[LLVMbugs] [Bug 13115] New: Generated code for disassembler fails to handle instructions wider than 32bit (patch)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jun 15 03:24:53 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=13115

             Bug #: 13115
           Summary: Generated code for disassembler fails to handle
                    instructions wider than 32bit (patch)
           Product: tools
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: TableGen
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: stefan at stefant.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 8718
  --> http://llvm.org/bugs/attachment.cgi?id=8718
Patch for handling wide instructions in tablegen disassembler emitter

TableGen emits the following code to extract fields from instructions in the
disassembler:

fieldMask = ((1 << numBits) - 1) << startBit;

If startbit is greater than 31 (e.g. for a 64bit wide instruction that has some
fields at bits above bit 31), the field mask always evaluates to zero, causing
problems for the disassembler.

I attached a small patch to fix this issue.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list