crash: Assertion failed: (MF.getSubtarget<RISCVSubtarget>().hasStdExtD()), function getInstrMapping, file RISCVRegisterBankInfo.cpp
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | crash |
| Category: | Assertion failed: (MF.getSubtarget<RISCVSubtarget>().hasStdExtD()), function getInstrMapping, file RISCVRegisterBankInfo.cpp M |
| Occurrences: | 2 in 2 configs, 1 test files |
| Snippet from: | vsplats-fp.4424838e84.ll (mutant of vsplats-fp.ll) @vsplat_zero_nxv8f32 via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+zvfhmin,+zvfbfmin -O1 |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define <vscale x 8 x float> @vsplat_zero_nxv8f32() {
%A = alloca i1, align 1
store i1 poison, ptr %A, align 1
%B = shl i1 true, true
store i1 %B, ptr %A, align 1
ret <vscale x 8 x float> zeroinitializer
}
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zvfhmin,+zvfbfmin -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zvfhmin,+zvfbfmin -O1 -global-isel=0 snippet.ll -o -
Local llc output:
llc: /home/runner/work/llvm-fuzz/llvm-fuzz/llvm-project/llvm/lib/Target/RISCV/GISel/RISCVRegisterBankInfo.cpp:610: virtual const RegisterBankInfo::InstructionMapping &llvm::RISCVRegisterBankInfo::getInstrMapping(const MachineInstr &) const: Assertion `MF.getSubtarget<RISCVSubtarget>().hasStdExtD()' 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=+zvfhmin,+zvfbfmin -O1 -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 '@vsplat_zero_nxv8f32'
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 0x000055e1d09ceb5b llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 43
1 llc 0x000055e1d09cbb31 llvm::sys::RunSignalHandlers() + 369
2 llc 0x000055e1d09cf5db
3 libc.so.6 0x00007f0acf245330
4 libc.so.6 0x00007f0acf29ebec pthread_kill + 284
5 libc.so.6 0x00007f0acf24527e gsignal + 30
6 libc.so.6 0x00007f0acf2288ff abort + 223
7 libc.so.6 0x00007f0acf22881b
8 libc.so.6 0x00007f0acf23b517
9 llc 0x000055e1cf0b67cd
10 llc 0x000055e1d13494d7
11 llc 0x000055e1d13488f5 llvm::RegBankSelectLegacy::runOnMachineFunction(llvm::MachineFunction&) + 197
12 llc 0x000055e1cf647891 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 513
13 llc 0x000055e1cfbe37f7 llvm::FPPassManager::runOnFunction(llvm::Function&) + 871
14 llc 0x000055e1cfbebd12 llvm::FPPassManager::runOnModule(llvm::Module&) + 50
15 llc 0x000055e1cfbe45a0 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 2000
16 llc 0x000055e1cee3e8c9
17 llc 0x000055e1cee3ba53 main + 1747
18 libc.so.6 0x00007f0acf22a1ca
19 libc.so.6 0x00007f0acf22a28b __libc_start_main + 139
20 llc 0x000055e1cee3ab65 _start + 37
Occurrences (2):
| Input | Function | Config |
|---|
| vsplats-fp.4424838e84.ll (mutant of vsplats-fp.ll) | | -mtriple=riscv32 -verify-machineinstrs -mattr=+zvfhmin,+zvfbfmin -O1 |
| vsplats-fp.d5b3867fbf.ll (mutant of vsplats-fp.ll) | | -mtriple=riscv32 -verify-machineinstrs -mattr=+zfhmin,+zvfhmin,+zvfbfmin -O1 -code-model=small |
Generated 2026-11-29 14:49 UTC.