fallback: translate: call llvm.memmove.p0.p0.i64
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | translate: call llvm.memmove.p0.p0.i64 M |
| Occurrences: | 4 in 3 configs, 1 test files, 16 more counted only |
| Snippet from: | memmove.e391c5090e.ll (mutant of memmove.ll) @unaligned_memmove7 via llvm-extract |
| Config: | -mtriple=riscv64 -mattr=+zhinx -O3 -verify-machineinstrs |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.1 = external global ptr
; Function Attrs: nounwind
define void @unaligned_memmove7(ptr captures(none) %dest, ptr %src) #0 {
entry:
tail call void @llvm.memmove.p0.p0.i64(ptr %dest, ptr %src, i64 7, i1 false)
%G = getelementptr i32, ptr %src, i8 -128
store ptr %G, ptr @G.1, align 8
ret void
}
; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memmove.p0.p0.i64(ptr writeonly captures(none), ptr 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=+zhinx -O3 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+zhinx -O3 -verify-machineinstrs -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: call llvm.memmove.p0.p0.i64: ' tail call void @llvm.memmove.p0.p0.i64(ptr align 1 %dest, ptr align 1 %src, i64 7, i1 false)' (in function: unaligned_memmove7)
warning: Instruction selection used fallback path for unaligned_memmove7
Occurrences (4):
| Input | Function | Config |
|---|
| memmove.1e43a9f3f7.ll (mutant of memmove.ll) | unaligned_memmove31 | -mtriple=riscv32 -mattr=+zdinx -O3 -verify-machineinstrs |
| memmove.ae7e80fb00.ll (mutant of memmove.ll) | aligned_memmove1 | -mtriple=riscv64 -mattr=+unaligned-scalar-mem,+zhinx -O0 -verify-machineinstrs |
| memmove.e391c5090e.ll (mutant of memmove.ll) | unaligned_memmove7 | -mtriple=riscv64 -mattr=+zhinx -O3 -verify-machineinstrs |
| memmove.e391c5090e.ll (mutant of memmove.ll) | aligned_memmove7_volatile | -mtriple=riscv64 -mattr=+zhinx -O3 -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.