[x86] Fix a miscompile in the new shuffle lowering uncovered by
authorChandler Carruth <chandlerc@gmail.com>
Fri, 27 Jun 2014 18:25:23 +0000 (18:25 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 27 Jun 2014 18:25:23 +0000 (18:25 +0000)
commit75504d45ec5b1c3c19b3db9ab7efe29d3d1ac1e9
tree875c5e3cbf7485ca422e8f712e501502d6ddff8f
parentc8a1169c935ad9d3dfbdd4f72d80abf8f5acb03c
[x86] Fix a miscompile in the new shuffle lowering uncovered by
a bootstrap.

I managed to mis-remember how PACKUS worked on x86, and was using undef
for the high bytes instead of zero. The fix is fairly obvious.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211922 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/vector-shuffle-128-v16.ll