https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110362
Roger Sayle <roger at nextmovesoftware dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|rtl-optimization |tree-optimization CC| |roger at nextmovesoftware dot com --- Comment #2 from Roger Sayle <roger at nextmovesoftware dot com> --- The good news is that this has been fixed in the RTL optimizers/x86 backend, and GCC-14 currently produces the optimal "mov rax, rdx". However, I agree with Richard Biener that could/should also be fixed (earlier) at the tree-level.