fallback: translate: call llvm.memset.inline.p0.i64
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | translate: call llvm.memset.inline.p0.i64 M |
| Occurrences: | 3 in 3 configs, 2 test files, 5 more counted only |
| Snippet from: | memset-inline.045f635e44.ll (mutant of memset-inline.ll) @memset_4 via llvm-extract |
| Config: | -mtriple=riscv32 -mattr=+m,+zhinx,+zvbb -O3 -verify-machineinstrs |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
; Function Attrs: nounwind
define void @memset_4(ptr %a, i8 %value) #0 {
tail call void @llvm.memset.inline.p0.i64(ptr %a, i8 %value, i64 4, i1 false)
%G = getelementptr i1, ptr %a, i16 42
store ptr %G, ptr poison, align 8
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: write)
declare void @llvm.memset.inline.p0.i64(ptr writeonly captures(none), i8, i64, i1 immarg) #1
attributes #0 = { nounwind }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: write) }
Reproduce:
llc -mtriple=riscv32 -mattr=+m,+zhinx,+zvbb -O3 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+m,+zhinx,+zvbb -O3 -verify-machineinstrs -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.memset.inline.p0.i64: ' tail call void @llvm.memset.inline.p0.i64(ptr align 1 %a, i8 %value, i64 4, i1 false)' (in function: memset_4)
warning: Instruction selection used fallback path for memset_4
Occurrences (3):
| Input | Function | Config |
|---|
| memset-inline.045f635e44.ll (mutant of memset-inline.ll) | memset_4 | -mtriple=riscv32 -mattr=+m,+zhinx,+zvbb -O3 -verify-machineinstrs |
| memset-inline.8bb5cc7763.ll (mutant of memset-inline.ll) | aligned_memset_zero_15 | -mtriple=riscv32 -mattr=+m,+zfinx -O2 -verify-machineinstrs |
| memset-inline.95094028b1.ll (mutant of memset-inline.ll) | memset_zero_8 | -mtriple=riscv64 -mattr=+m,+zhinx -O1 -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.