Fix PR2986: do not use a potentially illegal
authorDuncan Sands <baldrick@free.fr>
Thu, 30 Oct 2008 20:26:50 +0000 (20:26 +0000)
committerDuncan Sands <baldrick@free.fr>
Thu, 30 Oct 2008 20:26:50 +0000 (20:26 +0000)
commit3d0f5afefb2c8be6233c2bcebdcf57a5c0b2b9a2
tree5c468a43335b462c5f5fbc12ac0865238fde9e4b
parentc9d4d755cfb765785c2716bcf98de005356ef676
Fix PR2986: do not use a potentially illegal
type for the shift amount type.  Add a check
that shifts and rotates use the type returned
by getShiftAmountTy for the amount.  This
exposed some problems in CellSPU and PPC,
which have already been fixed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58455 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAG.cpp