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:main-04ca53e65f-20261014-113325
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:82 in 4 configs, 15 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 04ca53e65f
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       0x0000564f4b21579b llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 43
1  llc       0x0000564f4b212641 llvm::sys::RunSignalHandlers() + 369
2  llc       0x0000564f4b21621b
3  libc.so.6 0x00007effbde45330
4  libc.so.6 0x00007effbde9ec0c pthread_kill + 284
5  libc.so.6 0x00007effbde4527e gsignal + 30
6  libc.so.6 0x00007effbde288ff abort + 223
7  libc.so.6 0x00007effbde2881b
8  libc.so.6 0x00007effbde3b517
9  llc       0x0000564f4c431595
10 llc       0x0000564f4d280ee0 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       0x0000564f4c42e46d
12 llc       0x0000564f4d2d603f llvm::IRTranslatorImpl::translateRet(llvm::User const&, llvm::MachineIRBuilder&) + 239
13 llc       0x0000564f4d2ed51d 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       0x0000564f4d2ee50d llvm::IRTranslatorLegacy::runOnMachineFunction(llvm::MachineFunction&) + 733
15 llc       0x0000564f4b7dcd2d llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 653
16 llc       0x0000564f4b56ccd7 llvm::FPPassManager::runOnFunction(llvm::Function&) + 871
17 llc       0x0000564f4b5751d2 llvm::FPPassManager::runOnModule(llvm::Module&) + 50
18 llc       0x0000564f4b56da80 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 2000
19 llc       0x0000564f4b21cdf8 llcMain + 12056
20 llc       0x0000564f4b15862f main + 63
21 libc.so.6 0x00007effbde2a1ca
22 libc.so.6 0x00007effbde2a28b __libc_start_main + 139
23 llc       0x0000564f4b158525 _start + 37

Occurrences (82) (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-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.0c59995aa0.ll (mutant of calling-conv-p-ext-vector.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
calling-conv-p-ext-vector.57ea40ebb6.ll (mutant of calling-conv-p-ext-vector.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
calling-conv-p-ext-vector.6788cec455.ll (mutant of calling-conv-p-ext-vector.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
calling-conv-p-ext-vector.88fcd4534e.ll (mutant of calling-conv-p-ext-vector.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
fastcc-bf16.01f2ed7c61.ll (mutant of fastcc-bf16.ll)-mtriple=riscv32 -mattr=+zfbfmin -target-abi=ilp32 -verify-machineinstrs
fastcc-bf16.287fe12402.ll (mutant of fastcc-bf16.ll)-mtriple=riscv32 -mattr=+zfbfmin -target-abi=ilp32 -verify-machineinstrs
fastcc-bf16.714818a3f0.ll (mutant of fastcc-bf16.ll)-mtriple=riscv32 -mattr=+zfbfmin -target-abi=ilp32 -verify-machineinstrs
rvp-bitreverse-zbkb.0ea877517f.ll (mutant of rvp-bitreverse-zbkb.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb,+zbkb -verify-machineinstrs
rvp-bitreverse-zbkb.39615da9a0.ll (mutant of rvp-bitreverse-zbkb.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb,+zbkb -verify-machineinstrs
rvp-bitreverse-zbkb.ade7acfa2b.ll (mutant of rvp-bitreverse-zbkb.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb,+zbkb -verify-machineinstrs
rvp-bitreverse-zbkb.c09762100c.ll (mutant of rvp-bitreverse-zbkb.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb,+zbkb -verify-machineinstrs
rvp-bitreverse-zbkb.ffa187f871.ll (mutant of rvp-bitreverse-zbkb.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb,+zbkb -verify-machineinstrs
rvp-insert-subvector.0adae1ad4d.ll (mutant of rvp-insert-subvector.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
rvp-insert-subvector.5ad8fb7d85.ll (mutant of rvp-insert-subvector.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
rvp-insert-subvector.88a559dec6.ll (mutant of rvp-insert-subvector.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
rvp-insert-subvector.d14e07ad9c.ll (mutant of rvp-insert-subvector.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
rvp-insert-subvector.e6c4d9edf1.ll (mutant of rvp-insert-subvector.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
rvp-mul-parts-acc-fold.15a8bf5de8.ll (mutant of rvp-mul-parts-acc-fold.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
rvp-mul-parts-acc-fold.3abad70714.ll (mutant of rvp-mul-parts-acc-fold.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
rvp-mul-parts-acc-fold.a59fa9155c.ll (mutant of rvp-mul-parts-acc-fold.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
rvp-mul-parts-acc-fold.b73ebc2d72.ll (mutant of rvp-mul-parts-acc-fold.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
rvp-mul-parts-acc-fold.ca2f058704.ll (mutant of rvp-mul-parts-acc-fold.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
rvp-narrowing-shift.0543211569.ll (mutant of rvp-narrowing-shift.ll)-mtriple=riscv32 -mattr=+experimental-p -verify-machineinstrs
rvp-narrowing-shift.2b13606362.ll (mutant of rvp-narrowing-shift.ll)-mtriple=riscv32 -mattr=+experimental-p -verify-machineinstrs
rvp-narrowing-shift.2ce83b6028.ll (mutant of rvp-narrowing-shift.ll)-mtriple=riscv32 -mattr=+experimental-p -verify-machineinstrs
rvp-narrowing-shift.63b93b411b.ll (mutant of rvp-narrowing-shift.ll)-mtriple=riscv32 -mattr=+experimental-p -verify-machineinstrs
rvp-narrowing-shift.68c4888856.ll (mutant of rvp-narrowing-shift.ll)-mtriple=riscv32 -mattr=+experimental-p -verify-machineinstrs
rvp-narrowing-zip.2cdc1abbc4.ll (mutant of rvp-narrowing-zip.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
rvp-narrowing-zip.63f17fb0ba.ll (mutant of rvp-narrowing-zip.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
rvp-narrowing-zip.ad4616bb50.ll (mutant of rvp-narrowing-zip.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
rvp-narrowing-zip.c4bfc8c276.ll (mutant of rvp-narrowing-zip.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
rvp-narrowing-zip.ebde0a176a.ll (mutant of rvp-narrowing-zip.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
rvp-reverse.8b627c9c62.ll (mutant of rvp-reverse.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
rvp-reverse.8f1a690aee.ll (mutant of rvp-reverse.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
rvp-reverse.a53b95c423.ll (mutant of rvp-reverse.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs
rvp-reverse.becc441f29.ll (mutant of rvp-reverse.ll)-mtriple=riscv32 -mattr=+experimental-p,+m,+zbb -verify-machineinstrs

Generated 2026-10-15 08:05 UTC.