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

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

Snippet:

define i64 @intrinsic_vmv.x.s_s_nxv1i64() {
entry:
  %a = call i64 @llvm.riscv.vmv.x.s.nxv1i64(<vscale x 1 x i64> zeroinitializer)
  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>) #0

attributes #0 = { 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=008-

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       0x000055681dc7fc1b llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 43
1  llc       0x000055681dc7cbf1 llvm::sys::RunSignalHandlers() + 369
2  llc       0x000055681dc8069b
3  libc.so.6 0x00007f9f05e45330
4  libc.so.6 0x00007f9f05e9ebec pthread_kill + 284
5  libc.so.6 0x00007f9f05e4527e gsignal + 30
6  libc.so.6 0x00007f9f05e288ff abort + 223
7  libc.so.6 0x00007f9f05e2881b
8  libc.so.6 0x00007f9f05e3b517
9  llc       0x000055681cb9ce0f llvm::RegisterBankInfo::ValueMapping::verify(llvm::RegisterBankInfo const&, llvm::TypeSize) const + 831
10 llc       0x000055681cb9bbe6 llvm::RegisterBankInfo::InstructionMapping::verify(llvm::MachineInstr const&) const + 246
11 llc       0x000055681e5facb4
12 llc       0x000055681e5f9ee5 llvm::RegBankSelectLegacy::runOnMachineFunction(llvm::MachineFunction&) + 197
13 llc       0x000055681c8f8761 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 513
14 llc       0x000055681ce94a77 llvm::FPPassManager::runOnFunction(llvm::Function&) + 871
15 llc       0x000055681ce9cf92 llvm::FPPassManager::runOnModule(llvm::Module&) + 50
16 llc       0x000055681ce95820 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 2000
17 llc       0x000055681c0ef689
18 llc       0x000055681c0ec813 main + 1747
19 libc.so.6 0x00007f9f05e2a1ca
20 libc.so.6 0x00007f9f05e2a28b __libc_start_main + 139
21 llc       0x000055681c0eb925 _start + 37

Occurrences (49) (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.