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

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: call llvm.memmove.p0.p0.i64 M
Occurrences:4 in 3 configs, 1 test files, 15 more counted only
Snippet from:memmove.1799a15118.ll (mutant of memmove.ll) @unaligned_memmove7 via llvm-extract
Config:-mtriple=riscv64 -mattr=+unaligned-scalar-mem,+zicond,+zfinx -O3 -verify-machineinstrs
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.3 = external global i1

; Function Attrs: nounwind
define void @unaligned_memmove7(ptr captures(none) %dest, ptr %src) #0 {
entry:
  tail call void @llvm.memmove.p0.p0.i64(ptr %dest, ptr %src, i64 7, i1 false)
  %C = icmp sle i16 42, -1
  store i1 %C, ptr @G.3, align 1
  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=+unaligned-scalar-mem,+zicond,+zfinx -O3 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+unaligned-scalar-mem,+zicond,+zfinx -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 7, i1 false)' (in function: unaligned_memmove7)
warning: Instruction selection used fallback path for unaligned_memmove7

Occurrences (4):

InputFunctionConfig
memmove.1799a15118.ll (mutant of memmove.ll)unaligned_memmove7-mtriple=riscv64 -mattr=+unaligned-scalar-mem,+zicond,+zfinx -O3 -verify-machineinstrs
memmove.3dc98d190f.ll (mutant of memmove.ll)unaligned_memmove7-mtriple=riscv64 -mattr=+unaligned-scalar-mem,+zhinx -O0 -verify-machineinstrs
memmove.d0cd25d13c.ll (mutant of memmove.ll)aligned_memmove2-mtriple=riscv32 -mattr=+zfinx -O3 -verify-machineinstrs
memmove.d0cd25d13c.ll (mutant of memmove.ll)aligned_memmove16-mtriple=riscv32 -mattr=+zfinx -O3 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.