<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 i/u/b64 insns -- floating inline const lead to assert."
   href="https://llvm.org/bugs/show_bug.cgi?id=28206">28206</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[mc] Some i/u/b64 insns -- floating inline const lead to assert.
          </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=16590" name="attach_16590" title="02151.tests_tg_gfx7_asm_lit1_bug.06.08.min.v_ashr_etc_x64-fconst_assert.zip">attachment 16590</a> <a href="attachment.cgi?id=16590&action=edit" title="02151.tests_tg_gfx7_asm_lit1_bug.06.08.min.v_ashr_etc_x64-fconst_assert.zip">[details]</a></span>
02151.tests_tg_gfx7_asm_lit1_bug.06.08.min.v_ashr_etc_x64-fconst_assert.zip

Example of failing instruction:
<span class="quote">> v_ashr_i64 v[0:1], 0.5, s0</span >

0.5 can be encoded inline and thus shall be processed this way in spite of that
instruction operand is I64. Moreover, it is worth to encode values like
0x3fe0000000000000 (bitwise representation of double 0.5) as inline constants.

Only values which can't be encoded inline (e.g. 0.1) should lead to assembly
errors.

Tested with r272673 (git # da10a460d7c98278561225fda90855b303675f35)

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>