<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/65405>65405</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            clang-cl should provide implementations of more MSVC ARM64 intrinsics
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue,
            platform:windows,
            clang-cl
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          rnk
      </td>
    </tr>
</table>

<pre>
    Some users have noticed that clang-cl does not provide some of the intrinsics listed in the [MSVC ARM64 intrinsic list](https://learn.microsoft.com/en-us/cpp/intrinsics/arm64-intrinsics?view=msvc-170). In particular, the `_Count*` and `_Copy*` intrinsics seem worth implementing, like `_CopyFloatFromInt32` and `_CountLeadingZeros`. See reference from the FP16 project [here](https://github.com/Maratyszcza/FP16/blob/0a92994d729ff76a58f692d3028ca1b64b145d91/include/fp16/bitcasts.h#L28).

cc @amykhuang @pzhengqc 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8U8GOpDYQ_ZriYjUyZaDhwKF3Wkgr7UhRRsohl8jYBThjbGKbbs18fURPp2cjjfYCcj37lev5PRmjmRxRB9U3qM6Z3NLsQxfcazZ4_da9-IXYFilENssLMeeTUaRZmmViyko3HZRl2lPcIbYGfzGaWNyP-ZGlmZhxKRgXjYrMmphIM-NuAFTfnl_-eGKn35_r8nPbbRdUZ8BmTmmNIE6APWBvSQaXL0YFH_2YcuUXwJ7cYYuAvVpXwP6zGWAvw1KXh59Kor8YuoI4L_GiDsWRA7Y5--7YKkMyarMyAD59XK7mfz35zSXAE9ScSafvtfXtXvppsEi0sKsPaWZmWS0t5JJx005mzSs9TvbWy9QHv3x3SeD_eTeXfpDUxk1_UvARap6zFyIWaKRAThEbg19ul-t_K-pd679JpV3GmQJ9pdhk0rwNd6GeZZDpLb6rdwnY7xSA_WD9ANhz2WLblvqI7Tgea1k1Y92iFhwbJYuhLoeirHRb3BRWdtME2I_rB4VJSsYU8xlQ_MBm1xT4Gfjp46sUg5LL5e113qSb9sX6PpOb_lEs053QrWhlRl1Rt6ItsW2abO6G4zDWoqC6prrSHI9CNloUhWrK49AMKjMdchS85VXRloI3eVPJSoyKayFrGvkAJadFGptbe1lyH6bMxLhRV1clrzIrB7Lx5npER1d2AwER8AkQVyvT6MMC4nQ1TvtrfED_mX4vVOcsdDv_YdimCCXfrRs_OyaTLHWPmMTZb1Y_QvJwikzGu7jnZfGB2FehiNkWbPeL19173n-HuzP2x9qn2qNwm_rfAAAA__8-uETx">