[Git][ghc/ghc][wip/sjakobi/upsert] 49 commits: Check that shift values are valid