Fix SimplifyDemandedBits' AssertZext logic to demand all the bits. It
authorDan Gohman <gohman@apple.com>
Thu, 3 Jun 2010 20:21:33 +0000 (20:21 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 3 Jun 2010 20:21:33 +0000 (20:21 +0000)
commit400f75cb5ed39ab4f071f78f6a26beefbc8a46f0
tree03b34bf45cb5dc8bc25cf7aba2987e2ec447b973
parent3844173f6e5c2d3e309d71d8980e25cca1b9305d
Fix SimplifyDemandedBits' AssertZext logic to demand all the bits. It
needs to demand the high bits because it's asserting that they're zero.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105406 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/TargetLowering.cpp
test/CodeGen/X86/promote-assert-zext.ll [new file with mode: 0644]