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

    <tr>
        <th>Summary</th>
        <td>
            "Do not know how to split the result of this operator" on x86-64 with cryptographic instructions
        </td>
    </tr>

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

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

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

<pre>
    In [RustCrypto](https://github.com/RustCrypto) we got several issues from users who try to compile some of our crates which support hardware acceleration on "bare" targets (e.g. `x86_64-unknown-uefi` and `x86_64-unknown-none`). The said crates by default use AES-NI, SHA-NI, and CLMUL instructions after runtime CPUID-based check. For some reason LLVM fails to compile such code with the aforementioned error. For now users can work around this issue by disabling the hardware acceleration support using configuration flags, but it's far from ideal.

Here is a godbolt link with a (bit noisy) sample LLVM IR and resulting error: https://llvm.godbolt.org/z/MGhsG6noG
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8U1-PozYQ_zTOyyiImEDIAw97m2Zvpd2quuv1tTJmAHeNB43t5dJPXxlyalc69QWQPIx_f5X3ZnCIjSg_ifKyUzGMxI3DZVbvlt53LXW35tmBKD99iT488m0OJMqLkPUYwuxF8SDkVcjrYMIY20zTJOT1P6PyDAvCQAE8viMrC8b7iB56pgmiR_awjASBbxAINE2zsQieJgTqgSKDZhUwTRk9go_zTBxgVNwtihGU1miRVTDkgBwIKVvFKKSEoHjA4EHIGrMhA1Hl3-vqz-q4j-7N0eL2EXsjqhyU635y6sihqHIhzxn8PiJ4ZbofaNobdNiraEMiAQ-_fN3_-izkI3z9_HD_SksfX16_vYBxPnDUCaIH1Qdk4OiCmRAef_v2fNm3ymMHekT9lsGVeOPPqDw5eHn54xV6Zaz_oFDUI2jqEBYTRggjguqJcUKX7sEOkJl4W-douWutlYOF-A0UU3QdhNH4zZKVkvGqtcYN676fa_zDgejTnCbXmyHez3qrBp-4tzGACUKePPSKN7NNh8pmIr-I_GF7fkZGMB4UDNS1ZANY4942QirZ1poAjoy_pRx5Nc0WNzmev6zyMvpoQ8KxkhXFA3yMpbXvU3ZfnhEPQl7_FvL6-jT6p8rR065riu5cnNUOm0N1Kk6llNVhNzaHShZS1VjXpzMe21OluxyP6ljiscVK4840MpdFfjiUeXE45IesPOlTrk5lreu6ktVZHHOclLHZioF42K0yN1WeF-edVS1av_ZOSofL5oGQMtWQm_TPvo2DF8fcGh_8v1uCCRYbIeWFwFGAlFUYaUnh8LM1YfVuUyZVaHWY5mQfcaoFOfheV_vquAmt16IOrObR6A9R3UW2zf_UPEG6v_Yz01-og5DXrd9CXlei_wQAAP__WMp7Gw">