diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-12-02 20:34:57 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-12-02 20:34:57 +0000 |
commit | 70e0531fcec87c86925446784bba4c545a36dddf (patch) | |
tree | e837d7dea57e4cbee1ad6b4c5610293c77e622c3 /test/Bytecode | |
parent | d7c2c2f753ae80257798fd25a879ec17df953c5b (diff) | |
download | external_llvm-70e0531fcec87c86925446784bba4c545a36dddf.zip external_llvm-70e0531fcec87c86925446784bba4c545a36dddf.tar.gz external_llvm-70e0531fcec87c86925446784bba4c545a36dddf.tar.bz2 |
Upgrade old intrinsic function calls manually.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32131 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Bytecode')
-rw-r--r-- | test/Bytecode/memcpy.ll | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/test/Bytecode/memcpy.ll b/test/Bytecode/memcpy.ll index eb1c22a..398b896 100644 --- a/test/Bytecode/memcpy.ll +++ b/test/Bytecode/memcpy.ll @@ -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) |