<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - LLC can't build gather's intrinsic with constant mask parameter"
   href="https://llvm.org/bugs/show_bug.cgi?id=24768">24768</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>LLC can't build gather's intrinsic with constant mask parameter
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>tools
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>llc
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>shishpanov2010@yandex.ru
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>babokin@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=14862" name="attach_14862" title="sample of the input data">attachment 14862</a> <a href="attachment.cgi?id=14862&action=edit" title="sample of the input data">[details]</a></span>
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</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>