crash: Assertion failed: (MF.getRegInfo().isReserved(FPReg) && "FP not reserved"), function emitPrologue, file RISCVFrameLowering.cpp
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | crash |
| Category: | Assertion failed: (MF.getRegInfo().isReserved(FPReg) && "FP not reserved"), function emitPrologue, file RISCVFrameLowering.cpp M |
| Occurrences: | 3 in 3 configs, 3 test files, 2 more counted only |
| Snippet from: | callee-saved-gprs.63484e3e24.ll (mutant of callee-saved-gprs.ll) @foo via llvm-extract |
| Config: | -mtriple=riscv32 -target-abi ilp32e -verify-machineinstrs -mattr=+zve32x,+m -O0 |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i1
define void @foo() {
entry:
%C = fcmp ugt half +inf, +inf
tail call void asm sideeffect "li s4, 0", "~{s4}"()
store i1 %C, ptr @G, align 1
ret void
}
Reproduce:
llc -mtriple=riscv32 -target-abi ilp32e -verify-machineinstrs -mattr=+zve32x,+m -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -target-abi ilp32e -verify-machineinstrs -mattr=+zve32x,+m -O0 -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=riscv32 -target-abi ilp32e -verify-machineinstrs -mattr=+zve32x,+m -O0 -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 '@foo'
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 0x000055b5af9eb9eb llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 43
1 llc 0x000055b5af9e89c1 llvm::sys::RunSignalHandlers() + 369
2 llc 0x000055b5af9ec46b
3 libc.so.6 0x00007f535e645330
4 libc.so.6 0x00007f535e69ebec pthread_kill + 284
5 libc.so.6 0x00007f535e64527e gsignal + 30
6 libc.so.6 0x00007f535e6288ff abort + 223
7 libc.so.6 0x00007f535e62881b
8 libc.so.6 0x00007f535e63b517
9 llc 0x000055b5adebfdc8
10 llc 0x000055b5ae860490
11 llc 0x000055b5ae863597
12 llc 0x000055b5ae6656b1 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 513
13 llc 0x000055b5aec00b37 llvm::FPPassManager::runOnFunction(llvm::Function&) + 871
14 llc 0x000055b5aec09052 llvm::FPPassManager::runOnModule(llvm::Module&) + 50
15 llc 0x000055b5aec018e0 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 2000
16 llc 0x000055b5ade5c149
17 llc 0x000055b5ade592d3 main + 1747
18 libc.so.6 0x00007f535e62a1ca
19 libc.so.6 0x00007f535e62a28b __libc_start_main + 139
20 llc 0x000055b5ade583e5 _start + 37
Occurrences (3):
| Input | Function | Config |
|---|
| callee-saved-fpr32s.3a4f4c8f10.ll (mutant of callee-saved-fpr32s.ll) | | -mtriple=riscv64 -target-abi lp64e -verify-machineinstrs -mattr=+f,+v -O2 |
| callee-saved-gprs.63484e3e24.ll (mutant of callee-saved-gprs.ll) | | -mtriple=riscv32 -target-abi ilp32e -verify-machineinstrs -mattr=+zve32x,+m -O0 |
| rv64e.625b27c4bc.ll (mutant of rv64e.ll) | | -mtriple=riscv64 -verify-machineinstrs -mattr=+e,+zvbb -O1 -code-model=small |
Generated 2026-11-29 14:49 UTC.