[X86] Prevent crash in LowerBUILD_VECTORvXi1 for v64i1 vectors on 32-bit targets...
authorCraig Topper <craig.topper@intel.com>
Thu, 19 Sep 2019 06:50:39 +0000 (06:50 +0000)
committerCraig Topper <craig.topper@intel.com>
Thu, 19 Sep 2019 06:50:39 +0000 (06:50 +0000)
commitc2d25ed1b36d1c9cd02421b09635c1ee55b8099d
tree916d9219ad3626f9d3a2b5ae01b57460abaabe48
parent56aa691c4149a20c28b1ec3a1f0ee06b591fa49c
[X86] Prevent crash in LowerBUILD_VECTORvXi1 for v64i1 vectors on 32-bit targets when the vector is a mix of constants and non-constant.

We need to materialize the constants as two 32-bit values that
are casted to v32i1 and then concatenated.

llvm-svn: 372304
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/avx512-mask-op.ll