Fix the handling of edge cases in ARM shifted operands.