https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65250
--- Comment #2 from Oleg Endo <olegendo at gcc dot gnu.org> --- Briefly checked this one on GCC-13. It generates the optimal sequence.
olegendo at gcc dot gnu.org via Gcc-bugs Sat, 21 Oct 2023 18:32:26 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65250
--- Comment #2 from Oleg Endo <olegendo at gcc dot gnu.org> --- Briefly checked this one on GCC-13. It generates the optimal sequence.