https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80574 --- Comment #12 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note the original example in comment #0 is now optimized for GCC 14 but only at the RTL level rather than the gimple level.