aboutsummaryrefslogtreecommitdiff
path: root/test/Bitcode/memcpy.ll
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2008-02-17 00:13:09 +0000
committerTanya Lattner <tonic@nondot.org>2008-02-17 00:13:09 +0000
commit2d290f9dc4503a038f61e7cbc6717b478817c4cc (patch)
treecf74676c29b1354989db5f4f95b029187dfbac45 /test/Bitcode/memcpy.ll
parent26fdb11e4eee597b1b8980336bfde6af1e04273c (diff)
Remove llvm-upgrade.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47230 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Bitcode/memcpy.ll')
-rw-r--r--test/Bitcode/memcpy.ll30
1 files changed, 17 insertions, 13 deletions
diff --git a/test/Bitcode/memcpy.ll b/test/Bitcode/memcpy.ll
index 398b8961a1..13daeeb181 100644
--- a/test/Bitcode/memcpy.ll
+++ b/test/Bitcode/memcpy.ll
@@ -1,17 +1,21 @@
-; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
+; RUN: llvm-as < %s -o /dev/null -f
-void %test(int* %P, int* %Q) {
+define void @test(i32* %P, i32* %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.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
+ %tmp.1 = bitcast i32* %P to i8* ; <i8*> [#uses=3]
+ %tmp.3 = bitcast i32* %Q to i8* ; <i8*> [#uses=4]
+ tail call void @llvm.memcpy.i32( i8* %tmp.1, i8* %tmp.3, i32 100000, i32 1 )
+ tail call void @llvm.memcpy.i64( i8* %tmp.1, i8* %tmp.3, i64 100000, i32 1 )
+ tail call void @llvm.memset.i32( i8* %tmp.3, i8 14, i32 10000, i32 0 )
+ tail call void @llvm.memmove.i32( i8* %tmp.1, i8* %tmp.3, i32 123124, i32 1 )
+ ret void
}
-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)
+declare void @llvm.memcpy.i32(i8*, i8*, i32, i32)
+
+declare void @llvm.memcpy.i64(i8*, i8*, i64, i32)
+
+declare void @llvm.memset.i32(i8*, i8, i32, i32)
+
+declare void @llvm.memmove.i32(i8*, i8*, i32, i32)
+