[Git][ghc/ghc][wip/sort-usages] 25 commits: Check that shift values are valid