Fix pr11193.
authorNadav Rotem <nadav.rotem@intel.com>
Sat, 22 Oct 2011 12:39:25 +0000 (12:39 +0000)
committerNadav Rotem <nadav.rotem@intel.com>
Sat, 22 Oct 2011 12:39:25 +0000 (12:39 +0000)
commit5b2bba61229fb8c262be90ef7705b41cb29edde0
treee742905e9d0e09e38f13957069e4229d68f074eb
parentb8dcb314f7f9c5c0f068a322c689a64881d78b70
Fix pr11193.
SHL inserts zeros from the right, thus even when the original
sign_extend_inreg value was of 1-bit, we need to sra.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142724 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/2011-10-21-widen-cmp.ll