1 ; RUN: llc -march=hexagon -O3 < %s | FileCheck %s
4 ; CHECK: [[REG0:r([0-9]+)]] = addasl
9 target triple = "hexagon"
11 @g0 = external global i32
13 ; Function Attrs: nounwind
14 define i32 @f0(ptr nocapture %a0, ptr nocapture %a1, i32 %a2, i32 %a3) #0 {
16 %v0 = add nsw i32 %a2, 5
17 %v1 = getelementptr inbounds i32, ptr %a0, i32 %v0
18 store i32 %a3, ptr %v1, align 4, !tbaa !0
19 %v2 = add nsw i32 %a2, 6
20 %v3 = getelementptr inbounds i32, ptr %a0, i32 %v2
21 store i32 %a3, ptr %v3, align 4, !tbaa !0
22 %v4 = add nsw i32 %a2, 35
23 %v5 = getelementptr inbounds i32, ptr %a0, i32 %v4
24 store i32 %v0, ptr %v5, align 4, !tbaa !0
25 %v6 = getelementptr inbounds [50 x i32], ptr %a1, i32 %v0, i32 %v0
26 store i32 %v0, ptr %v6, align 4, !tbaa !0
27 %v7 = add nsw i32 %a2, 6
28 %v8 = getelementptr inbounds [50 x i32], ptr %a1, i32 %v0, i32 %v7
29 store i32 %v0, ptr %v8, align 4, !tbaa !0
30 %v9 = add nsw i32 %a2, 4
31 %v10 = getelementptr inbounds [50 x i32], ptr %a1, i32 %v0, i32 %v9
32 %v11 = load i32, ptr %v10, align 4, !tbaa !0
33 %v12 = add nsw i32 %v11, 1
34 store i32 %v12, ptr %v10, align 4, !tbaa !0
35 %v13 = load i32, ptr %v1, align 4, !tbaa !0
36 %v14 = add nsw i32 %a2, 25
37 %v15 = getelementptr inbounds [50 x i32], ptr %a1, i32 %v14, i32 %v0
38 store i32 %v13, ptr %v15, align 4, !tbaa !0
39 store i32 5, ptr @g0, align 4, !tbaa !0
43 attributes #0 = { nounwind "target-cpu"="hexagonv60" "target-features"="+hvxv60,+hvx-length64b" }
46 !1 = !{!"int", !2, i64 0}
47 !2 = !{!"omnipotent char", !3, i64 0}
48 !3 = !{!"Simple C/C++ TBAA"}