There's the GENERIC operation `LROTATE_EXPR` and `RROTATE_EXPR` that can be used instead of having a manual implementation of these intrinsics. **Edit:** Or maybe not since [they seem to want to remove this intrinsic](https://github.com/rust-lang/rust/pull/148478#issuecomment-3492084154).