crash: Assertion failed: (MF.getRegInfo().isReserved(FPReg) && "FP not reserved"), function emitPrologue, file RISCVFrameLowering.cpp
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | crash |
| Category: | Assertion failed: (MF.getRegInfo().isReserved(FPReg) && "FP not reserved"), function emitPrologue, file RISCVFrameLowering.cpp M |
| Occurrences: | 2 in 2 configs, 2 test files |
| Snippet from: | rv64e.775cf0adb3.ll (mutant of rv64e.ll) @exhausted via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+e,+zve64d,+zve32x -O3 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i64
@G.1 = external global i1
@G.2 = external global i64
define i64 @exhausted(i64 %a, i64 %b, i64 %c, i64 %d, i64 %e, i64 %f, i64 %g) {
%LGV = load i64, ptr @G, align 4
%C = icmp uge i64 %e, %LGV
%B = xor i64 %d, 42
%1 = add i64 %d, %B
%C1 = fcmp uno float +qnan, 4.200000e+01
%2 = add i64 %e, %1
%B3 = lshr i64 %g, %c
%3 = add i64 %f, %2
%4 = add i64 %g, %3
store i1 %C, ptr @G.1, align 1
store i1 %C1, ptr poison, align 1
store i64 %B3, ptr @G.2, align 4
ret i64 %4
}
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+e,+zve64d,+zve32x -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+e,+zve64d,+zve32x -O3 -global-isel=0 snippet.ll -o -
Local llc output:
llc: /home/runner/work/llvm-fuzz/llvm-fuzz/llvm-project/llvm/lib/Target/RISCV/RISCVFrameLowering.cpp:1363: virtual void llvm::RISCVFrameLowering::emitPrologue(MachineFunction &, MachineBasicBlock &) const: Assertion `MF.getRegInfo().isReserved(FPReg) && "FP not reserved"' 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=riscv64 -verify-machineinstrs -mattr=+e,+zve64d,+zve32x -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* -o -
1. Running pass 'Function Pass Manager' on module '<stdin>'.
2. Running pass 'Prologue/Epilogue Insertion & Frame Finalization' on function '@exhausted'
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 0x00005573ebfd0c1b llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 43
1 llc 0x00005573ebfcdbf1 llvm::sys::RunSignalHandlers() + 369
2 llc 0x00005573ebfd169b
3 libc.so.6 0x00007f76f6e45330
4 libc.so.6 0x00007f76f6e9ebec pthread_kill + 284
5 libc.so.6 0x00007f76f6e4527e gsignal + 30
6 libc.so.6 0x00007f76f6e288ff abort + 223
7 libc.so.6 0x00007f76f6e2881b
8 libc.so.6 0x00007f76f6e3b517
9 llc 0x00005573ea4a4308
10 llc 0x00005573eae44540
11 llc 0x00005573eae47647
12 llc 0x00005573eac49761 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 513
13 llc 0x00005573eb1e5a77 llvm::FPPassManager::runOnFunction(llvm::Function&) + 871
14 llc 0x00005573eb1edf92 llvm::FPPassManager::runOnModule(llvm::Module&) + 50
15 llc 0x00005573eb1e6820 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 2000
16 llc 0x00005573ea440689
17 llc 0x00005573ea43d813 main + 1747
18 libc.so.6 0x00007f76f6e2a1ca
19 libc.so.6 0x00007f76f6e2a28b __libc_start_main + 139
20 llc 0x00005573ea43c925 _start + 37
Occurrences (2):
| Input | Function | Config |
|---|
| rv64e.775cf0adb3.ll (mutant of rv64e.ll) | | -mtriple=riscv64 -verify-machineinstrs -mattr=+e,+zve64d,+zve32x -O3 |
| xqccmp-additional-stack.0ffba66af0.ll (mutant of xqccmp-additional-stack.ll) | | -mtriple=riscv32 -target-abi ilp32e -verify-machineinstrs -mattr=+xqccmp,+e,+zfh,+zvfh -O3 |
Generated 2026-11-29 14:49 UTC.