[PATCH] D42772: [X86] Allow KORTEST instruction to be used for testing if a mask is all ones

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 2 23:00:53 PST 2018


craig.topper updated this revision to Diff 132731.
craig.topper retitled this revision from "[X86] Allow KTEST instruction to be used for testing if a mask is all ones" to "[X86] Allow KORTEST instruction to be used for testing if a mask is all ones".
craig.topper added a comment.

Use KORTEST instead of KTEST since it has the correct flag behavior. Use KORTEST for all 0s check too. Enable usage of KORTEST on AVX512F for v16i1. KTEST v16i1 was added with AVX512DQ but AVX512F had KTEST.


https://reviews.llvm.org/D42772

Files:
  lib/Target/X86/X86ISelLowering.cpp
  test/CodeGen/X86/avx512-mask-op.ll
  test/CodeGen/X86/avx512-schedule.ll
  test/CodeGen/X86/setcc-lowering.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42772.132731.patch
Type: text/x-patch
Size: 7475 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180203/b7df324c/attachment.bin>


More information about the llvm-commits mailing list