https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115084 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- There is another bug dealing with division and truncation that was just filed. It is a generic (non-avr) issue.