fallback: translate: call llvm.memset.inline.p0.i64

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: call llvm.memset.inline.p0.i64 M
Occurrences:3 in 3 configs, 1 test files, 19 more counted only
Snippet from:memset-inline.ecd3cd7102.ll (mutant of memset-inline.ll) @memset_zero_16 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.2 = external global i1

; Function Attrs: nounwind
define void @memset_zero_16(ptr %a) #0 {
  tail call void @llvm.memset.inline.p0.i64(ptr %a, i8 0, i64 16, i1 false)
  %C = icmp ugt i8 1, -128
  store i1 %C, ptr @G.2, 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=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.inline.p0.i64: '  tail call void @llvm.memset.inline.p0.i64(ptr align 1 %a, i8 0, i64 16, i1 false)' (in function: memset_zero_16)
warning: Instruction selection used fallback path for memset_zero_16

Occurrences (3):

InputFunctionConfig
memset-inline.60e3670a30.ll (mutant of memset-inline.ll)aligned_memset_4-mtriple=riscv64 -mattr=+m,+unaligned-scalar-mem,+zdinx,+zvbb -O1 -verify-machineinstrs
memset-inline.b5a4a5ffc7.ll (mutant of memset-inline.ll)memset_32-mtriple=riscv32 -mattr=+m,+zhinx -O0 -verify-machineinstrs
memset-inline.ecd3cd7102.ll (mutant of memset-inline.ll)memset_zero_16-mtriple=riscv64 -mattr=+zfinx -O3 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.