[LLVMbugs] [Bug 17310] New: LLVMOpInfoCallback GetOpInfo not setting correct insn->displacementSize

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Sep 20 14:52:22 PDT 2013


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

            Bug ID: 17310
           Summary: LLVMOpInfoCallback GetOpInfo  not setting correct
                    insn->displacementSize
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: X86
          Assignee: unassignedbugs at nondot.org
          Reporter: James.Dutton at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 11250
  --> http://llvm.org/bugs/attachment.cgi?id=11250&action=edit
PATCH to fix the problem.

I am looking at the "LLVMOpInfoCallback GetOpInfo" callback.

Example 1 GOOD:
41 c6 84 24 16 04 00 00 0c :      movb    $12, 1046(%r12)

Makes calls to the callback with:
Offset = 0x4, Size = 0x4 <- Octets: 16 04 00 00
Offset = 0x8, Size = 0x1 <- Octets: 0c
That was correct.

Example 2 BAD:
c7 45 98 a1 ff ff ff :    movl    $4294967201, -104(%rbp)
Makes calls to the callback with:
Offset = 0x2, Size = 0x4 <- Octets: 98 a1 ff ff
Offset = 0x3, Size = 0x4 <- Octets: a1 ff ff ff
That is wrong.
The callbacks should be:
Offset = 0x2, Size = 0x1   <- Octets: 98
Offset = 0x3, Size = 0x4   <- Octets: a1 ff ff ff

-- 
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/20130920/41d993e6/attachment.html>


More information about the llvm-bugs mailing list