<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 --- - [mc] Some F64 insns (v_add_f64 etc.) -- negative inline constants are not supported."
   href="https://llvm.org/bugs/show_bug.cgi?id=28202">28202</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[mc] Some F64 insns (v_add_f64 etc.) -- negative inline constants are not supported.
          </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>Windows NT
          </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>artem.tamazov@amd.com
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>artem.tamazov@amd.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, nikolay.haustov@amd.com
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=16583" name="attach_16583" title="00204.tests_tg_gfx7_asm_lit1_bug.06.08.min.v_add_etc_f64--iconst_encoding.zip">attachment 16583</a> <a href="attachment.cgi?id=16583&action=edit" title="00204.tests_tg_gfx7_asm_lit1_bug.06.08.min.v_add_etc_f64--iconst_encoding.zip">[details]</a></span>
00204.tests_tg_gfx7_asm_lit1_bug.06.08.min.v_add_etc_f64--iconst_encoding.zip

Example of failing instruction:
<span class="quote">> v_add_f64 v[0:1], -1, 0</span >

The resulting encoding is always with neg modifier, in spite that we have
suitable negative inline constants.

Note that in the instructions which have both 32- and 64-bit (VOP3) encodings
that would lead to unnecessary usage of VOP3.

Perhaps we need to introduce explicit syntax form of neg modifier which would
allow to distinguish negative constants from neg modifier applied to constant.

Tested with r273139 (git # 4a94acfea8bfd6eb6b5809dd40f03e1fa42e673a)

GFX7 lit tests attached.</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>