<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 - Illegal instructions since [AMDGPU] Produce madak and madmk from the two-address pass"
   href="https://bugs.llvm.org/show_bug.cgi?id=34654">34654</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Illegal instructions since  [AMDGPU] Produce madak and madmk from the two-address pass
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </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>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>adf.lists@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>R9 285 Tonga.

Updated llvm and on head I get an assert with most gl usage.

valley_x64: /mnt/sdb1/Gits/llvm/include/llvm/CodeGen/MachineOperand.h:278:
unsigned int llvm::MachineOperand::getReg() const: Assertion `isReg() && "This
is not a register operand!"' failed.

Going back to find a good, testing with Unigine Valley I got floods of

LLVM triggered Diagnostic Handler: Illegal instruction detected: VOP*
instruction uses the constant bus more than once
%VGPR20<def> = V_MADAK_F32 %SGPR5, %VGPR22, -1194215657, %EXEC<imp-use>

Bisecting the illegal instruction issue came up with -

commit 46582be9742d931368f9455a768df95d9525ccf5
Author: Stanislav Mekhanoshin <<a href="mailto:Stanislav.Mekhanoshin@amd.com">Stanislav.Mekhanoshin@amd.com</a>>
Date:   Mon Sep 11 17:13:57 2017 +0000

    [AMDGPU] Produce madak and madmk from the two-address pass

    These two instructions are normally selected, but when the
    two address pass converts mac into mad we end up with the
    mad where we could have one of these.

    Differential Revision: <a href="https://reviews.llvm.org/D37389">https://reviews.llvm.org/D37389</a>

    git-svn-id: <a href="https://llvm.org/svn/llvm-project/llvm/trunk@312928">https://llvm.org/svn/llvm-project/llvm/trunk@312928</a>
91177308-0d34-0410-b5e6-96231b3b80d8</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>