https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115084
--- Comment #3 from Georg-Johann Lay <gjl at gcc dot gnu.org> --- I don't see what the avr backend can do about it; it's rather a middle-end thing. And the middle-end would have to know that there is a 24-bit integral mode in the backend and that its division is preferred over 32-bit division...