[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)
commit3e5215bf73401752282425e412fa16a6a6b2c7ae
treebc6f5f6588a1d445b2eef7d77a908a1dfe81435f
parentdc3a2fc6195154a10f5d47fbe3f4e6d3441eaffb
[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.

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