[llvm-commits] CVS: llvm/test/Regression/Analysis/DSGraph/2004-02-13-memcpy.ll
Andrew Lenharth
alenhar2 at cs.uiuc.edu
Wed Mar 15 11:03:06 PST 2006
Changes in directory llvm/test/Regression/Analysis/DSGraph:
2004-02-13-memcpy.ll updated: 1.2 -> 1.3
---
Log message:
better check
---
Diffs of the changes: (+15 -3)
2004-02-13-memcpy.ll | 18 +++++++++++++++---
1 files changed, 15 insertions(+), 3 deletions(-)
Index: llvm/test/Regression/Analysis/DSGraph/2004-02-13-memcpy.ll
diff -u llvm/test/Regression/Analysis/DSGraph/2004-02-13-memcpy.ll:1.2 llvm/test/Regression/Analysis/DSGraph/2004-02-13-memcpy.ll:1.3
--- llvm/test/Regression/Analysis/DSGraph/2004-02-13-memcpy.ll:1.2 Fri Feb 13 10:09:37 2004
+++ llvm/test/Regression/Analysis/DSGraph/2004-02-13-memcpy.ll Wed Mar 15 13:02:54 2006
@@ -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 @@
%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
}
More information about the llvm-commits
mailing list