aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-07-13 01:42:03 +0000
committerChris Lattner <sabre@nondot.org>2005-07-13 01:42:03 +0000
commit92b5376154ce05ac3a660b6f887de85239bbd65c (patch)
tree06e6dc64f699998ce87a85f4a29160752610da01
parent87df3636e1a081abe888150959db269479c22ba1 (diff)
new testcase that crashes llc on x86/ppc. Not generated by C/C++ or LLVM
though. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22416 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CodeGen/Generic/2005-07-12-memcpy-i64-length.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/Generic/2005-07-12-memcpy-i64-length.ll b/test/CodeGen/Generic/2005-07-12-memcpy-i64-length.ll
new file mode 100644
index 0000000000..c6eea6a1bf
--- /dev/null
+++ b/test/CodeGen/Generic/2005-07-12-memcpy-i64-length.ll
@@ -0,0 +1,11 @@
+; RUN: llvm-as < %s | llc
+; Test that llvm.memcpy works with a i64 length operand on all targets.
+
+
+declare void %llvm.memcpy(sbyte*, sbyte*, ulong, uint)
+
+void %l12_l94_bc_divide_endif_2E_3_2E_ce() {
+newFuncRoot:
+ tail call void %llvm.memcpy( sbyte* null, sbyte* null, ulong 0, uint 1 )
+ unreachable
+}