Daniel Murphy fixed rotate with immediate so you might want to make this a template.
[Issue 11417](https://d.puremagic.com/issues/show_bug.cgi?id=11417 "rotate with immediate not recognized by optimizer")