fallback: translate: call llvm.memcpy.inline.p0.p0.i64
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | translate: call llvm.memcpy.inline.p0.p0.i64 M |
| Occurrences: | 4 in 4 configs, 2 test files, 42 more counted only |
| Snippet from: | memcpy-inline.e4845fc482.ll (mutant of memcpy-inline.ll) @test_memcpy_inline_4bytes via llvm-extract |
| Config: | -mtriple=riscv64 -mattr=+unaligned-scalar-mem,+zfinx -O3 -verify-machineinstrs |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.1 = external global ptr
define void @test_memcpy_inline_4bytes(ptr %dst, ptr readonly %src) {
call void @llvm.memcpy.inline.p0.p0.i64(ptr %dst, ptr %src, i64 4, i1 false)
%G = getelementptr i32, ptr %src, i64 4294967296
store ptr %G, ptr @G.1, align 8
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) #0
attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
Reproduce:
llc -mtriple=riscv64 -mattr=+unaligned-scalar-mem,+zfinx -O3 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+unaligned-scalar-mem,+zfinx -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: ' call void @llvm.memcpy.inline.p0.p0.i64(ptr align 1 %dst, ptr align 1 %src, i64 4, i1 false)' (in function: test_memcpy_inline_4bytes)
warning: Instruction selection used fallback path for test_memcpy_inline_4bytes
Occurrences (4):
| Input | Function | Config |
|---|
| memcpy-inline.3d51ab2182.ll (mutant of memcpy-inline.ll) | aligned_memcpy7 | -mtriple=riscv32 -mattr=+unaligned-scalar-mem,+zfinx -O0 -code-model=medium -verify-machineinstrs |
| memcpy-inline.7e851bbd91.ll (mutant of memcpy-inline.ll) | aligned_memcpy15 | -mtriple=riscv64 -mattr=+zfinx -O2 -verify-machineinstrs |
| memcpy-inline.daf0ae2fb0.ll (mutant of memcpy-inline.ll) | aligned_memcpy8 | -mtriple=riscv32 -mattr=+zhinx,+zbkb -O3 -verify-machineinstrs |
| memcpy-inline.e4845fc482.ll (mutant of memcpy-inline.ll) | test_memcpy_inline_4bytes | -mtriple=riscv64 -mattr=+unaligned-scalar-mem,+zfinx -O3 -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.