https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82261
Michael Clark <michaeljclark at mac dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |michaeljclark at mac dot com --- Comment #2 from Michael Clark <michaeljclark at mac dot com> --- Just refreshing this issue. I found it while testing some code-gen on Godbolt: - https://godbolt.org/z/uXGxZ9 I noticed that Haswell code-gen uses SHRX/SHLX, but I think -Os and pre-Haswell would benefit from this peephole if it is not complex to add. Noting that Clang prefers SHLD / SHRD over the SHRX+SHLX pair no matter the -march flavor.