summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/darwin-bzero.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/darwin-bzero.ll')
-rw-r--r--test/CodeGen/X86/darwin-bzero.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/X86/darwin-bzero.ll b/test/CodeGen/X86/darwin-bzero.ll
new file mode 100644
index 0000000000..c292140e10
--- /dev/null
+++ b/test/CodeGen/X86/darwin-bzero.ll
@@ -0,0 +1,8 @@
+; RUN: llvm-as < %s | llc -mtriple=i386-apple-darwin10 | grep __bzero
+
+declare void @llvm.memset.i32(i8*, i8, i32, i32)
+
+define void @foo(i8* %p, i32 %len) {
+ call void @llvm.memset.i32(i8* %p, i8 0, i32 %len, i32 1);
+ ret void
+}