Check numeric shifts for two's complement semantics.