[LLVMbugs] [Bug 13913] New: MCDisassembler getInstruction API

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Sep 24 22:46:26 PDT 2012


             Bug #: 13913
           Summary: MCDisassembler getInstruction API
           Product: new-bugs
           Version: 3.1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: bendog0224 at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

    I use MC getInstruction API to decode ARM instructions.

one of the instructions has problem,

The instruction is

e51f3000        ldr     r3, [pc, #-0]

Then I extract MCOperand m from MCInst,

For the offset MCOperand, I call m->getImm() ; 

It does not return 0 but a big number 2147483648

Have A Nice Day

Chia Lun

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