[Git][ghc/ghc][wip/dcoutts/posix-ticker] 58 commits: Check that shift values are valid