diff options
author | Chris Lattner <sabre@nondot.org> | 2006-03-02 23:56:23 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-03-02 23:56:23 +0000 |
commit | 14c284600c6fc8281f55a0241326ae7028a96257 (patch) | |
tree | bcffc9095e019119ae0500433c12d5ed0b6dbb8a /test/Bytecode | |
parent | 89188a1096c5523edc999cb881a2cf08c7adbdab (diff) | |
download | external_llvm-14c284600c6fc8281f55a0241326ae7028a96257.zip external_llvm-14c284600c6fc8281f55a0241326ae7028a96257.tar.gz external_llvm-14c284600c6fc8281f55a0241326ae7028a96257.tar.bz2 |
new testcases
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26473 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Bytecode')
-rw-r--r-- | test/Bytecode/memcpy.ll | 21 | ||||
-rw-r--r-- | test/Bytecode/memcpy.ll.bc-16 | bin | 0 -> 307 bytes |
2 files changed, 21 insertions, 0 deletions
diff --git a/test/Bytecode/memcpy.ll b/test/Bytecode/memcpy.ll new file mode 100644 index 0000000..eb1c22a --- /dev/null +++ b/test/Bytecode/memcpy.ll @@ -0,0 +1,21 @@ +; 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 + +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 ) + 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) diff --git a/test/Bytecode/memcpy.ll.bc-16 b/test/Bytecode/memcpy.ll.bc-16 Binary files differnew file mode 100644 index 0000000..be5ea1c --- /dev/null +++ b/test/Bytecode/memcpy.ll.bc-16 |