[LLVMbugs] [Bug 13535] New: llvm-mc does not use 16-bit instruction to encode pc-relative ADD

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Aug 6 10:22:43 PDT 2012


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

             Bug #: 13535
           Summary: llvm-mc does not use 16-bit instruction to encode
                    pc-relative ADD
           Product: tools
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: llvm-as
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: gregf at codeaurora.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


This is currently encoded as a 32-bit instruction:
add r0, pc, #4

It could be translated to:
adr, r0, #4

and encoded as the 16-bit instruction described at A8.8.12 in the ARMv7-A
reference manual.

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