[Git][ghc/ghc][wip/jeltsch/stability-risk-1-and-2-module-deprecation] 25 commits: Check that shift values are valid