Fix Issue 11417 - rotate with immediate not recognized by optimizer