1 ; RUN: llc -march=hexagon -hexagon-emit-jump-tables=0 < %s
3 ; Check for successful compilation.
5 target triple = "hexagon"
8 %s.1 = type { i32, i32, i32 }
10 @g0 = external global %s.0
11 @g1 = external global %s.0
12 @g2 = external global %s.0
13 @g3 = external global %s.0
14 @g4 = external global %s.0
16 ; Function Attrs: nounwind optsize
17 define zeroext i8 @f0(%s.1* %a0, %s.0** nocapture %a1) #0 {
19 store %s.0* null, %s.0** %a1, align 4, !tbaa !0
20 %v0 = getelementptr inbounds %s.1, %s.1* %a0, i32 0, i32 1
21 %v1 = load i32, i32* %v0, align 4, !tbaa !4
22 %v2 = icmp eq i32 %v1, 0
23 br i1 %v2, label %b1, label %b8
26 %v3 = getelementptr inbounds %s.1, %s.1* %a0, i32 0, i32 0
27 %v4 = load i32, i32* %v3, align 4, !tbaa !7
28 switch i32 %v4, label %b8 [
37 %v5 = getelementptr inbounds %s.1, %s.1* %a0, i32 0, i32 2
38 %v6 = load i32, i32* %v5, align 4, !tbaa !8
39 switch i32 %v6, label %b8 [
44 b3: ; preds = %b7, %b7, %b7, %b6, %b6, %b5, %b5, %b4, %b4, %b2, %b2
45 %v7 = phi %s.0* [ @g0, %b2 ], [ @g0, %b2 ], [ @g1, %b4 ], [ @g1, %b4 ], [ @g2, %b5 ], [ @g2, %b5 ], [ @g3, %b6 ], [ @g3, %b6 ], [ @g4, %b7 ], [ @g4, %b7 ], [ @g4, %b7 ]
46 store %s.0* %v7, %s.0** %a1, align 4, !tbaa !0
50 %v8 = getelementptr inbounds %s.1, %s.1* %a0, i32 0, i32 2
51 %v9 = load i32, i32* %v8, align 4, !tbaa !8
52 switch i32 %v9, label %b8 [
58 %v10 = getelementptr inbounds %s.1, %s.1* %a0, i32 0, i32 2
59 %v11 = load i32, i32* %v10, align 4, !tbaa !8
60 switch i32 %v11, label %b8 [
66 %v12 = getelementptr inbounds %s.1, %s.1* %a0, i32 0, i32 2
67 %v13 = load i32, i32* %v12, align 4, !tbaa !8
68 switch i32 %v13, label %b8 [
74 %v14 = getelementptr inbounds %s.1, %s.1* %a0, i32 0, i32 2
75 %v15 = load i32, i32* %v14, align 4, !tbaa !8
76 switch i32 %v15, label %b8 [
82 b8: ; preds = %b7, %b6, %b5, %b4, %b3, %b2, %b1, %b0
83 %v16 = phi i8 [ 1, %b3 ], [ 0, %b0 ], [ 0, %b2 ], [ 0, %b4 ], [ 0, %b5 ], [ 0, %b6 ], [ 0, %b1 ], [ 0, %b7 ]
87 attributes #0 = { nounwind optsize }
90 !1 = !{!"any pointer", !2, i64 0}
91 !2 = !{!"omnipotent char", !3, i64 0}
92 !3 = !{!"Simple C/C++ TBAA"}
94 !5 = !{!"_ZTS3bar", !6, i64 0, !6, i64 4, !6, i64 8}
95 !6 = !{!"int", !2, i64 0}