Use the splat index to generate the desired shuffle. Otherwise we
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Thu, 11 Aug 2011 02:49:41 +0000 (02:49 +0000)
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Thu, 11 Aug 2011 02:49:41 +0000 (02:49 +0000)
commita5134a0ea3ee9e12ae3ca7907b7998e0d7f4d441
treecbbbe28951ec8c985bdd398aa9e7cf29bfe484a5
parent586272d67ca0cd91e49aa0f03298cc1294128385
Use the splat index to generate the desired shuffle. Otherwise we
could only get undefs and the vector shuffle becomes an undef,
generating wrong code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137295 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/avx-splat.ll