1; RUN: llc -march=hexagon -O2 < %s | FileCheck %s 2 3target triple = "hexagon-unknown--elf" 4 5; Test to see if we inline memsets when the array size is small. 6; CHECK-LABEL: f0 7; CHECK-DAG: memw 8; CHECK-DAG: memb 9; CHECK-DAG: memh 10define i32 @f0() #0 { 11b0: 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 17 ret i32 0 18} 19 20; Function Attrs: nounwind 21declare void @f1(i32*) #0 22 23; Function Attrs: argmemonly nounwind 24declare void @llvm.memset.p0i8.i32(i8* nocapture writeonly, i8, i32, i1) #1 25 26attributes #0 = { nounwind } 27attributes #1 = { argmemonly nounwind } 28