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