From: Chris Lattner Date: Fri, 13 Feb 2004 16:04:51 +0000 (+0000) Subject: New testcase for support for memcpy/memmove X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=7f007250e1eacb8de1dcde8ec4444acab89bb4a7 New testcase for support for memcpy/memmove git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11372 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Analysis/DSGraph/2004-02-13-memcpy.ll b/test/Analysis/DSGraph/2004-02-13-memcpy.ll new file mode 100644 index 00000000000..aefe2e587b6 --- /dev/null +++ b/test/Analysis/DSGraph/2004-02-13-memcpy.ll @@ -0,0 +1,13 @@ +; RUN: analyze %s -datastructure-gc -dsgc-check-flags=X:SM + +declare void %llvm.memcpy(sbyte*, sbyte*, uint, uint) + +void %test() { + %X = alloca int + %Y = alloca int + %x = cast int* %X to sbyte* + %y = cast int* %Y to sbyte* + store int 4, int* %X + call void %llvm.memcpy(sbyte* %x, sbyte* %y, uint 4, uint 4) + ret void +}