[Git][ghc/ghc][wip/hugepages] 70 commits: Check that shift values are valid