fallback: translate: call llvm.stacksave.p0
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | translate: call llvm.stacksave.p0 M |
| Occurrences: | 3 in 3 configs, 2 test files, 6 more counted only |
| Snippet from: | push-pop-popret.04cfd81b1a.ll (mutant of push-pop-popret.ll) @alloca via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O1 |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
declare void @notdead(ptr)
define void @alloca(i32 %n) {
%sp = call ptr @llvm.stacksave.p0()
%addr = alloca i8, i32 %n, align 1
call void @notdead(ptr %addr)
call void @llvm.stackrestore.p0(ptr %sp)
store ptr %addr, ptr poison, align 8
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #0
; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #0
attributes #0 = { nocallback nofree nosync nounwind willreturn }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O1 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.stacksave.p0: ' %sp = call ptr @llvm.stacksave.p0()' (in function: alloca)
warning: Instruction selection used fallback path for alloca
Occurrences (3):
| Input | Function | Config |
|---|
| push-pop-popret.04cfd81b1a.ll (mutant of push-pop-popret.ll) | alloca | -mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O1 |
| xqccmp-push-pop-popret.3e3430f46c.ll (mutant of xqccmp-push-pop-popret.ll) | alloca | -mtriple=riscv64 -verify-machineinstrs -mattr=+save-restore,+zdinx -O0 |
| xqccmp-push-pop-popret.7f39dd79bf.ll (mutant of xqccmp-push-pop-popret.ll) | alloca | -mtriple=riscv32 -verify-machineinstrs -mattr=+xqccmp,+save-restore,+xtheadba,+zdinx -O0 |
Generated 2026-11-29 14:49 UTC.