1 ; RUN: llc -march=hexagon -O2 < %s | FileCheck %s
3 target triple = "hexagon-unknown--elf"
5 ; Test to see if we inline memsets when the array size is small.
12 %v0 = alloca [10 x i32], align 8
13 %v1 = bitcast [10 x i32]* %v0 to i8*
14 call void @llvm.memset.p0i8.i32(i8* align 8 %v1, i8 0, i32 7, i1 false)
15 %v2 = getelementptr inbounds [10 x i32], [10 x i32]* %v0, i32 0, i32 0
16 call void @f1(i32* %v2) #0
20 ; Function Attrs: nounwind
21 declare void @f1(i32*) #0
23 ; Function Attrs: argmemonly nounwind
24 declare void @llvm.memset.p0i8.i32(i8* nocapture writeonly, i8, i32, i1) #1
26 attributes #0 = { nounwind }
27 attributes #1 = { argmemonly nounwind }