blob: 29febfab29af9868f95880a6e28ef6c4ae752f7b [file] [log] [blame]
Evan Chengf28f8bc2010-04-02 19:36:14 +00001; RUN: llc -mtriple=i386-apple-darwin < %s | not grep memset
2; PR6767
3
4define void @t() nounwind ssp {
5entry:
6 %buf = alloca [512 x i8], align 1
7 %ptr = getelementptr inbounds [512 x i8]* %buf, i32 0, i32 0
Chris Lattnerb85e4eb2011-06-18 06:05:24 +00008 call void @llvm.memset.p0i8.i32(i8* %ptr, i8 undef, i32 512, i32 1, i1 false)
Evan Chengf28f8bc2010-04-02 19:36:14 +00009 unreachable
10}
11
Chris Lattnerb85e4eb2011-06-18 06:05:24 +000012declare void @llvm.memset.p0i8.i32(i8* nocapture, i8, i32, i32, i1) nounwind