fallback: translate: call llvm.memcpy.inline.p0.p0.i64
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | translate: call llvm.memcpy.inline.p0.p0.i64 M |
| Occurrences: | 4 in 2 configs, 2 test files, 91 more counted only |
| Snippet from: | memcpy-inline.36fbadceea.ll (mutant of memcpy-inline.ll) @unaligned_memcpy1 via llvm-extract |
| Config: | -mtriple=riscv64 -mattr=+unaligned-scalar-mem,+zhinx -O3 -verify-machineinstrs |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.2 = external global i1
; Function Attrs: nounwind
define void @unaligned_memcpy1(ptr captures(none) %dest, ptr %src) #0 {
entry:
tail call void @llvm.memcpy.inline.p0.p0.i64(ptr %dest, ptr %src, i64 1, i1 false)
%C = fcmp ogt double +qnan, 4.200000e+01
store i1 %C, ptr @G.2, align 1
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.inline.p0.p0.i64(ptr noalias writeonly captures(none), ptr noalias 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,+zhinx -O3 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+unaligned-scalar-mem,+zhinx -O3 -verify-machineinstrs -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.memcpy.inline.p0.p0.i64: ' tail call void @llvm.memcpy.inline.p0.p0.i64(ptr align 1 %dest, ptr align 1 %src, i64 1, i1 false)' (in function: unaligned_memcpy1)
warning: Instruction selection used fallback path for unaligned_memcpy1
Occurrences (4):
| Input | Function | Config |
|---|
| memcpy-inline.36fbadceea.ll (mutant of memcpy-inline.ll) | unaligned_memcpy1 | -mtriple=riscv64 -mattr=+unaligned-scalar-mem,+zhinx -O3 -verify-machineinstrs |
| memcpy-inline.36fbadceea.ll (mutant of memcpy-inline.ll) | unaligned_memcpy8 | -mtriple=riscv64 -mattr=+unaligned-scalar-mem,+zhinx -O3 -verify-machineinstrs |
| memcpy-inline.e6fe2badde.ll (mutant of memcpy-inline.ll) | unaligned_memcpy64 | -mtriple=riscv64 -mattr=+unaligned-scalar-mem,+unaligned-vector-mem,+zfinx -O3 -verify-machineinstrs |
| memcpy-inline.e6fe2badde.ll (mutant of memcpy-inline.ll) | aligned_memcpy31 | -mtriple=riscv64 -mattr=+unaligned-scalar-mem,+unaligned-vector-mem,+zfinx -O3 -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.