https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54816
Roger Sayle <roger at nextmovesoftware dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |roger at nextmovesoftware dot
com
--- Comment #2 from Roger Sayle <roger at nextmovesoftware dot com> ---
The original problem looks to be fixed on mainline. Can you confirm this
Wilhelm? If so we can close this PR.
With -Os -mmcu=atmega8, we currently generate (the desired):
wmul: lsl r22
lsl r22
lsl r22
muls r22,r24
movw r24,r0
clr __zero_reg__
ret