https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80929
Roger Sayle <roger at nextmovesoftware dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |roger at nextmovesoftware dot com Resolution|--- |FIXED Target Milestone|9.5 |11.3 --- Comment #17 from Roger Sayle <roger at nextmovesoftware dot com> --- According to godbolt, with the example from comment #6, this appears to have been fixed in gcc 11.1, but was still present (generated calls to __divmodhi4) back in gcc 10.3. Likewise the original example in comment #1 has been fixed since gcc 5.4, but was broken in gcc 4.6.4.