[X86] Support v32i16/v64i8 CTLZ using lookup table.
authorCraig Topper <craig.topper@intel.com>
Wed, 22 Nov 2017 20:05:57 +0000 (20:05 +0000)
committerCraig Topper <craig.topper@intel.com>
Wed, 22 Nov 2017 20:05:57 +0000 (20:05 +0000)
commit726968d6a2eee646a1c6f850bc6ad1a6999dbb87
treec6a606107baa5046428c11400add57a38c88d3eb
parent8ad818656af9f9589cde108fae5d423b5343930d
[X86] Support v32i16/v64i8 CTLZ using lookup table.

Had to tweak the setcc's used by the code to use a vXi1 result type with a sign extend back to vector size.

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