https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90088
dingd <ntysdd at qq dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ntysdd at qq dot com --- Comment #7 from dingd <ntysdd at qq dot com> --- Hi, I just encouter the same "problem". (Actually am surprised by clang "missing" this simple optimization) As of 2022, gcc and clang still choose to emit different instructions. Are there any conclusions?