RE: [Patch,avr]: Fix PR54815

2012-10-05 Thread Weddington, Eric
> -Original Message- > From: Georg-Johann Lay > Sent: Friday, October 05, 2012 8:30 AM > To: gcc-patches@gcc.gnu.org > Cc: Denis Chertykov; Weddington, Eric > Subject: [Patch,avr]: Fix PR54815 > > avr-gcc compiles code like > > void f (int, int); > >

[Patch,avr]: Fix PR54815

2012-10-05 Thread Georg-Johann Lay
avr-gcc compiles code like void f (int, int); void f_or (int x) { f (x, x | 42); } to f_or: ldi r22,lo8(42) ; 15*movhi/5[length = 2] ldi r23,0 or r22,r24 ; 6iorhi3/1[length = 2] or r23,r25 rjmp f but this is more efficient: f_or: movw