[AVX512][FastISel] Do not use K registers in TEST instructions
authorGuy Blank <guy.blank@intel.com>
Sun, 21 Aug 2016 08:02:27 +0000 (08:02 +0000)
committerGuy Blank <guy.blank@intel.com>
Sun, 21 Aug 2016 08:02:27 +0000 (08:02 +0000)
commit9ae797a7984aad0e0b09f2b030e7786cf395ab58
treeaaf11e837338965876b548e436f55d143199bdd7
parent356bb76809e29d25b0014fcca6008235fe6410ae
[AVX512][FastISel] Do not use K registers in TEST instructions

In some cases, FastIsel was emitting TEST instruction with K reg input, which is illegal.
Changed to using KORTEST when dealing with K regs.

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

llvm-svn: 279393
llvm/lib/Target/X86/X86FastISel.cpp
llvm/test/CodeGen/X86/fast-isel-select-cmov.ll