[llvm-commits] CVS: llvm/test/Regression/Bytecode/memcpy.ll
Reid Spencer
reid at x10sys.com
Sat Dec 2 12:35:11 PST 2006
Changes in directory llvm/test/Regression/Bytecode:
memcpy.ll updated: 1.1 -> 1.2
---
Log message:
Upgrade old intrinsic function calls manually.
---
Diffs of the changes: (+9 -13)
memcpy.ll | 22 +++++++++-------------
1 files changed, 9 insertions(+), 13 deletions(-)
Index: llvm/test/Regression/Bytecode/memcpy.ll
diff -u llvm/test/Regression/Bytecode/memcpy.ll:1.1 llvm/test/Regression/Bytecode/memcpy.ll:1.2
--- llvm/test/Regression/Bytecode/memcpy.ll:1.1 Thu Mar 2 17:56:23 2006
+++ llvm/test/Regression/Bytecode/memcpy.ll Sat Dec 2 14:34:57 2006
@@ -1,21 +1,17 @@
-; RUN: llvm-dis %s.bc-16 -o /dev/null -f &&
-; RUN: llc %s.bc-16 -o /dev/null -f -march=c &&
-; RUN: llvm-as < %s
+; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
void %test(int* %P, int* %Q) {
entry:
%tmp.1 = cast int* %P to sbyte* ; <sbyte*> [#uses=2]
%tmp.3 = cast int* %Q to sbyte* ; <sbyte*> [#uses=3]
- tail call void %llvm.memcpy( sbyte* %tmp.1, sbyte* %tmp.3, uint 100000, uint 1 )
- tail call void %llvm.memcpy( sbyte* %tmp.1, sbyte* %tmp.3, ulong 100000, uint 1 )
- tail call void %llvm.memset( sbyte* %tmp.3, ubyte 14, uint 10000, uint 0 )
- tail call void %llvm.memmove( sbyte* %tmp.1, sbyte* %tmp.3, uint 123124, uint 1 )
+ tail call void %llvm.memcpy.i32( sbyte* %tmp.1, sbyte* %tmp.3, uint 100000, uint 1 )
+ tail call void %llvm.memcpy.i64( sbyte* %tmp.1, sbyte* %tmp.3, ulong 100000, uint 1 )
+ tail call void %llvm.memset.i32( sbyte* %tmp.3, ubyte 14, uint 10000, uint 0 )
+ tail call void %llvm.memmove.i32( sbyte* %tmp.1, sbyte* %tmp.3, uint 123124, uint 1 )
ret void
}
-declare void %llvm.memcpy(sbyte*, sbyte*, uint, uint)
-declare void %llvm.memcpy(sbyte*, sbyte*, ulong, uint)
-
-declare void %llvm.memset(sbyte*, ubyte, uint, uint)
-
-declare void %llvm.memmove(sbyte*, sbyte*, uint, uint)
+declare void %llvm.memcpy.i32(sbyte*, sbyte*, uint, uint)
+declare void %llvm.memcpy.i64(sbyte*, sbyte*, ulong, uint)
+declare void %llvm.memset.i32(sbyte*, ubyte, uint, uint)
+declare void %llvm.memmove.i32(sbyte*, sbyte*, uint, uint)
More information about the llvm-commits
mailing list