crash: Assertion failed: ((MeaningfulBitWidth.isScalable() || OrigValueBitWidth >= MeaningfulBitWidth) && "Meaningful bits not covered by the mapping"), function verify, file RegisterBankInfo.cpp

Run:explore-04ca53e65f-20261014-114124
Kind:crash
Category:Assertion failed: ((MeaningfulBitWidth.isScalable() || OrigValueBitWidth >= MeaningfulBitWidth) && "Meaningful bits not covered by the mapping"), function verify, file RegisterBankInfo.cpp
Occurrences:4 in 2 configs, 2 test files
Snippet from:calling-conv-ilp32d.ll @caller_double_ret via llvm-extract + llvm-reduce
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+d -target-abi ilp32d
Local check:reproduces at 04ca53e65f
Compiler Explorer:https://godbolt.org/z/osjGfscYe (llc-assertions-trunk, checked 2026-10-14 11:03 UTC): G reproduces

Snippet:

define i32 @caller_double_ret() {
  %1 = bitcast double 0.000000e+00 to i64
  %2 = trunc i64 %1 to i32
  ret i32 %2
}

Compiler Explorer panes:

PaneOptionsExitInstsstderr
GlobalISel-mtriple=riscv32 -verify-machineinstrs -mattr=+d -target-abi ilp32d -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.*1340llc: /root/llvm-project/llvm/lib/CodeGen/RegisterBankInfo.cpp:567: bool llvm::RegisterBankInfo::ValueMapping::verify(const llvm::RegisterBankInfo&, llvm::TypeSize) const: Assertion `(MeaningfulBitWidth.isScalable() || OrigValueBitWidth >= MeaningfulBitWidth) && "Meaningful bits not covered by the mapping"' 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 -verify-machineinstrs -mattr=+d -target-abi ilp32d -global-isel=002-

Reproduce:

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

Local llc output:

llc: /home/runner/work/llvm-fuzz/llvm-fuzz/llvm-project/llvm/lib/CodeGen/RegisterBankInfo.cpp:569: bool llvm::RegisterBankInfo::ValueMapping::verify(const RegisterBankInfo &, TypeSize) const: Assertion `(MeaningfulBitWidth.isScalable() || OrigValueBitWidth >= MeaningfulBitWidth) && "Meaningful bits not covered by the mapping"' 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 -verify-machineinstrs -mattr=+d -target-abi ilp32d -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* -o -
1.	Running pass 'Function Pass Manager' on module '<stdin>'.
2.	Running pass 'RegBankSelect' on function '@caller_double_ret'
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       0x000055ac4e64479b llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 43
1  llc       0x000055ac4e641641 llvm::sys::RunSignalHandlers() + 369
2  llc       0x000055ac4e64521b
3  libc.so.6 0x00007f004a845330
4  libc.so.6 0x00007f004a89ec0c pthread_kill + 284
5  libc.so.6 0x00007f004a84527e gsignal + 30
6  libc.so.6 0x00007f004a8288ff abort + 223
7  libc.so.6 0x00007f004a82881b
8  libc.so.6 0x00007f004a83b517
9  llc       0x000055ac4ecfe26f llvm::RegisterBankInfo::ValueMapping::verify(llvm::RegisterBankInfo const&, llvm::TypeSize) const + 831
10 llc       0x000055ac4ecfcfbb llvm::RegisterBankInfo::InstructionMapping::verify(llvm::MachineInstr const&) const + 235
11 llc       0x000055ac507a4ed4
12 llc       0x000055ac507a4105 llvm::RegBankSelectLegacy::runOnMachineFunction(llvm::MachineFunction&) + 197
13 llc       0x000055ac4ec0bd2d llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 653
14 llc       0x000055ac4e99bcd7 llvm::FPPassManager::runOnFunction(llvm::Function&) + 871
15 llc       0x000055ac4e9a41d2 llvm::FPPassManager::runOnModule(llvm::Module&) + 50
16 llc       0x000055ac4e99ca80 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 2000
17 llc       0x000055ac4e64bdf8 llcMain + 12056
18 llc       0x000055ac4e58762f main + 63
19 libc.so.6 0x00007f004a82a1ca
20 libc.so.6 0x00007f004a82a28b __libc_start_main + 139
21 llc       0x000055ac4e587525 _start + 37

Occurrences (4):

InputFunctionConfig
calling-conv-ilp32d.ll-mtriple=riscv32 -verify-machineinstrs -mattr=+d -target-abi ilp32d
fpclamptosat.ll-mtriple=riscv32 -mattr=+f,+d -verify-machineinstrs -target-abi=ilp32d
fpclamptosat.4e1edd3e0e.ll (mutant of fpclamptosat.ll)-mtriple=riscv32 -mattr=+f,+d -verify-machineinstrs -target-abi=ilp32d
fpclamptosat.6c0cc347cb.ll (mutant of fpclamptosat.ll)-mtriple=riscv32 -mattr=+f,+d -verify-machineinstrs -target-abi=ilp32d

Generated 2026-10-15 08:05 UTC.