* [Bug middle-end/34792] [avr] c++ worse than c compiler at 8-bit optimisations
[not found] <bug-34792-4@http.gcc.gnu.org/bugzilla/>
@ 2011-10-09 20:53 ` gjl at gcc dot gnu.org
0 siblings, 0 replies; only message in thread
From: gjl at gcc dot gnu.org @ 2011-10-09 20:53 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34792
Georg-Johann Lay <gjl at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target|avr-*-* |avr
Status|UNCONFIRMED |RESOLVED
CC| |gjl at gcc dot gnu.org
Resolution| |FIXED
Target Milestone|--- |4.7.0
--- Comment #1 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2011-10-09 20:52:54 UTC ---
Cosed as fixed in 4.7.0. With -Os -mmcu=avr4 both avr-gcc and avr-g++ compile
to the same, optimal code:
bar2:
eor r22,r24
andi r22,lo8(15)
mov r30,r22
ldi r31,lo8(0)
subi r30,lo8(-(data))
sbci r31,hi8(-(data))
ld r24,Z
ret
_Z4bar2hh:
eor r22,r24
andi r22,lo8(15)
mov r30,r22
ldi r31,lo8(0)
subi r30,lo8(-(data))
sbci r31,hi8(-(data))
ld r24,Z
ret
^ permalink raw reply [flat|nested] only message in thread