[Git][ghc/ghc][master] 2 commits: Check that shift values are valid