1 ; RUN: opt < %s -instcombine -S | not grep {call.*llvm.memset}
3 declare void @llvm.memset.i32(i8*, i8, i32, i32)
6 %target = alloca [1024 x i8] ; <[1024 x i8]*> [#uses=1]
7 %target_p = getelementptr [1024 x i8]* %target, i32 0, i32 0 ; <i8*> [#uses=5]
8 call void @llvm.memset.i32( i8* %target_p, i8 1, i32 0, i32 1 )
9 call void @llvm.memset.i32( i8* %target_p, i8 1, i32 1, i32 1 )
10 call void @llvm.memset.i32( i8* %target_p, i8 1, i32 2, i32 2 )
11 call void @llvm.memset.i32( i8* %target_p, i8 1, i32 4, i32 4 )
12 call void @llvm.memset.i32( i8* %target_p, i8 1, i32 8, i32 8 )