OSDN Git Service

AVX-512: Fixed a crash during legalization of <3 x i8> type
authorElena Demikhovsky <elena.demikhovsky@intel.com>
Sun, 25 Jun 2017 13:36:20 +0000 (13:36 +0000)
committerElena Demikhovsky <elena.demikhovsky@intel.com>
Sun, 25 Jun 2017 13:36:20 +0000 (13:36 +0000)
commite8c8f1585001eea94f95021fbd44549f57b5c4c3
tree0613e2d33b82568e6b5db049f15b3eddb794f917
parent5b97b27fed37116b48d8ba3b52bb13da41f5e8e4
AVX-512: Fixed a crash during legalization of <3 x i8> type

The compiler fails with assertion during legalization of SETCC for <3 x i8> operands.
The result is extended to <4 x i8> and then truncated <4 x i1>. It does not happen on AVX2, because the final result of SETCC is <4 x i32>.

Differential Revision: https://reviews.llvm.org/D34503

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306242 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
test/CodeGen/X86/avx512-vec3-crash.ll [new file with mode: 0644]