[x86] Fix a bug in the v8i16 shuffling exposed by the new splat-like
authorChandler Carruth <chandlerc@gmail.com>
Sat, 28 Jun 2014 05:46:28 +0000 (05:46 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sat, 28 Jun 2014 05:46:28 +0000 (05:46 +0000)
commitbd0717d7cc9c3a6c028ea6f5e7e7fbabe74c59d2
treef021b1267cdbea8b31694e0f7e32a62cf77c8c1f
parentd5821f36d94523ac7711b983fc6b433e954497e0
[x86] Fix a bug in the v8i16 shuffling exposed by the new splat-like
lowering for v16i8.

ASan and some bots caught this bug with existing test cases. Fixing it
even fixed a miscompile with one of the test cases. I'm still a bit
suspicious of this test case as I've not taken a proper amount of time
to think about it, but the fix here is strict goodness.

llvm-svn: 211976
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/vector-shuffle-128-v16.ll