1; RUN: llc -O2 -mtriple=hexagon < %s | FileCheck %s 2; Make sure we don't use setbit to add offsets to stack objects. 3; CHECK-NOT: setbit 4 5target triple = "hexagon-unknown--elf" 6 7; Function Attrs: nounwind 8define void @f0() #0 { 9b0: 10 %v0 = alloca [64 x float], align 16 11 call void @llvm.lifetime.start.p0(i64 256, ptr %v0) #1 12 %v2 = getelementptr inbounds [64 x float], ptr %v0, i32 0, i32 8 13 store float 0.000000e+00, ptr %v2, align 16, !tbaa !0 14 store float 0.000000e+00, ptr %v0, align 16, !tbaa !0 15 %v4 = getelementptr inbounds [64 x float], ptr %v0, i32 0, i32 9 16 store float 0.000000e+00, ptr %v4, align 4, !tbaa !0 17 %v5 = getelementptr inbounds [64 x float], ptr %v0, i32 0, i32 1 18 store float 0.000000e+00, ptr %v5, align 4, !tbaa !0 19 %v6 = getelementptr inbounds [64 x float], ptr %v0, i32 0, i32 10 20 store float 0.000000e+00, ptr %v6, align 8, !tbaa !0 21 %v7 = getelementptr inbounds [64 x float], ptr %v0, i32 0, i32 2 22 store float 0.000000e+00, ptr %v7, align 8, !tbaa !0 23 %v8 = getelementptr inbounds [64 x float], ptr %v0, i32 0, i32 11 24 store float 1.000000e+00, ptr %v8, align 4, !tbaa !0 25 %v9 = getelementptr inbounds [64 x float], ptr %v0, i32 0, i32 3 26 store float 1.000000e+00, ptr %v9, align 4, !tbaa !0 27 %v10 = getelementptr inbounds [64 x float], ptr %v0, i32 0, i32 12 28 store float 0.000000e+00, ptr %v10, align 16, !tbaa !0 29 %v11 = getelementptr inbounds [64 x float], ptr %v0, i32 0, i32 4 30 store float 0.000000e+00, ptr %v11, align 16, !tbaa !0 31 call void @f1(ptr %v0) #2 32 call void @llvm.lifetime.end.p0(i64 256, ptr %v0) #1 33 ret void 34} 35 36declare void @f1(ptr) #0 37 38; Function Attrs: argmemonly nounwind 39declare void @llvm.lifetime.start.p0(i64, ptr nocapture) #1 40 41; Function Attrs: argmemonly nounwind 42declare void @llvm.lifetime.end.p0(i64, ptr nocapture) #1 43 44attributes #0 = { nounwind "target-cpu"="hexagonv55" } 45attributes #1 = { argmemonly nounwind } 46attributes #2 = { nounwind } 47 48!0 = !{!1, !1, i64 0} 49!1 = !{!"float", !2} 50!2 = !{!"omnipotent char", !3} 51!3 = !{!"Simple C/C++ TBAA"} 52