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

    <tr>
        <th>Summary</th>
        <td>
             DAGCombiner.cpp:12535: [...] Assertion `BigA_AssertVT.bitsLE(N0.getValueType()) && "Asserting zero/sign-extended bits to a type larger than the " "truncated destination does not provide information"' failed.
        </td>
    </tr>

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

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

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

<pre>
    llvm commit: 271a48e0291
Reproduce with: llc -march=x86-64 -mcpu=corei7 -o /dev/null stress_5433.ll
Result:
```
llc: ../lib/CodeGen/SelectionDAG/DAGCombiner.cpp:12535: llvm::SDValue (anonymous namespace)::DAGCombiner::visitAssertExt(llvm::SDNode *): Assertion `BigA_AssertVT.bitsLE(N0.getValueType()) && "Asserting zero/sign-extended bits to a type larger than the " "truncated destination does not provide information"' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.      Program arguments: build-all/bin/llc -march=x86-64 -mcpu=corei7 -o /dev/null stress_5433.ll
1.      Running pass 'Function Pass Manager' on module 'stress_5433.ll'.
2.      Running pass 'X86 DAG->DAG Instruction Selection' on function '@autogen_SD5433'
 #0 0x0000000002af2fd3 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (build-all/bin/llc+0x2af2fd3)
 #1 0x0000000002af0c4e llvm::sys::RunSignalHandlers() (build-all/bin/llc+0x2af0c4e)
 #2 0x0000000002af3356 SignalHandler(int) Signals.cpp:0:0
 #3 0x00007f576b9a1630 __restore_rt sigaction.c:0:0
 #4 0x00007f57690e8387 raise (/lib64/libc.so.6+0x36387)
 #5 0x00007f57690e9a78 abort (/lib64/libc.so.6+0x37a78)
 #6 0x00007f57690e11a6 __assert_fail_base (/lib64/libc.so.6+0x2f1a6)
 #7 0x00007f57690e1252 (/lib64/libc.so.6+0x2f252)
 #8 0x000000000277694a (anonymous namespace)::DAGCombiner::visit(llvm::SDNode*) DAGCombiner.cpp:0:0
 #9 0x00000000027494a1 (anonymous namespace)::DAGCombiner::combine(llvm::SDNode*) DAGCombiner.cpp:0:0
#10 0x0000000002746714 llvm::SelectionDAG::Combine(llvm::CombineLevel, llvm::AAResults*, llvm::CodeGenOpt::Level) (build-all/bin/llc+0x2746714)
#11 0x00000000029020ef llvm::SelectionDAGISel::CodeGenAndEmitDAG() (build-all/bin/llc+0x29020ef)
#12 0x0000000002900021 llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) (build-all/bin/llc+0x2900021)
#13 0x00000000028fc686 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) (build-all/bin/llc+0x28fc686)
#14 0x0000000001608649 (anonymous namespace)::X86DAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&) X86ISelDAGToDAG.cpp:0:0
#15 0x0000000001ee6559 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (build-all/bin/llc+0x1ee6559)
#16 0x0000000002338a5f llvm::FPPassManager::runOnFunction(llvm::Function&) (build-all/bin/llc+0x2338a5f)
#17 0x000000000233f498 llvm::FPPassManager::runOnModule(llvm::Module&) (build-all/bin/llc+0x233f498)
#18 0x000000000233902d llvm::legacy::PassManagerImpl::run(llvm::Module&) (build-all/bin/llc+0x233902d)
#19 0x000000000074d1f3 main (build-all/bin/llc+0x74d1f3)
#20 0x00007f57690d4555 __libc_start_main (/lib64/libc.so.6+0x22555)
#21 0x000000000074a7f0 _start (build-all/bin/llc+0x74a7f0)
Abort
```
[stress_5433.ll.gz](https://github.com/llvm/llvm-project/files/8830119/stress_5433.ll.gz)

Very similar to https://github.com/llvm/llvm-project/issues/55846
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzdWE1zmzoU_TX2RmNGCBCw8MKJk77O9CPTZDrdeQQ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