[Git][ghc/ghc][wip/sjakobi/T27115] 38 commits: Check that shift values are valid