This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Why does arm-*-as issue a warning for "strb r3, [r3], #1"?


On Fri, Jun 24, 2005 at 07:54:41AM -0400, Ian Lance Taylor wrote:
> According to my copy of the ARM ARM: "If <addressing mode> specifies
> base register writeback, and the same register is specified for <Rd>
> and <Rn>, the results are UNPREDICTABLE."
> 
> So I think the assembler is correct to warn about this construct, and
> the compiler should not generate it.

Yes, that's correct.  Kazu, unfortunately you weren't here for it, but
Richard Earnshaw and a group of us discussed this problem at length
yesterday.  It's a thorny reload issue.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]