crash: Assertion failed: (VA.getLocVT() == MVT::i32 && VAHi.getLocVT() == MVT::i32 && VA.getValVT() == MVT::f64 && VAHi.getValVT() == MVT::f64 && "unexpected custom value"), function int, file RISCVCallLowering.cpp

Run:explore-bc8218b282-20261015-075519
Kind:crash
Category:Assertion failed: (VA.getLocVT() == MVT::i32 && VAHi.getLocVT() == MVT::i32 && VA.getValVT() == MVT::f64 && VAHi.getValVT() == MVT::f64 && "unexpected custom value"), function int, file RISCVCallLowering.cpp
Occurrences:83 in 4 configs, 16 test files
Snippet from:rvp-reverse.ll @test_prev_v2i32 via llvm-extract + llvm-reduce
Config:-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
Local check:reproduces at bc8218b282
Compiler Explorer:https://godbolt.org/z/5YeqK48vf (llc-assertions-trunk, checked 2026-10-14 11:03 UTC): G reproduces

Snippet:

define <2 x i32> @test_prev_v2i32() {
  ret <2 x i32> zeroinitializer
}

Compiler Explorer panes:

PaneOptionsExitInstsstderr
GlobalISel-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.*1340llc: /root/llvm-project/llvm/lib/Target/RISCV/GISel/RISCVCallLowering.cpp:124: virtual unsigned int {anonymous}::RISCVOutgoingValueHandler::assignCustomValue(llvm::CallLowering::ArgInfo&, llvm::ArrayRef<llvm::CCValAssign>, std::function<void()>*): Assertion `VA.getLocVT() == MVT::i32 && VAHi.getLocVT() == MVT::i32 && VA.getValVT() == MVT::f64 && VAHi.getValVT() == MVT::f64 && "unexpected custom value"' 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=+experimental-p,+m,+zbb -verify-machineinstrs -global-isel=002-

Reproduce:

llc -mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs -global-isel=0 snippet.ll -o -

Local llc output:

llc: /home/runner/work/llvm-fuzz/llvm-fuzz/llvm-project/llvm/lib/Target/RISCV/GISel/RISCVCallLowering.cpp:126: virtual unsigned int (anonymous namespace)::RISCVOutgoingValueHandler::assignCustomValue(CallLowering::ArgInfo &, ArrayRef<CCValAssign>, std::function<void ()> *): Assertion `VA.getLocVT() == MVT::i32 && VAHi.getLocVT() == MVT::i32 && VA.getValVT() == MVT::f64 && VAHi.getValVT() == MVT::f64 && "unexpected custom value"' 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=+experimental-p,+m,+zbb -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 '@test_prev_v2i32'
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       0x000055f4b273754b llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 43
1  llc       0x000055f4b27343f1 llvm::sys::RunSignalHandlers() + 369
2  llc       0x000055f4b2737fcb
3  libc.so.6 0x00007f6db9645330
4  libc.so.6 0x00007f6db969ec0c pthread_kill + 284
5  libc.so.6 0x00007f6db964527e gsignal + 30
6  libc.so.6 0x00007f6db96288ff abort + 223
7  libc.so.6 0x00007f6db962881b
8  libc.so.6 0x00007f6db963b517
9  llc       0x000055f4b3954575
10 llc       0x000055f4b47a6d90 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
11 llc       0x000055f4b395142d
12 llc       0x000055f4b47fbeef llvm::IRTranslatorImpl::translateRet(llvm::User const&, llvm::MachineIRBuilder&) + 239
13 llc       0x000055f4b481343d 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*) + 4253
14 llc       0x000055f4b481442d llvm::IRTranslatorLegacy::runOnMachineFunction(llvm::MachineFunction&) + 733
15 llc       0x000055f4b2cfe9ed llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 653
16 llc       0x000055f4b2a8ed37 llvm::FPPassManager::runOnFunction(llvm::Function&) + 871
17 llc       0x000055f4b2a97232 llvm::FPPassManager::runOnModule(llvm::Module&) + 50
18 llc       0x000055f4b2a8fae0 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 2000
19 llc       0x000055f4b273eba8 llcMain + 12056
20 llc       0x000055f4b26796af main + 63
21 libc.so.6 0x00007f6db962a1ca
22 libc.so.6 0x00007f6db962a28b __libc_start_main + 139
23 llc       0x000055f4b26795a5 _start + 37

Occurrences (83) (first 50):

