Re: [avr-gcc-list] [bug] cbi optimization error for 8-bit AVRs

2014-11-17 Thread Joern Rennecke
On 17 November 2014 17:17, Georg-Johann Lay wrote: > as a test case which works both for C and C++. The C++ front fails in > applying a similar type demotion like the C front, Well, duh, that's because it's a different language. > > > Is there a solution that is more reliable than combine? Cur

Re: [avr-gcc-list] [bug] cbi optimization error for 8-bit AVRs

2014-11-17 Thread Georg-Johann Lay
Am 11/09/2014 10:00 PM, schrieb Joern Rennecke: On 8 November 2014 00:32, Szikra István wrote: Hi everyone! My problem in sort: I’m getting in r24, 0x18 ldi r25, 0x00 andir24, 0xEF out 0x18, r24 instead of cbi 0x18, 4 . I’m try

Re: [avr-gcc-list] [bug] cbi optimization error for 8-bit AVRs

2014-11-17 Thread Georg-Johann Lay
Am 11/09/2014 05:35 PM, schrieb Joern Rennecke: On 8 November 2014 00:32, Szikra István wrote: Unfortunately GCC support for AVR (among other things) is not always flawless. And it changes from versions to version (and not always for the better). regression tests can help to catch instances

Re: [avr-gcc-list] [bug] cbi optimization error for 8-bit AVRs

2014-11-10 Thread David Brown
On 08/11/14 21:42, Szikra István wrote: > On 2014.11.08. 13:48, David Brown wrote: >> On 08/11/14 01:32, Szikra István wrote: >>> Hi everyone! >>> >>> My problem in sort: I’m getting >>> inr24, 0x18 >>> ldir25, 0x00 >>> andir24, 0xEF >>> out0x18, r24 >>> instead

Re: [avr-gcc-list] [bug] cbi optimization error for 8-bit AVRs

2014-11-09 Thread Joern Rennecke
On 8 November 2014 00:32, Szikra István wrote: > Hi everyone! > > My problem in sort: I’m getting > in r24, 0x18 > ldi r25, 0x00 > andir24, 0xEF > out 0x18, r24 > instead of > cbi 0x18, 4 > . > > I’m trying to write efficient modern C/C+

Re: [avr-gcc-list] [bug] cbi optimization error for 8-bit AVRs

2014-11-09 Thread Joern Rennecke
On 8 November 2014 00:32, Szikra István wrote: > Unfortunately GCC support for AVR (among other things) is not always > flawless. And it changes from versions to version (and not always for the > better). regression tests can help to catch instances where the compiler looses functionality. I'm

Re: [avr-gcc-list] [bug] cbi optimization error for 8-bit AVRs

2014-11-08 Thread Szikra István
On 2014.11.08. 13:48, David Brown wrote: On 08/11/14 01:32, Szikra István wrote: Hi everyone! My problem in sort: I’m getting inr24, 0x18 ldir25, 0x00 andir24, 0xEF out0x18, r24 instead of cbi0x18, 4 . I’m trying to write efficient modern C/C++ code

Re: [avr-gcc-list] [bug] cbi optimization error for 8-bit AVRs

2014-11-08 Thread David Brown
On 08/11/14 01:32, Szikra István wrote: Hi everyone! My problem in sort: I’m getting inr24, 0x18 ldir25, 0x00 andir24, 0xEF out0x18, r24 instead of cbi0x18, 4 . I’m trying to write efficient modern C/C++ code for multiple platforms including AVR 8 bi