<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][GFX10] Incorrect FLAT GLOBAL fcmpswap data size"
   href="https://bugs.llvm.org/show_bug.cgi?id=51715">51715</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[AMDGPU][MC][GFX10] Incorrect FLAT GLOBAL fcmpswap data size
          </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>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>d-pre@mail.ru
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>global_atomic_fcmpswap and global_atomic_fcmpswap_x2 are similar to cmpswap
opcodes but operate with f32 data. They have 2-element data operand:

    - global_atomic_fcmpswap: data operand type is f32x2
    - global_atomic_fcmpswap: data operand type is f64x2

However llvm assembler expects one-element data operand.

An example of a failed test:

    global_atomic_fcmpswap v[1:2], v[2:3], off

The assembler expects that data operand size is 32 bits which is incorrect:

    global_atomic_fcmpswap v[1:2], v2, off   // invalid opcode but assembled ok

Compare this with cmpswap test which is accepted by the assembler:

    global_atomic_cmpswap v[1:2], v[2:3], off</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>