[LLVMbugs] [Bug 20703] New: [AVX512] add support for ktest

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Aug 19 09:08:41 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=20703

            Bug ID: 20703
           Summary: [AVX512] add support for ktest
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: matt at pharr.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

It would be quite useful to have the ktest instructions available as an
intrinsics.

Alternatively (or in addition?) it would be nice if avx512 codegen matched
patterns along the lines of

%0 = bitcast <16 x i1> %mask to i16
%c = icmp eq i16 %0, 0

And generated a ktest (rather than a kmovw to a scalar register and then a test
instruction as it does now).

Even better, detecting

%mask = and <16 x i1> %mask1, %mask2
%0 = bitcast <16 x i1> %mask to i16
%c = icmp eq i16 %0, 0

And also turning that into a single ktest taking %mask1 and %mask2 would be
great as well.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140819/f50ce291/attachment.html>


More information about the llvm-bugs mailing list