<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=http://email.email.llvm.org/c/eJylVEtzmzAQ_jVw2TGDwdT4wCGPptNDDmnSXDNCrEGtkFytCOP--q7k0DptLpnOMOYhffs9duXWdsfmYUBQ46iMd8pkAwwoOnQEgyAQ0E49zAM63uOhs0hgrAdlpJ46BJralXBygBOalKTfeLWHp9v7q6fHj19AEXS4VwY7mIxGIvBDREewF65HHzbJyTk0Pkvy6yS_OP0-DLwQLiMtM5DnDTArP8Dt_eMVi1NcQuhZHBcSOpfjsBeui5x2D0J69YwQaJPiCoTpQmmhyb5R31g3Cr2SWpgekqLupVyRP2pMit0L70LIdkbYWwcT4Qm8mNtPhjmteXFJGYTAHdKko2V_CjfkCuwhiJxIMeGZh1D4dVh0IonSWGDwwiCJYFCFisBag34Y6VlCFA2zdd_p32hDn5lAht6wHAudItHy_lEYlnPwalQ_RbAQcoU7_wY1IgzeHygpL5Lihi8eG4cH69jvD58pGz45OxNHd3P3cPn106qu83odwO8HbspN7Nx7kbu6qMpz_5851b5H8iA8aBThQWs7h_hDgC_NPs1JmNiznoQ0T21a5ld4Xmwnz0EuTacA5oNwtBNIYZJi65nyEFTGenGCI0uWdk3Z7cqdSMXkB-saKRzOVu_TyenmtdWeGzC1mbQjv2j9vNxWB2e_ofT8qogmZPqbqqyKPB2azYdcdGXetutO1u2uKLflrpY7UXXbKi-KbapFi5qapLpMisLgDLEEPyfVdfr_ClRTME1e5Ot1Xq3LOsNcVjLfFnmdr4t1tU82OY5C6SzUyazrU9fEktxY4kXNR5P-LAoi1RvEKJgVeuU1NstUhrTjP9WS9t_HMI3ymqjtFyVIuPA>53520</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            clang-cl can not support function targets
        </td>
    </tr>

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

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

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

<pre>
    The immintrin.h headers has a bug where it does not include sub-arch intrinsics headers if _MSC_VER is defined unless the subarch target is current.

This is inconsistent with MSVC which always defines intrinsics regardless of active arch, and is also inconsistent with normal-clang (gcc-style) which defines them for use with subarch function targets. The result is there is no way of using intrinsics for subarch targets with clang-cl, since neither gcc nor msvc style works.

This has forced us to disable many optimizations in Qt with clang-cl, see https://bugreports.qt.io/browse/QTBUG-88081, https://bugreports.qt.io/browse/QTBUG-88434 and https://bugreports.qt.io/browse/QTBUG-98253

I suggest at least allowing gcc style, and the intrinsics working in target attributed functions, if you can't support the MSVC style.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVU0tzmzAQ_jVw2TGDIcT4wCGPptNDDmnSXDNCLKBWSK5WhEl_fVdyaJ02l8xoMFj69nvsqrXdS_MwIqhpUsY7ZbIRRhQdOoJREAho5wGWER2f8dBZJDDWgzJSzx0Cze1GODnCEU1K0h-86uHp9v7q6fHTV1AEHfbKYAez0UgEfozoCPbCDejDITk7h8ZnSX6d5BfH58PIG2EZaZmBPB-ARfkRbu8fr1ic4hJCL-JlJaFTOQ4H4brIaXsQ0qtnhECbFFcgTBdKC032nfrGuknojdTCDJAU9SDlhvyLxqTYv_KuhGxngt46mAmP4NVcPxvmtObVJWUQAndIs46W_THckCuwhyByJsWEJx5C4bdh0ZEkSmOBwQuDJIJBFSoCaw36YaJnCVE0LNb9oP-jDX1mAhl6w3IsdIpEy-cnYVjOwatJ_RLBQsgV7vw71Igwen-gpLxIihtePDYOD9ax358-Uzb85exCHN3N3cPlt8-bus7rbQB_HHhWnsXOfRS5r4uqPPX_hVMdBiQPwoNGEV60tkuIPwT42uzjnISJPelJSPPYpnV-hefNdvYc5Np0CmC-CC92BilMUuw8Ux6CylgvTnBkydKuKbt9uRepV15js-YbcPHOrbh_ByqdnW7eRjFwg-Y2k3biD62f15_NwdnvKD1_KqIZWd5NVVZFno5NvyvOd33d7budbGVZ5b08l7LcVWVZS7krUy1a1NQk1WVSFAYXiCX4PamuU9UUecEr327zalvWGeaykvmuyOt8W2yrPjnLcRJKZ0FHZt2QuiZK4rYRb2q-ePR3UxCpwSBGOq4vZj9a10jhcLG6TyN3E7X_BrekpCg">