diff options
author | Andrew Lenharth <andrewl@lenharth.org> | 2006-03-15 19:02:54 +0000 |
---|---|---|
committer | Andrew Lenharth <andrewl@lenharth.org> | 2006-03-15 19:02:54 +0000 |
commit | ace0565e6541b97e7243ec5141e3e6f55dbe121a (patch) | |
tree | f039bfee8970d06511bb7d8913afe16b581e0b66 | |
parent | 3299cae13574165106ad13f930ab3ad7b30a3e51 (diff) |
better check
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26780 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Analysis/DSGraph/2004-02-13-memcpy.ll | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/test/Analysis/DSGraph/2004-02-13-memcpy.ll b/test/Analysis/DSGraph/2004-02-13-memcpy.ll index 5760712fdf..e2fcfee177 100644 --- a/test/Analysis/DSGraph/2004-02-13-memcpy.ll +++ b/test/Analysis/DSGraph/2004-02-13-memcpy.ll @@ -1,6 +1,8 @@ -; RUN: analyze %s -datastructure-gc -dsgc-check-flags=X:SMR +; RUN: analyze %s -datastructure-gc -dsgc-check-flags=Xn:SMR +; RUN: analyze %s -datastructure-gc -dsgc-check-flags=X:SM -declare void %llvm.memcpy(sbyte*, sbyte*, uint, uint) +declare void %llvm.memcpy.i32(sbyte*, sbyte*, uint, uint) +declare void %llvm.memmove.i32(sbyte*, sbyte*, uint, uint) void %test() { %X = alloca int @@ -8,6 +10,16 @@ void %test() { %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) + call void %llvm.memcpy.i32(sbyte* %x, sbyte* %y, uint 4, uint 4) + ret void +} + +void %test2() { + %Xn = alloca int + %Yn = alloca int + %xn = cast int* %Xn to sbyte* + %yn = cast int* %Yn to sbyte* + store int 4, int* %Xn + call void %llvm.memmove.i32(sbyte* %xn, sbyte* %yn, uint 4, uint 4) ret void } |