summaryrefslogtreecommitdiffstats
path: root/llvm/test/Bytecode/memcpy.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Bytecode/memcpy.ll')
-rw-r--r--llvm/test/Bytecode/memcpy.ll17
1 files changed, 17 insertions, 0 deletions
diff --git a/llvm/test/Bytecode/memcpy.ll b/llvm/test/Bytecode/memcpy.ll
new file mode 100644
index 00000000000..398b8961a1d
--- /dev/null
+++ b/llvm/test/Bytecode/memcpy.ll
@@ -0,0 +1,17 @@
+; 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.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.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)
OpenPOWER on IntegriCloud