<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=http://email.email.llvm.org/c/eJzNVttu2zgQ_Rr5hZAhUxdLD3pI7BoIFgmK7mJT9CWgKEpmQ5ECL3b99zukZddpggK7gdsVBIuUODNnjg6t06j2UN9FeDkgqw9c9sgqRNUwcsFQlN9-fnj4SOhzlK8jXG6tHU2U3kR4A2fP7dY1c1jsJ0r1gsHAB9ys_ohwhZzx-aggso-pQEqiRy5btTd-ePPpfh4l6yi5Of7eWdQRLgzaQ1rEtFbaIMGfma93sS4qkukM01N2WIX2REuo6IdE925g0iInnWEtap0OWEJjxHIl_SpoGxAb28KERvgWTnjIjIUHvvn48RgeQ9xAZBsLLll8yu05OUKXqPN0cUmFa6Fap9WAvhyJelT6GS73nGrVQLyfUKVZ_E3KEZiN_Q_pPXUtG5lsmaScmUsmN0YDug2X3M4pZM2WZ05-Sel8NQXAfCSaDCYOWLZQBqfXxrL5uChC9yErgOnGRRFq57-lNNw4I1h8fxNXK9ZwS4mxBgriEpcRXlWwubx8wybxAz6MglNuUctgP-igb6Q61DlJwxj0_LRS42EjFLEb4OZO2hR7lXMDpO2I4C1c0aqqjro_psar-PGUOz4liy-KnLcAmg7NrNMSvVkMoJdPT_w4qdA-dHH7Mn46ovzDr2Q1gzsrnPxnWkODvtPQ8vVoBagu8PdkPYNv1i67n_D6-ygusncJd61cI9gkJp_rqsp9Ve0sXT_5X0m3xO-WbpH5To89X127RfZSuy-L_2vxZien0DPJAABrJ1MBRuAr8Uw0josWGavGkfnvPDKumT7nwXCcI34wFmdXQiCQQAW7Jda7liIDWizYCcMpvKYVJKRbRAyC0Lf-94oE-VqGD-A8NDgThu7_jM3IKO84nb9KCfnGUWloBTUHqOqX_70Kca2iwXnAI3glW6bZW74MVpn54PVmVGcnf8Zk7Lyo6DgGTX1vYEP0UGTxxa10s-NsH6XrwexovFh6db3wamuFDsqhLdkx6O2ARjBhwdRN0ION3CrDLtsCLQEXZ78GtMBHGnqR8FY2s7ZO2yqtyIw4iNT1Wq3Vh4e_Zk6L-ie2U4jd6RKPWn1l1Pr2jHFhC-W4KrLZtl7SKk8qUlakaUlHC5yXuGu6riq7dEm7diZIw4SpgdUIY8n2KKSAMRA8ez8CXuME42SRpIvlokyTOaY0p1W6yPIcp91yGWUJG0CNc59nrnQ_03VI2bjewEPB_YY_PyTG8F4yFgADQsutYLXXSewt82tNDQDIv5VO6bMhnwWQdUD4D80t0ho>52964</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            MSVC-like ARM64 intrinsics missing for clang-cl
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    I'm trying to compile [XNNPack](https://github.com/google/XNNPACK) using clang-cl on Windows on ARM.

It fails with errors like:

```
clang-cl: warning: argument unused during compilation: '/std:c++latest' [-Wunused-command-line-argument]
In file included from Z:/Work/Microblink/core-xnnpack-package/dependencies/XNNPACK/src/init.c:47:
In file included from Z:/Work/Microblink/core-xnnpack-package/dependencies/XNNPACK/src\xnnpack/params-init.h:23:
In file included from Z:/Work/Microblink/core-xnnpack-package/dependencies/FP16/include\fp16.h:5:
In file included from Z:/Work/Microblink/core-xnnpack-package/dependencies/FP16/include\fp16/fp16.h:17:
Z:/Work/Microblink/core-xnnpack-package/dependencies/FP16/include\fp16/bitcasts.h(28,9): error: implicit declaration of function '_CopyFloatFromInt32' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        return _CopyFloatFromInt32((__int32) w);
               ^
Z:/Work/Microblink/core-xnnpack-package/dependencies/FP16/include\fp16/bitcasts.h(46,20): error: implicit declaration of function '_CopyInt32FromFloat' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        return (uint32_t) _CopyInt32FromFloat(f);
                          ^
Z:/Work/Microblink/core-xnnpack-package/dependencies/FP16/include\fp16/bitcasts.h(64,9): error: implicit declaration of function '_CopyDoubleFromInt64' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        return _CopyDoubleFromInt64((__int64) w);
               ^
Z:/Work/Microblink/core-xnnpack-package/dependencies/FP16/include\fp16/bitcasts.h(82,20): error: implicit declaration of function '_CopyInt64FromDouble' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
        return (uint64_t) _CopyInt64FromDouble(f);
                          ^
4 errors generated.
ninja: build stopped: subcommand failed.
```

It appears that ARM64 intrinsics, such as `_CopyFloatFromInt32` and similar are MS-specific. ARM64 intrinsics supported by the MSVC are documented [here](https://docs.microsoft.com/en-us/cpp/intrinsics/arm64-intrinsics?view=msvc-170).

Do you have any plans on supporting those intrinsics in `clang-cl` frontend?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzNVstu2zgU_Rp5Q8iQqIethRaJXQNBkaDoFE0xm4CiKJkNRQp82PXfzyUtu84kKDBTuK0gWKRI3nPv4aF1GtUe6rsILwZk9YHLHlmFqBpGLhiKitsvDw8fCH2OinWEl1trRxNlNxHewN1zu3XNHCb7jlK9YNDwC25W7yNcIWd8PCqI7GMqkJLokctW7Y1v3ny8n0fJOkpujr93FnWEC4P2EBYxrZU2SPBn5vEu5kVlMt2he4oOs9CeaAmIvkl07wYmLXLSGdai1umQSyiMWK6knwVlQ8bGttChEb6FGwaZsTDgi48fj8tjWDcQ2caCSxafYntOjqlL1Hm6uKTCtYDWaTWgv49EPSr9DI97TrVqYL3vUKVZ_E3KEZiN_Q_pPXUtG5lsmaScmUsmN0ZDdhsuuZ1TiJovzpz8EuhiNS2A_kg0GUwcctkCDM6uncvmQ1qG6kNUSKYb0zJgF78FGl6cM0i_78TVwBpuKTHWACBe4mWEVxUcLi_fcEh8gw-j4JRb1DI4DzroG6kOdU7S0AY9P63UeNgIRewGuLmTNsNe5dwAaTsieAtPtKqqo-6PofEqfjzFjk_B4guQ8xFA06WZdVqiN8Eg9eXTEz92KrQ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