fallback: translate: call llvm.memset.p0.i32
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | translate: call llvm.memset.p0.i32 M |
| Occurrences: | 5 in 4 configs, 2 test files, 1 more counted only |
| Snippet from: | memset.7104a03f3b.ll (mutant of memset.ll) @memset_i32_var via llvm-extract |
| Config: | -mtriple=riscv64 -mattr=+zfinx -O3 -verify-machineinstrs |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.1 = external global i32
; Function Attrs: nounwind
define void @memset_i32_var(ptr %dest, i8 %val, i32 %n) #0 {
entry:
call void @llvm.memset.p0.i32(ptr %dest, i8 %val, i32 %n, i1 false)
%B = udiv i32 %n, 1
store i32 %B, ptr @G.1, align 4
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i32(ptr writeonly captures(none), i8, i32, i1 immarg) #1
attributes #0 = { nounwind }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: write) }
Reproduce:
llc -mtriple=riscv64 -mattr=+zfinx -O3 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+zfinx -O3 -verify-machineinstrs -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.memset.p0.i32: ' call void @llvm.memset.p0.i32(ptr align 1 %dest, i8 %val, i32 %n, i1 false)' (in function: memset_i32_var)
warning: Instruction selection used fallback path for memset_i32_var
Occurrences (5):
| Input | Function | Config |
|---|
| memset.1a1db7dabc.ll (mutant of memset.ll) | memset_i32_2147483648 | -mtriple=riscv64 -mattr=+zhinx -O3 -verify-machineinstrs |
| memset.7104a03f3b.ll (mutant of memset.ll) | memset_i32_var | -mtriple=riscv64 -mattr=+zfinx -O3 -verify-machineinstrs |
| memset.cd5b45c968.ll (mutant of memset.ll) | memset_zero_i32_2147483648 | -mtriple=riscv64 -mattr=+zfinx,+zvbb -O0 -verify-machineinstrs |
| xqcilsm-memset.7e8bb97776.ll (mutant of xqcilsm-memset.ll) | test7d | -mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx -O0 -code-model=medium |
| xqcilsm-memset.7e8bb97776.ll (mutant of xqcilsm-memset.ll) | test15c | -mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx -O0 -code-model=medium |
Generated 2026-11-29 14:49 UTC.