[LLVMbugs] [Bug 16357] New: LDR_POST_IMM emits code as could not recognize

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jun 17 23:49:56 PDT 2013


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

            Bug ID: 16357
           Summary: LDR_POST_IMM emits code as could not recognize
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: ARM
          Assignee: unassignedbugs at nondot.org
          Reporter: manjian2006 at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

LDR_POST_IMM emits texts like that:
    ldr    r2, [r5], #4
    str    r2, [r0], #4
    subs    r1, r1, #4
    bne    .LBB35_1
which couldn't be recognized by binutils' as.
And these code are generated by memcpy.
Is that normal?
And I tried to change its definition from:
   def _POST_IMM : AI2ldstidx<0, isByte, 0, (outs GPR:$Rn_wb),
                (ins GPR:$Rt, addr_offset_none:$addr, am2offset_imm:$offset),
                IndexModePost, StFrm, iii,
                opc, "\t$Rt, $addr, $offset",
                "$addr.base = $Rn_wb", []> {
to:
   def _POST_IMM : AI2ldstidx<0, isByte, 0, (outs GPR:$Rn_wb),
                (ins GPR:$Rt, addr_offset_none:$addr, am2offset_imm:$offset),
                IndexModePost, StFrm, iii,
                opc, "\t$Rt, $addr!",
                "$addr.base = $Rn_wb", []> {
and llvm seemed to generate the acceptable code:
    ldr    r2, [r5]!
    str    r2, [r0]!

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130618/274f34c9/attachment.html>


More information about the llvm-bugs mailing list