[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug gas/13215] New: ARM Cortex M3 strexh strexb instructions with s
Re: [Bug gas/13215] New: ARM Cortex M3 strexh strexb instructions with same registers generates error
Thu, 29 Dec 2011 10:37:07 -0800 (PST)
Yep, I commented the base version (uint32_t result=0;).
Because it was offending the GNU assembler with:
- strexh r0, r0, [r1]
- strexb r0, r0, [r1]
Then I replaced it by:
- register uint32_t result asm ("r2");
According to ARM documentation, for STREX, Rd must be different from both Rt
now the compiler output is:
- strexh r2, r0, [r1]
- strexb r2, r0, [r1]
With the above assembler code, the GNU assembler (GAS) doesn't complain
I believe this is a great workaround for that problem.
View this message in context:
Sent from the Gnu - Binutils - Bugs mailing list archive at Nabble.com.