fix visitShift to properly zero extend the shift amount if the provided operand
authorChris Lattner <sabre@nondot.org>
Sun, 13 Feb 2011 09:02:52 +0000 (09:02 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 13 Feb 2011 09:02:52 +0000 (09:02 +0000)
commitd3027738856d57ee22930deca0c7977fdc13e633
tree1b405b458f8347a9fa5f6a4a1251da4e0b9a82e3
parentc55f58b1a6a3ed0c386353a88b2b04681407adbe
fix visitShift to properly zero extend the shift amount if the provided operand
is narrower than the shift register.  Doing an anyext provides undefined bits in
the top part of the register.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125457 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
test/CodeGen/CellSPU/shift_ops.ll
test/CodeGen/MBlaze/shift.ll