https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52070
Roger Sayle <roger at nextmovesoftware dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |roger at nextmovesoftware dot com Resolution|--- |FIXED See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=96674 Target Milestone|--- |13.0 Status|NEW |RESOLVED --- Comment #3 from Roger Sayle <roger at nextmovesoftware dot com> --- This has been fixed (optimally) since GCC 13, by Eugene Rozenfeld's fix for PR tree-optimization/96674. The conditional jump was eliminated back in GCC 4.9, but the combination of the two tests into a subtraction and a single comparison was implemented (at the tree level) by Eugene.