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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to