fallback: translate: call llvm.memcpy.p0.p0.i64
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | translate: call llvm.memcpy.p0.p0.i64 M |
| Occurrences: | 5 in 3 configs, 1 test files, 16 more counted only |
| Snippet from: | memcpy.e213d14961.ll (mutant of memcpy.ll) @memcpy_i64_var via llvm-extract |
| Config: | -mtriple=riscv64 -mattr=+zbkb,+zhinx -O3 -verify-machineinstrs |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.1 = external global i1
; Function Attrs: nounwind
define void @memcpy_i64_var(ptr %dest, ptr %src, i64 %n) #0 {
entry:
call void @llvm.memcpy.p0.p0.i64(ptr %dest, ptr %src, i64 %n, i1 false)
%C = fcmp uno bfloat 0.000000e+00, 0.000000e+00
store i1 %C, ptr @G.1, 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=riscv64 -mattr=+zbkb,+zhinx -O3 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+zbkb,+zhinx -O3 -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: ' call void @llvm.memcpy.p0.p0.i64(ptr align 1 %dest, ptr align 1 %src, i64 %n, i1 false)' (in function: memcpy_i64_var)
warning: Instruction selection used fallback path for memcpy_i64_var
Occurrences (5):
| Input | Function | Config |
|---|
| memcpy.a1bc4f6693.ll (mutant of memcpy.ll) | unaligned_memcpy16 | -mtriple=riscv64 -mattr=+unaligned-scalar-mem,+zfinx -O3 -verify-machineinstrs |
| memcpy.a1bc4f6693.ll (mutant of memcpy.ll) | aligned_memcpy0 | -mtriple=riscv64 -mattr=+unaligned-scalar-mem,+zfinx -O3 -verify-machineinstrs |
| memcpy.b7bf0153d8.ll (mutant of memcpy.ll) | aligned_memcpy0 | -mtriple=riscv32 -mcpu=chipsalliance-veer-eh1 -mtune=rocket -mattr=+zbb,+zdinx -O3 -verify-machineinstrs |
| memcpy.b7bf0153d8.ll (mutant of memcpy.ll) | aligned_memcpy4 | -mtriple=riscv32 -mcpu=chipsalliance-veer-eh1 -mtune=rocket -mattr=+zbb,+zdinx -O3 -verify-machineinstrs |
| memcpy.e213d14961.ll (mutant of memcpy.ll) | memcpy_i64_var | -mtriple=riscv64 -mattr=+zbkb,+zhinx -O3 -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.