fallback: translate: call llvm.memcpy.p0.p0.i64
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | translate: call llvm.memcpy.p0.p0.i64 M |
| Occurrences: | 3 in 3 configs, 1 test files, 9 more counted only |
| Snippet from: | memcpy.9362119d79.ll (mutant of memcpy.ll) @aligned_memcpy7 via llvm-extract |
| Config: | -mtriple=riscv32 -mcpu=chipsalliance-veer-eh1 -mtune=rocket -mattr=+zfinx,+zbb -O2 -verify-machineinstrs |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
; Function Attrs: nounwind
define void @aligned_memcpy7(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 7, i1 false)
%G = getelementptr <2 x i64>, ptr %dest, i1 true
store ptr %G, ptr poison, align 8
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 -mcpu=chipsalliance-veer-eh1 -mtune=rocket -mattr=+zfinx,+zbb -O2 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mcpu=chipsalliance-veer-eh1 -mtune=rocket -mattr=+zfinx,+zbb -O2 -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 7, i1 false)' (in function: aligned_memcpy7)
warning: Instruction selection used fallback path for aligned_memcpy7
Occurrences (3):
| Input | Function | Config |
|---|
| memcpy.0fa866f440.ll (mutant of memcpy.ll) | aligned_memcpy2 | -mtriple=riscv32 -mattr=+zdinx -O2 -verify-machineinstrs |
| memcpy.9362119d79.ll (mutant of memcpy.ll) | aligned_memcpy7 | -mtriple=riscv32 -mcpu=chipsalliance-veer-eh1 -mtune=rocket -mattr=+zfinx,+zbb -O2 -verify-machineinstrs |
| memcpy.ca0882d8b1.ll (mutant of memcpy.ll) | aligned_memcpy15 | -mtriple=riscv64 -mattr=+zhinx,+zcb -O1 -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.