https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82498
--- Comment #5 from Jack Lloyd <lloyd at randombit dot net> --- Jakub thank you very much for your comments, this was helpful for me in getting consistent rol/ror generation. Speaking as a user it's frustrating that Clang and GCC don't just have a builtin for rotations like MSVC does, instead you have to guess what expressions the optimizer(s) know about. That said there are a lot of strange ways to right a rotate and probably GCC doesn't need to know all of them.