1; RUN: llc -march=hexagon -O3 < %s | FileCheck %s
2; CHECK: r{{[0-9]*}} = add(##g0,asl(r{{[0-9]*}},#2))
3
4%s.0 = type { i16, i8 }
5
6@g0 = internal global [20 x i8*] zeroinitializer, align 8
7
8; Function Attrs: nounwind
9define void @f0(%s.0* %a0) #0 {
10b0:
11  %v0 = icmp eq %s.0* %a0, null
12  br i1 %v0, label %b2, label %b1
13
14b1:                                               ; preds = %b0
15  %v1 = getelementptr inbounds %s.0, %s.0* %a0, i32 0, i32 1
16  %v2 = load i8, i8* %v1, align 1, !tbaa !0
17  %v3 = zext i8 %v2 to i32
18  %v4 = getelementptr inbounds [20 x i8*], [20 x i8*]* @g0, i32 0, i32 %v3
19  %v5 = bitcast i8** %v4 to i8*
20  tail call void @f1(i8* %v5) #0
21  br label %b2
22
23b2:                                               ; preds = %b1, %b0
24  ret void
25}
26
27declare void @f1(i8*)
28
29attributes #0 = { nounwind }
30
31!0 = !{!1, !1, i64 0}
32!1 = !{!"omnipotent char", !2}
33!2 = !{!"Simple C/C++ TBAA"}
34