shl is always zero extending, so always use a zero extending shift right.
authorChris Lattner <sabre@nondot.org>
Tue, 28 Sep 2004 17:54:07 +0000 (17:54 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 28 Sep 2004 17:54:07 +0000 (17:54 +0000)
commit0cba71b0d6e19e1ef4fe0e306357d9c2eae287b0
tree7e64b71dde73590b58b52e91400fda932fe8ebc4
parent8fb6882f19aab2b5ba9094195479701167c6cbe2
shl is always zero extending, so always use a zero extending shift right.
This latent bug was exposed by recent changes, and is tested as:
llvm/test/Regression/Transforms/InstCombine/2004-09-28-BadShiftAndSetCC.llx

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16546 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp