[PATCH] D42772: [X86] Allow KTEST 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 11:44:12 PST 2018


craig.topper planned changes to this revision.
craig.topper added a comment.

Turns out KTEST doesn't actually compare with all 1s. Only KORTEST does that. KTEST sets the C flag based on the result of ANDN being 0 like ptest.


https://reviews.llvm.org/D42772





More information about the llvm-commits mailing list