[llvm-bugs] [Bug 24768] New: LLC can't build gather's intrinsic with constant mask parameter

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Sep 10 03:12:02 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=24768

            Bug ID: 24768
           Summary: LLC can't build gather's intrinsic with constant mask
                    parameter
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: llc
          Assignee: unassignedbugs at nondot.org
          Reporter: shishpanov2010 at yandex.ru
                CC: babokin at gmail.com, llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 14862
  --> https://llvm.org/bugs/attachment.cgi?id=14862&action=edit
sample of the input data

LLC tries to make a vector of the forth parameter (mask) of
@llvm.x86.avx512.gather.dpq.512 intrinsic, but it is impossible, because the
type of the resulting vector is a bool. 

Attached file: 
badIR.ll - this code does not work, if the forth gather's parameter "i8 3"
replace with "i8 bitcast (<8 x i1> <i1 true, i1 true, i1 false, i1 false, i1
false, i1 false, i1 false, i1 false> to i8)", then it compiles.

Key for llc launch: -mcpu=knl

-- 
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/20150910/39d491ef/attachment.html>


More information about the llvm-bugs mailing list