| 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 vectors do not exactly cover the output vector register"), function buildInstr, file MachineIRBuilder.cpp |
| Occurrences: | 3 in 3 configs, 1 test files, 34 more counted only |
| Snippet from: | vtrunc-vp.ll @vtrunc_nxv15i16_nxv15i64 via llvm-extract |
| Config: | -mtriple=riscv32 -mattr=+v,+m -verify-machineinstrs |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | https://godbolt.org/z/axhYj4133 (llc-assertions-trunk, checked 2026-10-25 18:43 UTC): G reproduces |
define <vscale x 15 x i16> @vtrunc_nxv15i16_nxv15i64(<vscale x 15 x i64> %a, <vscale x 15 x i1> %m, i32 zeroext %vl) {
%v = trunc <vscale x 15 x i64> %a to <vscale x 15 x i16>
ret <vscale x 15 x i16> %v
}
| Pane | Options | Exit | Insts | stderr |
|---|---|---|---|---|
| GlobalISel | -mtriple=riscv32 -mattr=+v,+m -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* | 134 | 0 | llc: /root/llvm-project/llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp:1578: 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 vectors 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=+v,+m -verify-machineinstrs -global-isel=0 | 0 | 7 | - |
llc -mtriple=riscv32 -mattr=+v,+m -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o - llc -mtriple=riscv32 -mattr=+v,+m -verify-machineinstrs -global-isel=0 snippet.ll -o -
llc: /home/runner/work/llvm-fuzz/llvm-fuzz/llvm-project/llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp:1592: 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 vectors 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=+v,+m -verify-machineinstrs -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 '@vtrunc_nxv15i16_nxv15i64' 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 0x00005630286b19eb llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 43 1 llc 0x00005630286ae9c1 llvm::sys::RunSignalHandlers() + 369 2 llc 0x00005630286b246b 3 libc.so.6 0x00007f454b845330 4 libc.so.6 0x00007f454b89ebec pthread_kill + 284 5 libc.so.6 0x00007f454b84527e gsignal + 30 6 libc.so.6 0x00007f454b8288ff abort + 223 7 libc.so.6 0x00007f454b82881b 8 libc.so.6 0x00007f454b83b517 9 llc 0x000056302902a1c1 llvm::MachineIRBuilder::buildInstr(unsigned int, llvm::ArrayRef<llvm::DstOp>, llvm::ArrayRef<llvm::SrcOp>, std::optional<unsigned int>) + 9761 10 llc 0x0000563028f3701d llvm::CSEMIRBuilder::buildInstr(unsigned int, llvm::ArrayRef<llvm::DstOp>, llvm::ArrayRef<llvm::SrcOp>, std::optional<unsigned int>) + 2989 11 llc 0x0000563029020788 llvm::MachineIRBuilder::buildMergeLikeInstr(llvm::DstOp const&, llvm::ArrayRef<llvm::Register>) + 360 12 llc 0x0000563028f2aa4b 13 llc 0x0000563028f28f32 llvm::CallLowering::buildCopyFromRegs(llvm::MachineIRBuilder&, llvm::ArrayRef<llvm::Register>, llvm::ArrayRef<llvm::Register>, llvm::LLT, llvm::LLT, llvm::ISD::ArgFlagsTy) + 2306 14 llc 0x0000563028f2dc8d llvm::CallLowering::handleAssignments(llvm::CallLowering::ValueHandler&, llvm::SmallVectorImpl<llvm::CallLowering::ArgInfo>&, llvm::CCState&, llvm::SmallVectorImpl<llvm::CCValAssign>&, llvm::MachineIRBuilder&, llvm::ArrayRef<llvm::Register>) const + 5261 15 llc 0x0000563026d19a2c 16 llc 0x0000563028fa0f23 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 17 llc 0x0000563028fa21bd llvm::IRTranslatorLegacy::runOnMachineFunction(llvm::MachineFunction&) + 733 18 llc 0x000056302732b6b1 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 513 19 llc 0x00005630278c6b37 llvm::FPPassManager::runOnFunction(llvm::Function&) + 871 20 llc 0x00005630278cf052 llvm::FPPassManager::runOnModule(llvm::Module&) + 50 21 llc 0x00005630278c78e0 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 2000 22 llc 0x0000563026b22149 23 llc 0x0000563026b1f2d3 main + 1747 24 libc.so.6 0x00007f454b82a1ca 25 libc.so.6 0x00007f454b82a28b __libc_start_main + 139 26 llc 0x0000563026b1e3e5 _start + 37
| Input | Function | Config |
|---|---|---|
| vtrunc-vp.ll | -mtriple=riscv32 -mattr=+v,+m -verify-machineinstrs | |
| vtrunc-vp.ll | -mtriple=riscv64 -mattr=+v,+m -verify-machineinstrs | |
| vtrunc-vp.50478776fb.ll (mutant of vtrunc-vp.ll) | -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+m,+zvkb,+zfa -O2 |
Generated 2026-11-29 14:49 UTC.