crash: Assertion failed: ((TypeSize::ScalarTy)SrcOps.size() * SrcOps[0].getLLTTy(*getMRI()).getSizeInBits() == DstOps[0].getLLTTy(*getMRI()).getSizeInBits() && "input scalars do not exactly cover the output vector register"), function buildInstr, file MachineIRBuilder.cpp

Run:explore-b577f07195-20261129-105236
Kind:crash
Category:Assertion failed: ((TypeSize::ScalarTy)SrcOps.size() * SrcOps[0].getLLTTy(*getMRI()).getSizeInBits() == DstOps[0].getLLTTy(*getMRI()).getSizeInBits() && "input scalars do not exactly cover the output vector register"), function buildInstr, file MachineIRBuilder.cpp
Occurrences:3 in 3 configs, 1 test files, 92 more counted only
Snippet from:pr64645.ll @v2f64 via llvm-extract
Config:-mtriple=riscv32 -mattr=+zdinx -verify-machineinstrs -target-abi=ilp32
Local check:reproduces at b577f07195
Compiler Explorer:https://godbolt.org/z/44WqxdEr7 (llc-assertions-trunk, checked 2026-10-25 22:00 UTC): G reproduces

Snippet:

; Function Attrs: nounwind
define <2 x double> @v2f64(<2 x double> %x, <2 x double> %y) #0 {
  %1 = fadd <2 x double> %x, %y
  ret <2 x double> %1
}

attributes #0 = { nounwind }

Compiler Explorer panes:

PaneOptionsExitInstsstderr
GlobalISel-mtriple=riscv32 -mattr=+zdinx -verify-machineinstrs -target-abi=ilp32 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.*1340llc: /root/llvm-project/llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp:1547: virtual llvm::MachineInstrBuilder llvm::MachineIRBuilder::buildInstr(unsigned int, llvm::ArrayRef<llvm::DstOp>, llvm::ArrayRef<llvm::SrcOp>, std::optional<unsigned int>): Assertion `(TypeSize::ScalarTy)SrcOps.size() * SrcOps[0].getLLTTy(*getMRI()).getSizeInBits() == DstOps[0].getLLTTy(*getMRI()).getSizeInBits() && "input scalars do not exactly cover the output vector register"' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
Stack dump:
SelectionDAG (control)-mtriple=riscv32 -mattr=+zdinx -verify-machineinstrs -target-abi=ilp32 -global-isel=003-

Reproduce:

llc -mtriple=riscv32 -mattr=+zdinx -verify-machineinstrs -target-abi=ilp32 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+zdinx -verify-machineinstrs -target-abi=ilp32 -global-isel=0 snippet.ll -o -

Local llc output:

llc: /home/runner/work/llvm-fuzz/llvm-fuzz/llvm-project/llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp:1561: virtual MachineInstrBuilder llvm::MachineIRBuilder::buildInstr(unsigned int, ArrayRef<DstOp>, ArrayRef<SrcOp>, std::optional<unsigned int>): Assertion `(TypeSize::ScalarTy)SrcOps.size() * SrcOps[0].getLLTTy(*getMRI()).getSizeInBits() == DstOps[0].getLLTTy(*getMRI()).getSizeInBits() && "input scalars do not exactly cover the output vector register"' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
Stack dump:
0.	Program arguments: /home/runner/work/llvm-fuzz/llvm-fuzz/llvm-project/build/bin/llc -mtriple=riscv32 -mattr=+zdinx -verify-machineinstrs -target-abi=ilp32 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* -o -
1.	Running pass 'Function Pass Manager' on module '<stdin>'.
2.	Running pass 'IRTranslator' on function '@v2f64'
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  llc       0x00005620807309eb llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 43
1  llc       0x000056208072d9c1 llvm::sys::RunSignalHandlers() + 369
2  llc       0x000056208073146b
3  libc.so.6 0x00007f1b06c45330
4  libc.so.6 0x00007f1b06c9ebec pthread_kill + 284
5  libc.so.6 0x00007f1b06c4527e gsignal + 30
6  libc.so.6 0x00007f1b06c288ff abort + 223
7  libc.so.6 0x00007f1b06c2881b
8  libc.so.6 0x00007f1b06c3b517
9  llc       0x00005620810a8ec3 llvm::MachineIRBuilder::buildInstr(unsigned int, llvm::ArrayRef<llvm::DstOp>, llvm::ArrayRef<llvm::SrcOp>, std::optional<unsigned int>) + 8995
10 llc       0x0000562080fb6081 llvm::CSEMIRBuilder::buildInstr(unsigned int, llvm::ArrayRef<llvm::DstOp>, llvm::ArrayRef<llvm::SrcOp>, std::optional<unsigned int>) + 3089
11 llc       0x000056208109f788 llvm::MachineIRBuilder::buildMergeLikeInstr(llvm::DstOp const&, llvm::ArrayRef<llvm::Register>) + 360
12 llc       0x000056207ed9c08e
13 llc       0x0000562080fabba0 llvm::CallLowering::handleAssignments(llvm::CallLowering::ValueHandler&, llvm::SmallVectorImpl<llvm::CallLowering::ArgInfo>&, llvm::CCState&, llvm::SmallVectorImpl<llvm::CCValAssign>&, llvm::MachineIRBuilder&, llvm::ArrayRef<llvm::Register>) const + 928
14 llc       0x000056207ed98a2c
15 llc       0x000056208101ff23 llvm::IRTranslatorImpl::runOnMachineFunction(llvm::MachineFunction&, llvm::function_ref<llvm::GISelCSEInfo* ()>, bool, llvm::function_ref<llvm::AAResults* ()>, llvm::function_ref<llvm::BranchProbabilityInfo* ()>, llvm::function_ref<llvm::AssumptionCache* ()>, llvm::TargetLibraryInfo*, llvm::LibcallLoweringInfo const*, llvm::SSPLayoutInfo*) + 3523
16 llc       0x00005620810211bd llvm::IRTranslatorLegacy::runOnMachineFunction(llvm::MachineFunction&) + 733
17 llc       0x000056207f3aa6b1 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 513
18 llc       0x000056207f945b37 llvm::FPPassManager::runOnFunction(llvm::Function&) + 871
19 llc       0x000056207f94e052 llvm::FPPassManager::runOnModule(llvm::Module&) + 50
20 llc       0x000056207f9468e0 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 2000
21 llc       0x000056207eba1149
22 llc       0x000056207eb9e2d3 main + 1747
23 libc.so.6 0x00007f1b06c2a1ca
24 libc.so.6 0x00007f1b06c2a28b __libc_start_main + 139
25 llc       0x000056207eb9d3e5 _start + 37

Occurrences (3):

InputFunctionConfig
pr64645.ll-mtriple=riscv32 -mattr=+zdinx -verify-machineinstrs -target-abi=ilp32
pr64645.69d32d9842.ll (mutant of pr64645.ll)-mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32 -mattr=+zdinx -O0
pr64645.ca42e69471.ll (mutant of pr64645.ll)-mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32 -mattr=+zdinx,+zfinx,+m -O3

Generated 2026-11-29 14:49 UTC.