• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc -march=hexagon < %s | FileCheck %s
2; CHECK: combine(#11,#10)
3
4; Function Attrs: nounwind
5define void @f0(i32* nocapture %a0, i32* nocapture %a1) #0 {
6b0:
7  br label %b2
8
9b1:                                               ; preds = %b4
10  br label %b5
11
12b2:                                               ; preds = %b0
13  %v0 = getelementptr inbounds i32, i32* %a0, i32 2
14  %v1 = getelementptr inbounds i32, i32* %a0, i32 3
15  br label %b3
16
17b3:                                               ; preds = %b2
18  br label %b4
19
20b4:                                               ; preds = %b4, %b3
21  %v2 = load i32, i32* %v0, align 4, !tbaa !0
22  %v3 = load i32, i32* %v1, align 4, !tbaa !0
23  %v4 = tail call i32 @f1(i32 %v2, i32 %v3) #0
24  %v5 = icmp eq i32 %v4, 0
25  br i1 %v5, label %b4, label %b1
26
27b5:                                               ; preds = %b1
28  %v6 = tail call i32 @f1(i32 10, i32 11) #0
29  ret void
30}
31
32declare i32 @f1(i32, i32)
33
34attributes #0 = { nounwind "target-cpu"="hexagonv55" }
35
36!0 = !{!1, !1, i64 0}
37!1 = !{!"int", !2}
38!2 = !{!"omnipotent char", !3}
39!3 = !{!"Simple C/C++ TBAA"}
40