[LLVMbugs] [Bug 14094] New: immediate in DecodeThumbAddSPImm has to left shift 2 bits

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Oct 15 23:03:25 PDT 2012


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

             Bug #: 14094
           Summary: immediate in DecodeThumbAddSPImm has to left shift 2
                    bits
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: ARM
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: koviankevin at hotmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


According to ARMv7 document in encoding T2 of SUB (SP minus immediate) section

imm32 = ZeroExtend(imm7:'00', 32);

so the parameter pass to MCOperand::CreateImm(imm) have to be "imm << 2"

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