1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 04:22:57 +02:00
llvm-mirror/test/CodeGen/X86/memmove-3.ll
Dan Gohman 2e7e251f24 If the source and destination pointers in an llvm.memmove are known
to not alias each other, it can be translated as an llvm.memcpy.

llvm-svn: 41489
2007-08-27 16:26:13 +00:00

10 lines
233 B
LLVM

; RUN: llvm-as < %s | llc -march=x86 | grep {call memmove}
declare void @llvm.memmove.i64(i8* %d, i8* %s, i64 %l, i32 %a)
define void @foo(i8* %d, i8* %s)
{
call void @llvm.memmove.i64(i8* %d, i8* %s, i64 32, i32 1)
ret void
}