<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] SOP2 u64/i64/u64 instructions -- source operands do not support floating inline constants"
   href="https://llvm.org/bugs/show_bug.cgi?id=28163">28163</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[mc] SOP2 u64/i64/u64 instructions -- source operands do not support floating inline constants
          </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=16564" name="attach_16564" title="Failing lit1 tests">attachment 16564</a> <a href="attachment.cgi?id=16564&action=edit" title="Failing lit1 tests">[details]</a></span>
Failing lit1 tests

Example of failing instruction:
<span class="quote">> s_mov_b64 s[0:1], 0.5</span >

In the case above, 0.5 is encoded as 32-bit literal F32 constant (0x3f000000),
which is incorrect. Correct encoding is inline constant.

When a FP literal is encountered as a 64-bit src operand, relevant double
number is used by the SP (ALU of AMDGPU), regardless of the operand type. If an
operand is not F64, then 64-bit representation of double number is used.

In practice, such kind of operands are rarely used, so importance is low
(P=enhancement). Number of failing lit1 tests (-search=simple) = 2513.

I am almost sure that issue appears for other sub-targets as well, e.g. gfx8. 

Lit1 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>