fallback: translate: call llvm.memcpy.p0.p0.i64
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | translate: call llvm.memcpy.p0.p0.i64 M |
| Occurrences: | 6 in 4 configs, 1 test files, 13 more counted only |
| Snippet from: | memcpy.fa03a2c84c.ll (mutant of memcpy.ll) @aligned_memcpy3 via llvm-extract |
| Config: | -mtriple=riscv32 -mattr=+zfinx,+zbkb -O3 -code-model=medium -verify-machineinstrs |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.4 = external global i1
; Function Attrs: nounwind
define void @aligned_memcpy3(ptr captures(none) %dest, ptr %src) #0 {
entry:
tail call void @llvm.memcpy.p0.p0.i64(ptr align 8 %dest, ptr align 8 %src, i64 3, i1 false)
%B = ashr i1 false, false
store i1 %B, ptr @G.4, align 1
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.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=riscv32 -mattr=+zfinx,+zbkb -O3 -code-model=medium -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+zfinx,+zbkb -O3 -code-model=medium -verify-machineinstrs -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.memcpy.p0.p0.i64: ' tail call void @llvm.memcpy.p0.p0.i64(ptr align 8 %dest, ptr align 8 %src, i64 3, i1 false)' (in function: aligned_memcpy3)
warning: Instruction selection used fallback path for aligned_memcpy3
Occurrences (6):
| Input | Function | Config |
|---|
| memcpy.9c10616a76.ll (mutant of memcpy.ll) | aligned_memcpy7 | -mtriple=riscv64 -mattr=+zhinx -O1 -code-model=small -verify-machineinstrs |
| memcpy.c1883a229f.ll (mutant of memcpy.ll) | aligned_memcpy2 | -mtriple=riscv32 -mattr=+zdinx -O1 -verify-machineinstrs |
| memcpy.c1883a229f.ll (mutant of memcpy.ll) | memcpy_i64_var | -mtriple=riscv32 -mattr=+zdinx -O1 -verify-machineinstrs |
| memcpy.c7db93d366.ll (mutant of memcpy.ll) | unaligned_memcpy16 | -mtriple=riscv32 -mattr=+zdinx,+zbb -O2 -verify-machineinstrs |
| memcpy.c7db93d366.ll (mutant of memcpy.ll) | aligned_memcpy16 | -mtriple=riscv32 -mattr=+zdinx,+zbb -O2 -verify-machineinstrs |
| memcpy.fa03a2c84c.ll (mutant of memcpy.ll) | aligned_memcpy3 | -mtriple=riscv32 -mattr=+zfinx,+zbkb -O3 -code-model=medium -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.