fallback: translate: call llvm.memmove.p0.p0.i64

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: call llvm.memmove.p0.p0.i64 M
Occurrences:5 in 3 configs, 1 test files, 4 more counted only
Snippet from:memmove.52fffb9760.ll (mutant of memmove.ll) @unaligned_memmove3 via llvm-extract
Config:-mtriple=riscv64 -mattr=+zfinx,+zbkb -O3 -verify-machineinstrs
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define void @unaligned_memmove3(ptr captures(none) %dest, ptr %src) #0 {
entry:
  tail call void @llvm.memmove.p0.p0.i64(ptr %dest, ptr %src, i64 3, i1 false)
  %G = getelementptr half, ptr %src, i1 true
  store ptr %G, ptr poison, align 8
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memmove.p0.p0.i64(ptr writeonly captures(none), ptr readonly captures(none), i64, i1 immarg) #1

attributes #0 = { nounwind }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }

Reproduce:

llc -mtriple=riscv64 -mattr=+zfinx,+zbkb -O3 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+zfinx,+zbkb -O3 -verify-machineinstrs -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: call llvm.memmove.p0.p0.i64: '  tail call void @llvm.memmove.p0.p0.i64(ptr align 1 %dest, ptr align 1 %src, i64 3, i1 false)' (in function: unaligned_memmove3)
warning: Instruction selection used fallback path for unaligned_memmove3

Occurrences (5):

InputFunctionConfig
memmove.320adfb90f.ll (mutant of memmove.ll)unaligned_memmove1-mtriple=riscv32 -mattr=+unaligned-scalar-mem,+zhinx -O1 -verify-machineinstrs
memmove.320adfb90f.ll (mutant of memmove.ll)unaligned_memmove8-mtriple=riscv32 -mattr=+unaligned-scalar-mem,+zhinx -O1 -verify-machineinstrs
memmove.52fffb9760.ll (mutant of memmove.ll)unaligned_memmove3-mtriple=riscv64 -mattr=+zfinx,+zbkb -O3 -verify-machineinstrs
memmove.b36cb85af9.ll (mutant of memmove.ll)unaligned_memmove1-mtriple=riscv64 -mattr=+unaligned-scalar-mem,+zicsr,+zfinx -O3 -verify-machineinstrs
memmove.b36cb85af9.ll (mutant of memmove.ll)aligned_memmove4-mtriple=riscv64 -mattr=+unaligned-scalar-mem,+zicsr,+zfinx -O3 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.