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

Run:explore-db12fc36f6-20261127-115111
Kind:crash
Category:Assertion failed: ((MeaningfulBitWidth.isScalable() || OrigValueBitWidth >= MeaningfulBitWidth) && "Meaningful bits not covered by the mapping"), function verify, file RegisterBankInfo.cpp
Occurrences:17 in 13 configs, 11 test files, 202 more counted only
Snippet from:vmv.x.s.ll @intrinsic_vmv.x.s_s_nxv1i64 via llvm-extract
Config:-mtriple=riscv32 -mattr=+v -verify-machineinstrs
Local check:reproduces at db12fc36f6
Compiler Explorer:https://godbolt.org/z/Mq5n3PYPc (llc-assertions-trunk, checked 2026-11-18 14:46 UTC): G reproduces

Snippet:

; Function Attrs: nounwind
define i64 @intrinsic_vmv.x.s_s_nxv1i64(<vscale x 1 x i64> %0) #0 {
entry:
  %a = call i64 @llvm.riscv.vmv.x.s.nxv1i64(<vscale x 1 x i64> %0)
  ret i64 %a
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.riscv.vmv.x.s.nxv1i64(<vscale x 1 x i64>) #1

attributes #0 = { nounwind }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(none) }

Compiler Explorer panes:

PaneOptionsExitInstsstderr
GlobalISel-mtriple=riscv32 -mattr=+v -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.*1340llc: /root/llvm-project/llvm/lib/CodeGen/RegisterBankInfo.cpp:543: 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 -mattr=+v -verify-machineinstrs -global-isel=006-

Reproduce:

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

Local llc output:

llc: /home/runner/work/llvm-fuzz/llvm-fuzz/llvm-project/llvm/lib/CodeGen/RegisterBankInfo.cpp:545: 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 -mattr=+v -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 'RegBankSelect' on function '@intrinsic_vmv.x.s_s_nxv1i64'
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       0x00005605fc68ac1b llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 43
1  llc       0x00005605fc687bf1 llvm::sys::RunSignalHandlers() + 369
2  llc       0x00005605fc68b69b
3  libc.so.6 0x00007f681ac45330
4  libc.so.6 0x00007f681ac9ebec pthread_kill + 284
5  libc.so.6 0x00007f681ac4527e gsignal + 30
6  libc.so.6 0x00007f681ac288ff abort + 223
7  libc.so.6 0x00007f681ac2881b
8  libc.so.6 0x00007f681ac3b517
9  llc       0x00005605fb5a7e0f llvm::RegisterBankInfo::ValueMapping::verify(llvm::RegisterBankInfo const&, llvm::TypeSize) const + 831
10 llc       0x00005605fb5a6be6 llvm::RegisterBankInfo::InstructionMapping::verify(llvm::MachineInstr const&) const + 246
11 llc       0x00005605fd005cb4
12 llc       0x00005605fd004ee5 llvm::RegBankSelectLegacy::runOnMachineFunction(llvm::MachineFunction&) + 197
13 llc       0x00005605fb303761 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 513
14 llc       0x00005605fb89fa77 llvm::FPPassManager::runOnFunction(llvm::Function&) + 871
15 llc       0x00005605fb8a7f92 llvm::FPPassManager::runOnModule(llvm::Module&) + 50
16 llc       0x00005605fb8a0820 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 2000
17 llc       0x00005605faafa689
18 llc       0x00005605faaf7813 main + 1747
19 libc.so.6 0x00007f681ac2a1ca
20 libc.so.6 0x00007f681ac2a28b __libc_start_main + 139
21 llc       0x00005605faaf6925 _start + 37

Occurrences (17) (first 15):

InputFunctionConfig
fpclamptosat.ll-mtriple=riscv32 -mattr=+f,+d -verify-machineinstrs -target-abi=ilp32d
extractelt-fp.ll-mtriple=riscv32 -mattr=+v,+d,+zfhmin,+zfbfmin,+zvfhmin,+zvfbfmin -verify-machineinstrs
extractelt-fp.ll-mtriple=riscv32 -mattr=+v,+d,+zfhmin,+zvfhmin,+experimental-zvfbfa -verify-machineinstrs
extractelt-fp.ll-mtriple=riscv32 -mattr=+v,+d,+zvfh,+zvfbfmin -verify-machineinstrs
extractelt-fp.ll-mtriple=riscv32 -mattr=+v,+d,+zvfhmin,+zvfbfmin -verify-machineinstrs
insertelt-fp.ll-mtriple=riscv32 -mattr=+d,+zfh,+zfbfmin,+zvfh,+zvfbfmin,+v -target-abi=ilp32d -verify-machineinstrs
insertelt-fp.ll-mtriple=riscv32 -mattr=+d,+zfh,+zfbfmin,+zvfhmin,+zvfbfmin,+v -target-abi=ilp32d -verify-machineinstrs
insertelt-fp.ll-mtriple=riscv32 -mattr=+d,+zfh,+zvfhmin,+experimental-zvfbfa,+v -target-abi=ilp32d -verify-machineinstrs
insertelt-int-rv32.ll-mtriple=riscv32 -mattr=+v -target-abi=ilp32d -verify-machineinstrs
splat-repeated-i32-rv32.ll-mtriple=riscv32 -mattr=+v -riscv-v-vector-bits-min=256 -verify-machineinstrs
splat-repeated-i32-rv32.ll-mtriple=riscv32 -mattr=+v -verify-machineinstrs
vfmv.f.s.ll-mtriple=riscv32 -mattr=+d,+v,+zvfh -target-abi ilp32d -verify-machineinstrs
vfmv.s.f.ll-mtriple=riscv32 -mattr=+v,+zvfh -verify-machineinstrs -target-abi=ilp32d
vfmv.v.f.ll-mtriple=riscv32 -mattr=+v,+zvfh -verify-machineinstrs -target-abi=ilp32d
vmv.s.x.ll-mtriple=riscv32 -mattr=+v -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.