[LLVMbugs] [Bug 13035] New: Thumb LDRD/STRD with negative #0 offset is decoded as a positive #0 offset.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jun 6 03:26:17 PDT 2012


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

             Bug #: 13035
           Summary: Thumb LDRD/STRD with negative #0 offset is decoded as
                    a positive #0 offset.
           Product: libraries
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: ARM
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: richard.barton at arm.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


The LDRD/STRD instructions with negative #0 is a different instruction encoding
from the positive #0 offset. MC treats both as positive #0.

reporduce with:

echo 0x62 0xe9 0x00 0x01 | .../llvm-mc -triple thumbv7 -show-encoding
-disassemble -show-inst

        .section        __TEXT,__text,regular,pure_instructions
        ldrd    r0, r1, [r2]!           @ encoding: [0xf2,0xe9,0x00,0x01]
                                        @ <MCInst #2283 t2LDRD_PRE
                                        @  <MCOperand Reg:60>
                                        @  <MCOperand Reg:61>
                                        @  <MCOperand Reg:62>
                                        @  <MCOperand Reg:62>
                                        @  <MCOperand Imm:0>
                                        @  <MCOperand Imm:14>
                                        @  <MCOperand Reg:0>>

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