blob: a9573cfc6a2acea6aa397dc92b8adef296c8ce79 [file] [log] [blame]
Dan Gohman36a09472009-09-08 23:54:48 +00001; RUN: llc < %s -mtriple=i386-apple-darwin10 | grep __bzero
Dan Gohman68d599d2008-04-01 20:38:36 +00002
3declare void @llvm.memset.i32(i8*, i8, i32, i32)
4
5define void @foo(i8* %p, i32 %len) {
Dan Gohmanaceba312010-01-05 17:55:26 +00006 call void @llvm.memset.i32(i8* %p, i8 0, i32 %len, i32 1)
Dan Gohman68d599d2008-04-01 20:38:36 +00007 ret void
8}