Machine description and code generation

2014-10-29 Thread Mathias Roslund
both produce similar, but not identical, results. The result is equally strange for a simple move: C: data[1] = data[0]; ASM: movedata+4,data ;# 8movsi C: data[0] = data[1]; ASM: add r0,#data,#4 ;# 7addsi3 movedata,(r0) ;# 8movsi What's so special about the first entry in an array that causes this? I have a feeling I'm missing something obvious here :-) Any ideas? Best regards, Mathias Roslund

RE: Machine description and code generation

2014-11-26 Thread Mathias Roslund
> From: gcc-ow...@gcc.gnu.org [mailto:gcc-ow...@gcc.gnu.org] On Behalf Of > Jeff Law > Sent: Wednesday, October 29, 2014 9:36 PM > To: Mathias Roslund; gcc@gcc.gnu.org > Subject: Re: Machine description and code generation > > On 10/29/14 07:40, Mathias Roslund wrote: &

RE: Machine description and code generation

2014-11-27 Thread Mathias Roslund
> From: Joern Rennecke [mailto:joern.renne...@embecosm.com] > Sent: Wednesday, November 26, 2014 6:13 PM > To: Mathias Roslund > Cc: GCC > Subject: Re: Machine description and code generation > > On 26 November 2014 at 16:48, Mathias Roslund > wrote: > > Since the