<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 - Enable modifiers on V_MOV_B32"
   href="https://bugs.llvm.org/show_bug.cgi?id=50348">50348</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Enable modifiers on V_MOV_B32
          </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>All
          </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>joseph.nash@amd.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>According to the spec, while specified to use arbitrary data formats, FP
modifiers (negation,absolute value, clamp and omod) are allowed on this
instruction. But the code does not allow this.

VOP1Instructions.td:181
defm V_MOV_B32 : VOP1Inst <"v_mov_b32", VOP_I32_I32>;

Part of the limitation is due to the use of a VOP_I32_I32 profile, which
disallows modifiers. 

Due to the use of MOV instructions explicitly in several AMDGPU backend passes,
additional checks may have to be added to those passes if modifiers are allowed
on V_MOV_B32

If enabled, this feature could perhaps result in more optimal code, when a
value needs to have modifiers applied.</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>