[AVX512] Add support for popcount of v8i64 and v16i32 with and without BWI instructions.
authorCraig Topper <craig.topper@gmail.com>
Thu, 21 Apr 2016 03:57:24 +0000 (03:57 +0000)
committerCraig Topper <craig.topper@gmail.com>
Thu, 21 Apr 2016 03:57:24 +0000 (03:57 +0000)
commit3dd625ce79d847797b8224321b514119ae58bfe8
tree80ef522b3023015eb12abf9e7cd48a43a20ebd62
parent0ab44dbf8f2d01fd8c3304aa8b98f78682a57d0e
[AVX512] Add support for popcount of v8i64 and v16i32 with and without BWI instructions.

Without BWI we have to split the vectors into 256-bit vectors so we can use AVX2 pshufb and then concatenate the results.

llvm-svn: 266950
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/vector-popcnt-512.ll