<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 --- - Atomicrmw min i16 produces wrong result on PowerPC"
   href="https://llvm.org/bugs/show_bug.cgi?id=30451">30451</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Atomicrmw min i16 produces wrong result on PowerPC
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>v.churavy@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The code below returns -1 on x86_64 and 0 on PowerPC 


    define i16 @julia_hh_65132() #0 !dbg !5 {
    top:
      %0 = alloca i16, align 2
      %1 = bitcast i16* %0 to i8*
      call void @llvm.lifetime.start(i64 2, i8* %1)
      store i16 -1, i16* %0, align 2
      %2 = atomicrmw min i16* %0, i16 0 acq_rel
      %3 = load atomic i16, i16* %0 acquire, align 8
      call void @llvm.lifetime.end(i64 2, i8* %1)
      ret i16 %3
    }</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>