From ba1469278eb4c1fa06a48036c1534fcf83a50e23 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 6 Feb 2007 06:07:34 +0000 Subject: [PATCH] testcase for pr1181 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 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/CodeGen/CBackend/2007-02-05-memset.ll diff --git a/test/CodeGen/CBackend/2007-02-05-memset.ll b/test/CodeGen/CBackend/2007-02-05-memset.ll new file mode 100644 index 00000000000..20849cf819d --- /dev/null +++ b/test/CodeGen/CBackend/2007-02-05-memset.ll @@ -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 +} -- 2.34.1