fallback: translate: call llvm.memset.inline.p0.i64
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | translate: call llvm.memset.inline.p0.i64 M |
| Occurrences: | 3 in 2 configs, 1 test files, 14 more counted only |
| Snippet from: | memset-inline.2876fa2892.ll (mutant of memset-inline.ll) @memset_zero_32 via llvm-extract |
| Config: | -mtriple=riscv32 -mattr=+m,+unaligned-scalar-mem,+zfinx -O0 -verify-machineinstrs |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i8
; Function Attrs: nounwind
define void @memset_zero_32(ptr %a) #0 {
tail call void @llvm.memset.inline.p0.i64(ptr %a, i8 0, i64 32, i1 false)
%B = ashr i8 16, 0
store i8 %B, ptr @G, align 1
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,+unaligned-scalar-mem,+zfinx -O0 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+m,+unaligned-scalar-mem,+zfinx -O0 -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 %a, i8 0, i64 32, i1 false)' (in function: memset_zero_32)
warning: Instruction selection used fallback path for memset_zero_32
Occurrences (3):
| Input | Function | Config |
|---|
| memset-inline.1bb2177835.ll (mutant of memset-inline.ll) | memset_32 | -mtriple=riscv64 -mattr=+m,+zfinx,+zdinx -O2 -verify-machineinstrs |
| memset-inline.1bb2177835.ll (mutant of memset-inline.ll) | memset_zero_1 | -mtriple=riscv64 -mattr=+m,+zfinx,+zdinx -O2 -verify-machineinstrs |
| memset-inline.2876fa2892.ll (mutant of memset-inline.ll) | memset_zero_32 | -mtriple=riscv32 -mattr=+m,+unaligned-scalar-mem,+zfinx -O0 -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.