<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:john.brawn@arm.com" title="John Brawn <john.brawn@arm.com>"> <span class="fn">John Brawn</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - ARM: CodeGen fails to legalize AtomicCmpSwap"
   href="https://bugs.llvm.org/show_bug.cgi?id=3877">bug 3877</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>john.brawn@arm.com
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>FIXED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - ARM: CodeGen fails to legalize AtomicCmpSwap"
   href="https://bugs.llvm.org/show_bug.cgi?id=3877#c7">Comment # 7</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - ARM: CodeGen fails to legalize AtomicCmpSwap"
   href="https://bugs.llvm.org/show_bug.cgi?id=3877">bug 3877</a>
              from <span class="vcard"><a class="email" href="mailto:john.brawn@arm.com" title="John Brawn <john.brawn@arm.com>"> <span class="fn">John Brawn</span></a>
</span></b>
        <pre>This was fixed long ago. With LLVM 3.5.0 and later I can compile the following:

  define i32 @fn(i32 *%ptr, i32 %cmp, i32 %new) {
    %val = cmpxchg i32* %ptr, i32 %cmp, i32 %new acq_rel monotonic
    %ret = extractvalue { i32, i1 } %val, 0
    ret i32 %ret
  }

with no problems.</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>