crash: Assertion failed: (MF.getRegInfo().isReserved(FPReg) && "FP not reserved"), function emitPrologue, file RISCVFrameLowering.cpp
| Run: | explore-d9924131a4-20261128-105811 |
| 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 |
| Snippet from: | callee-saved-fpr32s.e7e6efe5be.ll (mutant of callee-saved-fpr32s.ll) @callee via llvm-extract |
| Config: | -mtriple=riscv64 -target-abi lp64e -verify-machineinstrs -mattr=+f,+zvfh,+zicond -O3 |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@var = external global [32 x float]
@G = external global <2 x i64>
; Function Attrs: nounwind
define void @callee() #0 {
%B = mul <2 x i64> zeroinitializer, zeroinitializer
%val = load [32 x float], ptr @var, align 4
store volatile [32 x float] %val, ptr @var, align 4
store <2 x i64> %B, ptr @G, align 16
ret void
}
attributes #0 = { nounwind }
Reproduce:
llc -mtriple=riscv64 -target-abi lp64e -verify-machineinstrs -mattr=+f,+zvfh,+zicond -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -target-abi lp64e -verify-machineinstrs -mattr=+f,+zvfh,+zicond -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 -target-abi lp64e -verify-machineinstrs -mattr=+f,+zvfh,+zicond -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 '@callee'
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 0x0000564e989deb5b llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 43
1 llc 0x0000564e989dbb31 llvm::sys::RunSignalHandlers() + 369
2 llc 0x0000564e989df5db
3 libc.so.6 0x00007f2fe3845330
4 libc.so.6 0x00007f2fe389ebec pthread_kill + 284
5 libc.so.6 0x00007f2fe384527e gsignal + 30
6 libc.so.6 0x00007f2fe38288ff abort + 223
7 libc.so.6 0x00007f2fe382881b
8 libc.so.6 0x00007f2fe383b517
9 llc 0x0000564e96eb2548
10 llc 0x0000564e97852670
11 llc 0x0000564e97855777
12 llc 0x0000564e97657891 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 513
13 llc 0x0000564e97bf37f7 llvm::FPPassManager::runOnFunction(llvm::Function&) + 871
14 llc 0x0000564e97bfbd12 llvm::FPPassManager::runOnModule(llvm::Module&) + 50
15 llc 0x0000564e97bf45a0 llvm::legacy::PassManagerImpl::run(llvm::Module&) + 2000
16 llc 0x0000564e96e4e8c9
17 llc 0x0000564e96e4ba53 main + 1747
18 libc.so.6 0x00007f2fe382a1ca
19 libc.so.6 0x00007f2fe382a28b __libc_start_main + 139
20 llc 0x0000564e96e4ab65 _start + 37
Occurrences (3):
| Input | Function | Config |
|---|
| callee-saved-fpr32s.e7e6efe5be.ll (mutant of callee-saved-fpr32s.ll) | | -mtriple=riscv64 -target-abi lp64e -verify-machineinstrs -mattr=+f,+zvfh,+zicond -O3 |
| rv32e.ff3efadaeb.ll (mutant of rv32e.ll) | | -mtriple=riscv32 -verify-machineinstrs -mattr=+e,+zvkb -O2 |
| rv64e.98d301146d.ll (mutant of rv64e.ll) | | -mtriple=riscv64 -verify-machineinstrs -mattr=+e,+zvkb,+zve64d -O2 |
Generated 2026-11-29 14:49 UTC.