https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124624
--- Comment #1 from Kang-Che Sung <Explorer09 at gmail dot com> --- Note that this issue is not specific to x86-64 target. I can observe the same missed optimization with AArch64 and RISCV64 targets within Compiler Explorer.
