[Git][ghc/ghc][wip/sjakobi/T27096] 112 commits: Check that shift values are valid