InputFunctionConfig
calling-conv-p-ext-vector.ll-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
rvp-bitreverse-zbkb.ll-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb,+zbkb -verify-machineinstrs
rvp-insert-subvector.ll-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
rvp-mul-parts-acc-fold.ll-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
rvp-narrowing-clip.ll-mtriple=riscv32 -mattr=+experimental-p -verify-machineinstrs
rvp-narrowing-shift.ll-mtriple=riscv32 -mattr=+experimental-p -verify-machineinstrs
rvp-narrowing-zip.ll-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
rvp-reverse.ll-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
rvp-simd-32.ll-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
rvp-simd-64.ll-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
rvp-widening-add-acc.ll-mtriple=riscv32 -mattr=+experimental-p -verify-machineinstrs
rvp-widening-convert.ll-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
rvp-widening-shift.ll-mtriple=riscv32 -mattr=+experimental-p -verify-machineinstrs
rvp-widening-sub-acc.ll-mtriple=riscv32 -mattr=+experimental-p -verify-machineinstrs
rvp-zip.ll-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
calling-conv-p-ext-vector.5c58688192.ll (mutant of calling-conv-p-ext-vector.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
calling-conv-p-ext-vector.a8566a4a01.ll (mutant of calling-conv-p-ext-vector.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
calling-conv-p-ext-vector.c26245ff28.ll (mutant of calling-conv-p-ext-vector.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
calling-conv-p-ext-vector.d40aed1c30.ll (mutant of calling-conv-p-ext-vector.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
fastcc-bf16.19db33766a.ll (mutant of fastcc-bf16.ll)-mtriple=riscv32 -mattr=+zfbfmin -target-abi=ilp32 -verify-machineinstrs
fastcc-bf16.2aa8426a36.ll (mutant of fastcc-bf16.ll)-mtriple=riscv32 -mattr=+zfbfmin -target-abi=ilp32 -verify-machineinstrs
rvp-bitreverse-zbkb.6abec970c9.ll (mutant of rvp-bitreverse-zbkb.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb,+zbkb -verify-machineinstrs
rvp-bitreverse-zbkb.c1c17fe8e4.ll (mutant of rvp-bitreverse-zbkb.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb,+zbkb -verify-machineinstrs
rvp-bitreverse-zbkb.e566e24b29.ll (mutant of rvp-bitreverse-zbkb.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb,+zbkb -verify-machineinstrs
rvp-bitreverse-zbkb.eb6c1f5a42.ll (mutant of rvp-bitreverse-zbkb.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb,+zbkb -verify-machineinstrs
rvp-insert-subvector.198f5000cf.ll (mutant of rvp-insert-subvector.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
rvp-insert-subvector.19d358d2f6.ll (mutant of rvp-insert-subvector.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
rvp-insert-subvector.d9bb141f9a.ll (mutant of rvp-insert-subvector.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
rvp-insert-subvector.e7339b5412.ll (mutant of rvp-insert-subvector.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
rvp-insert-subvector.ed3a8c95c0.ll (mutant of rvp-insert-subvector.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
rvp-mul-parts-acc-fold.29bc63d40f.ll (mutant of rvp-mul-parts-acc-fold.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
rvp-mul-parts-acc-fold.5930a51578.ll (mutant of rvp-mul-parts-acc-fold.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
rvp-mul-parts-acc-fold.6743dbbd6f.ll (mutant of rvp-mul-parts-acc-fold.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
rvp-mul-parts-acc-fold.cc8c7c714f.ll (mutant of rvp-mul-parts-acc-fold.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
rvp-narrowing-clip.2de4cbe354.ll (mutant of rvp-narrowing-clip.ll)-mtriple=riscv32 -mattr=+experimental-p -verify-machineinstrs
rvp-narrowing-clip.cd3a34253d.ll (mutant of rvp-narrowing-clip.ll)-mtriple=riscv32 -mattr=+experimental-p -verify-machineinstrs
rvp-narrowing-clip.de7df2003e.ll (mutant of rvp-narrowing-clip.ll)-mtriple=riscv32 -mattr=+experimental-p -verify-machineinstrs
rvp-narrowing-clip.e8b1f984ae.ll (mutant of rvp-narrowing-clip.ll)-mtriple=riscv32 -mattr=+experimental-p -verify-machineinstrs
rvp-narrowing-clip.f18905f98f.ll (mutant of rvp-narrowing-clip.ll)-mtriple=riscv32 -mattr=+experimental-p -verify-machineinstrs
rvp-narrowing-shift.066975d73a.ll (mutant of rvp-narrowing-shift.ll)-mtriple=riscv32 -mattr=+experimental-p -verify-machineinstrs
rvp-narrowing-shift.2ea41eaf5b.ll (mutant of rvp-narrowing-shift.ll)-mtriple=riscv32 -mattr=+experimental-p -verify-machineinstrs
rvp-narrowing-shift.c92c22dff9.ll (mutant of rvp-narrowing-shift.ll)-mtriple=riscv32 -mattr=+experimental-p -verify-machineinstrs
rvp-narrowing-shift.d3089c6b38.ll (mutant of rvp-narrowing-shift.ll)-mtriple=riscv32 -mattr=+experimental-p -verify-machineinstrs
rvp-narrowing-shift.f90ad9a475.ll (mutant of rvp-narrowing-shift.ll)-mtriple=riscv32 -mattr=+experimental-p -verify-machineinstrs
rvp-narrowing-zip.3d8d9cd188.ll (mutant of rvp-narrowing-zip.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
rvp-narrowing-zip.3f0b0823ce.ll (mutant of rvp-narrowing-zip.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
rvp-narrowing-zip.42f6dad299.ll (mutant of rvp-narrowing-zip.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
rvp-narrowing-zip.58746239be.ll (mutant of rvp-narrowing-zip.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
rvp-narrowing-zip.ba0d17dd7f.ll (mutant of rvp-narrowing-zip.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
rvp-reverse.5788fdd3ba.ll (mutant of rvp-reverse.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs

Generated 2026-10-15 08:05 UTC.