<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 - Missing _InterlockedCompareExchange128 intrinsic functions for ARM64"
   href="https://bugs.llvm.org/show_bug.cgi?id=48283">48283</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Missing _InterlockedCompareExchange128 intrinsic functions for ARM64
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </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>-New Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>zufuliu@163.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>split from <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Clang-overlay of <intrin.h> breaks <intrin0.h> in VS 2019 version 16.8p1"
   href="show_bug.cgi?id=47099">https://bugs.llvm.org/show_bug.cgi?id=47099</a>

See
<a href="https://docs.microsoft.com/en-us/cpp/intrinsics/interlockedcompareexchange128?view=msvc-160">https://docs.microsoft.com/en-us/cpp/intrinsics/interlockedcompareexchange128?view=msvc-160</a>

_InterlockedCompareExchange128, _InterlockedCompareExchange128_acq,
_InterlockedCompareExchange128_nf and _InterlockedCompareExchange128_rel are
missing from intrin.h for ARM64.

_InterlockedCompareExchange128_nf is used by Microsoft STL <atomic> header for
ARM64, see <a href="https://github.com/microsoft/STL/blob/master/stl/inc/atomic#L483">https://github.com/microsoft/STL/blob/master/stl/inc/atomic#L483</a> and
<a href="https://github.com/microsoft/STL/issues/1491">https://github.com/microsoft/STL/issues/1491</a>.</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>