Why does arm-*-as issue a warning for "strb r3, [r3], #1"?
Daniel Jacobowitz
drow@false.org
Fri Jun 24 14:15:00 GMT 2005
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
More information about the Binutils
mailing list