Fixed a bug when lowering build_vector (PR19694)
authorFilipe Cabecinhas <me@filcab.net>
Sun, 11 May 2014 08:12:56 +0000 (08:12 +0000)
committerFilipe Cabecinhas <me@filcab.net>
Sun, 11 May 2014 08:12:56 +0000 (08:12 +0000)
commit4ccf0ebb19ffcd22ee730d3c90112dea31d619f4
tree3e148a1c800a0c30b61d26943eca7a1995cdb1ae
parente283f741337bd1ceb9a00c598ee6f6453d3f0129
Fixed a bug when lowering build_vector (PR19694)

When lowering build_vector to an insertps, we would still lower it, even
if the source vectors weren't v4x32. This would break on avx if the source
was a v8x32. We now check the type of the source vectors.

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