<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][MC] f16 inline constants are still enabled for integer operands of several opcodes"
   href="https://bugs.llvm.org/show_bug.cgi?id=46980">46980</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[AMDGPU][MC] f16 inline constants are still enabled for integer operands of several opcodes
          </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>dpreobrazhensky@luxoft.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>A recent change 5f5f566 disabled use of fp inline constants with 16-bit integer
operands. However there are several opcodes which still accept such constants:

    s_sext_i32_i16
    s_pack_lh_b32_b16
    s_pack_ll_b32_b16
    s_pack_hh_b32_b16
    v_sat_pk_u8_i16  
    v_sad_u16

I believe this should be corrected.

Also there are opcodes which operate with 8-bit and 4-bit data, for example,   
 s_sext_i32_i8. Should fp inline constants be disabled for these instructions?

qsad opcodes (v_mqsad_pk_u16_u8, v_qsad_pk_u16_u8 etc) is another interesting
case because these instructions accept u16x4 operands; it is not clear how fp
inline constants are interpreted in this context.

Any ideas?</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>