Fix ExpandShiftWithUnknownAmountBit, which was completely bogus.
authorDuncan Sands <baldrick@free.fr>
Thu, 3 Dec 2009 21:37:32 +0000 (21:37 +0000)
committerDuncan Sands <baldrick@free.fr>
Thu, 3 Dec 2009 21:37:32 +0000 (21:37 +0000)
commit9993b88f06fd54c0be31d35f0970ada70a4c0439
treeb49e3cf54a01ad529102922891d25639949f0273
parentf4811a96941433fc3828869d76dfeba5ec5decd3
Fix ExpandShiftWithUnknownAmountBit, which was completely bogus.
Pointed out by Javier Martinez (who also provided a patch).  Since
this logic is not used on (for example) x86, I guess nobody noticed.
Tested by generating SHL, SRL, SRA on various choices of i64 for all
possible shift amounts, and comparing with gcc.  Since I did this on
x86-32, I had to force the use of ExpandShiftWithUnknownAmountBit.
What I'm saying here is that I don't have a testcase I can add to the
repository.

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