<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - [AMDGPU] *** Couldn't join subrange! whne compiling kernel that use 3 element vectors"
   href="https://bugs.llvm.org/show_bug.cgi?id=36679">36679</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[AMDGPU] *** Couldn't join subrange! whne compiling kernel that use 3 element vectors
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.0
          </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>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>Backend: AMDGPU
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>jan.vesely@rutgers.edu
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=20030" name="attach_20030" title="lgamma_r.link-1.ll">attachment 20030</a> <a href="attachment.cgi?id=20030&action=edit" title="lgamma_r.link-1.ll">[details]</a></span>
lgamma_r.link-1.ll

(CARRIZO / DRM 3.23.0 / 4.15.6-300.fc27.x86_64, LLVM 6.0.0)

Running OpenCL CTS:
./conformance_bruteforce lgamma_r -3
results in:
*** Couldn't join subrange!

UNREACHABLE executed at
/home/jvesely/llvm/lib/CodeGen/RegisterCoalescer.cpp:2916!

Note that other vector widths do not crash.
Linked .ll file is attached. The crash can be reproduced running:

llc -march=amdgcn -mcpu=carrizo < lgamma_r.link-1.ll</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>