<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] Relocatable expressions are not counted as literals"
   href="https://bugs.llvm.org/show_bug.cgi?id=43359">43359</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[AMDGPU][MC] Relocatable expressions are not counted as literals
          </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>Relocatable expressions may be used as operands; however they are not accounted
for when computing the total number of literals used by an instruction. 

Examples:

// All GPUs
  s_sub_u32 s0, 123, 123 // ok
  s_sub_u32 s0, 123, 456 // error
  s_sub_u32 s0, 123, x   // ok, but should trigger an error

// GFX10
  v_bfe_u32 v0, v1, 123, 123  // ok
  v_bfe_u32 v0, v1, 123, 456  // error
  v_bfe_u32 v0, v1, 123, x    // ok, but should trigger an error

// GFX9
  v_bfe_u32 v0, v2, v3, v4  // ok
  v_bfe_u32 v0, v2, v3, 123 // error
  v_bfe_u32 v0, v2, v3, x   // breaks assembler (should trigger an error)</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>