Fix a bug in the lowering of BUILD_VECTOR for AVX. SCALAR_TO_VECTOR does not zero...
authorNadav Rotem <nadav.rotem@intel.com>
Wed, 11 Jan 2012 14:07:51 +0000 (14:07 +0000)
committerNadav Rotem <nadav.rotem@intel.com>
Wed, 11 Jan 2012 14:07:51 +0000 (14:07 +0000)
commit394a1f53b90698486ac7c75724a6bda349cd0353
treec6dde480f491863ee41c3c7678782704ccce7683
parent1876abe63edf0380aee3d0f3ad9cace3f7e6a042
Fix a bug in the lowering of BUILD_VECTOR for AVX. SCALAR_TO_VECTOR does not zero untouched elements. Use INSERT_VECTOR_ELT instead.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147948 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/2012-1-10-buildvector.ll
test/CodeGen/X86/avx-load-store.ll