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

    <tr>
        <th>Summary</th>
        <td>
            LLVM ERROR: Cannot select: ... = X86ISD::UCOMX ..., ...
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          abhishek-kaushik22
      </td>
    </tr>
</table>

<pre>
    Compiler Explorer: https://godbolt.org/z/GTfqbqGef

```
LLVM ERROR: Cannot select: t30: i32 = X86ISD::UCOMX t3, ConstantFP:f80<APFloat(0)>
  t3: f80,ch = load<(load (s80) from %fixed-stack.0, align 16)> t0, FrameIndex:i64<-1>, undef:i64
    t1: i64 = FrameIndex<-1>
    t2: i64 = undef
  t4: f80 = ConstantFP<APFloat(0)>
In function: ldequals
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.      Program arguments: /opt/compiler-explorer/clang-assertions-trunk/bin/llc -o /app/output.s -x86-asm-syntax=intel -mcpu=diamondrapids <source>
1.      Running pass 'Function Pass Manager' on module '<source>'.
2.      Running pass 'X86 DAG->DAG Instruction Selection' on function '@ldequals'
 #0 0x0000000003c0a0c8 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x3c0a0c8)
 #1 0x0000000003c07abc SignalHandler(int) Signals.cpp:0:0
 #2 0x000076cacee42520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
 #3 0x000076cacee969fc pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x969fc)
 #4 0x000076cacee42476 gsignal (/lib/x86_64-linux-gnu/libc.so.6+0x42476)
 #5 0x000076cacee287f3 abort (/lib/x86_64-linux-gnu/libc.so.6+0x287f3)
 #6 0x0000000000758ec1 (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x758ec1)
 #7 0x00000000039b4078 llvm::SelectionDAGISel::CannotYetSelect(llvm::SDNode*) (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x39b4078)
 #8 0x00000000039b9519 llvm::SelectionDAGISel::SelectCodeCommon(llvm::SDNode*, unsigned char const*, unsigned int) (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x39b9519)
 #9 0x0000000001fac011 (anonymous namespace)::X86DAGToDAGISel::Select(llvm::SDNode*) X86ISelDAGToDAG.cpp:0:0
#10 0x00000000039b05eb llvm::SelectionDAGISel::DoInstructionSelection() (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x39b05eb)
#11 0x00000000039bf9aa llvm::SelectionDAGISel::CodeGenAndEmitDAG() (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x39bf9aa)
#12 0x00000000039c2f29 llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x39c2f29)
#13 0x00000000039c41e0 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x39c41e0)
#14 0x00000000039b4a8f llvm::SelectionDAGISelLegacy::runOnMachineFunction(llvm::MachineFunction&) (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x39b4a8f)
#15 0x0000000002b70aa9 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (.part.0) MachineFunctionPass.cpp:0:0
#16 0x0000000003175f8f llvm::FPPassManager::runOnFunction(llvm::Function&) (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x3175f8f)
#17 0x0000000003176341 llvm::FPPassManager::runOnModule(llvm::Module&) (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x3176341)
#18 0x0000000003176be1 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x3176be1)
#19 0x000000000086e8f8 compileModule(char**, llvm::LLVMContext&) llc.cpp:0:0
#20 0x000000000076069e main (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x76069e)
#21 0x000076cacee29d90 (/lib/x86_64-linux-gnu/libc.so.6+0x29d90)
#22 0x000076cacee29e40 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x29e40)
#23 0x000000000086522e _start (/opt/compiler-explorer/clang-assertions-trunk/bin/llc+0x86522e)
Program terminated with signal: SIGSEGV
Compiler returned: 139
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzMWN9v4yoW_mvIC4qFwfGPhzx4kiZbabq3msxezT5VGOOELQYP4Dvp_vUrcFI7md7tdDdabZUqEXA-vu-cAweg1oq94nwJFp_AYj2jvTtos6TVQdgDf54_094exDPGs0rXL8uVbjshuYF3x05qww0gJTw411lASoA3AG_2uq60dJE2e4A3_wR4s_3afK--b3kDUOk_KTp9UPn58-8P8O7Ll9--eKAVVUo7aLnkzPkGR5D_EgRDQNbwW57e79Z-JlL-bfXbwzfoCMAruNLKOqrc5hGQsskRIKvycSM1dQDnCOACkDuASuiHkxL6EXjFDgFTaloDsgI4978gwLkNJrAxuoUALxpx5PXcOsqeI28HqRR7BeN0wIUuNG4Mbfm9qvkRkFKkCSCreeynxSvYq5o3p2bPAkIXB1lpEihMbU9Wp2F4OmyACTKSk4zQPlX_pu57BZteMSe08nay5t97Ki1A5ePnu3J3B21ftcJBCqt-Dw3vtHHQ6eu4Cnfoq4jpFuCNlH-cv-ad0f_w8cIbYW3PLcAbSFUNhWKyrzl0Bw6ZofYAK8qenaGMRwCVO-9RWPdt56dAJYoAKh6N3hvaQmr2fcuV89NDgDe68_jslH1zfs4-vGGSqv2cWsuNF2jnzvTqGeBNJVRgyOBcewjadR6od13vIgvnxzydU9vO7Yty9AjIWijHJZy3rOsBWdeCtlrVhnaithCQldW9YXzwaOy5fumVEmoPO2otBDjbnHwMH33DA1V07xlmUCvY6rqX3I-6QMKZ9wR-C-1bnsJ1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