testcase for pr1181
authorChris Lattner <sabre@nondot.org>
Tue, 6 Feb 2007 06:07:34 +0000 (06:07 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 6 Feb 2007 06:07:34 +0000 (06:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33956 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/CBackend/2007-02-05-memset.ll [new file with mode: 0644]

diff --git a/test/CodeGen/CBackend/2007-02-05-memset.ll b/test/CodeGen/CBackend/2007-02-05-memset.ll
new file mode 100644 (file)
index 0000000..20849cf
--- /dev/null
@@ -0,0 +1,14 @@
+; RUN: llvm-as < %s | llc -march=c
+; PR1181
+target datalayout = "e-p:64:64"
+target triple = "x86_64-apple-darwin8"
+
+implementation   ; Functions:
+
+declare void @llvm.memset.i64(i8*, i8, i64, i32)
+
+define fastcc void @InitUser_data_unregistered() {
+entry:
+        tail call void @llvm.memset.i64( i8* null, i8 0, i64 65496, i32 1 )
+        ret void
+}