[LLVMbugs] [Bug 10572] New: [ARM disasm] PC-relative LDR with negative offset is disassembled incorrectly

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Aug 2 14:11:42 PDT 2011


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

           Summary: [ARM disasm] PC-relative LDR with negative offset is
                    disassembled incorrectly
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sliedes at cc.hut.fi
                CC: llvmbugs at cs.uiuc.edu


LLVM disassembles the opcode

  e51f5134

as

  ldr     r5, [pc, #4404]

This cannot be correct, as offsets range from -4095 to 4095. In fact the imm12
value in the opcode is 308 and the U bit is set, so this instruction should be
decoded as

  ldr     r5, [pc, #-308]

-- 
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