crash: Assertion failed: (MF.getSubtarget<RISCVSubtarget>().hasStdExtD()), function getInstrMapping, file RISCVRegisterBankInfo.cpp
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | crash |
| Category: | Assertion failed: (MF.getSubtarget<RISCVSubtarget>().hasStdExtD()), function getInstrMapping, file RISCVRegisterBankInfo.cpp M |
| Occurrences: | 1 in 1 configs, 1 test files |
| Snippet from: | sf_vfexpa.124b96670a.ll (mutant of sf_vfexpa.ll) @test_intrinsic_sf_vfexpa_v_mask_nxv16f32 via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+zve64f,+zvfh,+xsfvfexpa -O3 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i8
define <vscale x 16 x float> @test_intrinsic_sf_vfexpa_v_mask_nxv16f32(<vscale x 16 x float> %0, <vscale x 16 x float> %1, <vscale x 16 x i1> %m, i32 %vl) {
entry:
%A7 = alloca i1, align 1
store i1 false, ptr %A7, align 1
%A = alloca i1, align 1
store i1 false, ptr %A, align 1
%LGV = load i8, ptr @G, align 1
switch i8 %LGV, label %SW_D [
i8 -82, label %SW_C
i8 -114, label %SW_C1
i8 -41, label %SW_C2
i8 -123, label %SW_C3
i8 -65, label %SW_C4
i8 -53, label %SW_C5
i8 -100, label %SW_C6
]
BB: ; preds = %SW_C5, %SW_C2, %SW_C1, %SW_D
%f = call <vscale x 16 x float> @llvm.riscv.sf.vfexpa.mask.nxv16f32.i32(<vscale x 16 x float> %0, <vscale x 16 x float> %1, <vscale x 16 x i1> %m, i32 %vl, i32 0)
ret <vscale x 16 x float> %f
SW_D: ; preds = %entry
br label %BB
SW_C: ; preds = %entry
ret <vscale x 16 x float> %1
SW_C1: ; preds = %SW_C1, %entry
%L = load i1, ptr %A, align 1
br i1 %L, label %BB, label %SW_C1
SW_C2: ; preds = %SW_C2, %entry
%L8 = load i1, ptr %A7, align 1
br i1 %L8, label %SW_C2, label %BB
SW_C3: ; preds = %entry
ret <vscale x 16 x float> splat (float +inf)
SW_C4: ; preds = %entry
ret <vscale x 16 x float> %1
SW_C5: ; preds = %entry
br label %BB
SW_C6: ; preds = %entry
ret <vscale x 16 x float> splat (float +qnan)
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare <vscale x 16 x float> @llvm.riscv.sf.vfexpa.mask.nxv16f32.i32(<vscale x 16 x float>, <vscale x 16 x float>, <vscale x 16 x i1>, i32, i32 immarg) #0
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zve64f,+zvfh,+xsfvfexpa -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zve64f,+zvfh,+xsfvfexpa -O3 -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=+zve64f,+zvfh,+xsfvfexpa -O3 -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 '@test_intrinsic_sf_vfexpa_v_mask_nxv16f32'
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 0x000055bb6dc4fc1b llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 43
1 llc 0x000055bb6dc4cbf1 llvm::sys::RunSignalHandlers() + 369
2 llc 0x000055bb6dc5069b
3 libc.so.6 0x00007f156c245330
4 libc.so.6 0x00007f156c29ebec pthread_kill + 284
5 libc.so.6 0x00007f156c24527e gsignal + 30
6 libc.so.6 0x00007f156c2288ff abort + 223
7 libc.so.6 0x00007f156c22881b
8 libc.so.6 0x00007f156c23b517
9 llc 0x000055bb6c33755d
10 llc 0x000055bb6e5caac7
11 llc 0x000055bb6e5c9ee5 llvm::RegBankSelectLegacy::runOnMachineFunction(llvm::MachineFunction&) + 197
12 llc 0x000055bb6c8c8761 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 513
13 llc 0x000055bb6ce64a77 llvm::FPPassManager::runOnFunction(llvm::Function&) + 871
14 llc 0x000055bb6ce6cf92 llvm::FPPassManager::runOnModule(llvm::Module&) + 50
15 llc 0x000055bb6ce65820 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 2000
16 llc 0x000055bb6c0bf689
17 llc 0x000055bb6c0bc813 main + 1747
18 libc.so.6 0x00007f156c22a1ca
19 libc.so.6 0x00007f156c22a28b __libc_start_main + 139
20 llc 0x000055bb6c0bb925 _start + 37
Occurrences (1):
| Input | Function | Config |
|---|
| sf_vfexpa.124b96670a.ll (mutant of sf_vfexpa.ll) | | -mtriple=riscv32 -verify-machineinstrs -mattr=+zve64f,+zvfh,+xsfvfexpa -O3 |
Generated 2026-11-29 14:49 UTC.