X86: Fixed assertion failure in 32-bit mode
authorElena Demikhovsky <elena.demikhovsky@intel.com>
Thu, 23 Jul 2015 08:25:23 +0000 (08:25 +0000)
committerElena Demikhovsky <elena.demikhovsky@intel.com>
Thu, 23 Jul 2015 08:25:23 +0000 (08:25 +0000)
commitfb09d25df50dad9aa580032e66dd076b7c31c6c9
treeec28be466e51074c5f5bad7e5dbaa08f71e825d4
parentfe6b5aa191bf616ae13a9d01463bf6b0a5d8b19a
X86: Fixed assertion failure in 32-bit mode
The DAG Node "SCALAR_TO_VECTOR" may be created if the type of the scalar element is legal.
Added a check for the scalar type before creating this node.
Added a test that fails with assertion on the current version.

Differential Revision: http://reviews.llvm.org/D11413

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